serverspec 2.23.1 → 2.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec/type/user.rb +4 -0
- data/lib/serverspec/version.rb +1 -1
- data/spec/type/base/user_spec.rb +6 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 072e9221dbec759258719f66f89547e8d979c4d1
|
4
|
+
data.tar.gz: f11f81e00792b28d36676157271c5b5752875662
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4de08a8977d4dbf0c3153a022f2d1c1f8e20c4fbcddee60a6a1b3b9ff07ffd5cfd2b6b8d61f09e9e204d751a785ffad7a60f2ff51f770fe8b92d4972c91b753d
|
7
|
+
data.tar.gz: 0d21196c571710bb1ead4e9b7e4f167a01b6a986de206955b3cf2bca7efd0c6b486df0bca8a1ab3fad66e1c9338f9e3e5a0175ed4f908c3ccfac1da27de92077
|
data/lib/serverspec/type/user.rb
CHANGED
@@ -35,5 +35,9 @@ module Serverspec::Type
|
|
35
35
|
def maximum_days_between_password_change
|
36
36
|
@runner.get_user_maximum_days_between_password_change(@name).stdout.to_i
|
37
37
|
end
|
38
|
+
|
39
|
+
def encrypted_password
|
40
|
+
@runner.get_user_encrypted_password(@name).stdout.strip
|
41
|
+
end
|
38
42
|
end
|
39
43
|
end
|
data/lib/serverspec/version.rb
CHANGED
data/spec/type/base/user_spec.rb
CHANGED
@@ -31,7 +31,12 @@ describe user('root') do
|
|
31
31
|
end
|
32
32
|
|
33
33
|
describe user('root') do
|
34
|
-
|
34
|
+
let(:stdout) { "$1$T0aTw9NJ$NdMldLUQ8WqhlEEGToNzl/\n" }
|
35
|
+
its(:encrypted_password) { should eq '$1$T0aTw9NJ$NdMldLUQ8WqhlEEGToNzl/' }
|
36
|
+
end
|
37
|
+
|
38
|
+
describe user('root') do
|
39
|
+
its(:minimum_days_between_password_change) { should == 0 }
|
35
40
|
end
|
36
41
|
|
37
42
|
describe user('root') do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -446,4 +446,3 @@ test_files:
|
|
446
446
|
- spec/type/windows/scheduled_task_spec.rb
|
447
447
|
- spec/type/windows/service_spec.rb
|
448
448
|
- spec/type/windows/user_spec.rb
|
449
|
-
has_rdoc:
|