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