We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fb8aaa + 9ec5bd3 commit 0b75dc2Copy full SHA for 0b75dc2
manifests/login.pp
@@ -63,6 +63,10 @@
63
64
validate_re($login_type,['^(SQL_LOGIN|WINDOWS_LOGIN)$'])
65
66
+ if $check_expiration and !$check_policy {
67
+ fail ('Can not have check expiration enabled when check_policy is disabled')
68
+ }
69
+
70
$create_delete = $ensure ? {
71
present => 'create',
72
absent => 'delete',
spec/defines/login_spec.rb
@@ -35,4 +35,9 @@
35
it_behaves_like 'mssql_tsql command'
36
it_behaves_like 'mssql_tsql onlyif'
37
end
38
+ describe 'check_policy' do
39
+ let(:additional_params) { {:check_policy => false, :check_expiration => true} }
40
+ let(:raise_error_check) { 'Can not have check expiration enabled when check_policy is disabled' }
41
+ it_should_behave_like 'validation error'
42
+ end
43
0 commit comments