root / spec / classes / services / openafs_client_spec.rb @ 1ef7d5c4
Historique | Voir | Annoter | Télécharger (626 octets)
1 | c82b960a | Steve Traylen | # frozen_string_literal: true
|
---|---|---|---|
2 | |||
3 | 215aee13 | Steve Traylen | 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 |