root / spec / classes / services / openafs_client_spec.rb @ 215aee13
Historique | Voir | Annoter | Télécharger (595 octets)
1 | 215aee13 | Steve Traylen | require 'spec_helper'
|
---|---|---|---|
2 | |||
3 | describe 'nftables::services::openafs_client' do |
||
4 | on_supported_os.each do |os, os_facts|
|
||
5 | context "on #{os}" do |
||
6 | let(:facts) { os_facts }
|
||
7 | |||
8 | context 'normal behaviour' do |
||
9 | it { is_expected.to compile } |
||
10 | it { is_expected.to contain_class('nftables::rules::afs3_callback') }
|
||
11 | it { is_expected.to contain_class('nftables::rules::out::openafs_client') }
|
||
12 | end
|
||
13 | |||
14 | context 'out_all enabled' do |
||
15 | let(:pre_condition) { 'class{\'nftables\': out_all => true}' } |
||
16 | |||
17 | it { is_expected.not_to compile } |
||
18 | end
|
||
19 | end
|
||
20 | end
|
||
21 | end |