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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba3ecfb90a2f60059e60a15f37d203ccc1c7fbfc
4
- data.tar.gz: 459c61b6332695ea2682b48984fc04d4d21acf3e
3
+ metadata.gz: 072e9221dbec759258719f66f89547e8d979c4d1
4
+ data.tar.gz: f11f81e00792b28d36676157271c5b5752875662
5
5
  SHA512:
6
- metadata.gz: 6bb96ac5352cad40d8c95abb1cfc7fd48784a6abcb62bf1dd75ee3960ef99a7fb483f1486a253fcb8014bd5ca8ccc6851287daadeb128ad54398e50ca7472716
7
- data.tar.gz: f316a743bcaeac8d47919d1effcdba4014ce31697f2d912f67e56039d2ac2e23344e997db47ec66983e3e24ddc85cec9b231075dae2f13e9d319f2c8992d93d4
6
+ metadata.gz: 4de08a8977d4dbf0c3153a022f2d1c1f8e20c4fbcddee60a6a1b3b9ff07ffd5cfd2b6b8d61f09e9e204d751a785ffad7a60f2ff51f770fe8b92d4972c91b753d
7
+ data.tar.gz: 0d21196c571710bb1ead4e9b7e4f167a01b6a986de206955b3cf2bca7efd0c6b486df0bca8a1ab3fad66e1c9338f9e3e5a0175ed4f908c3ccfac1da27de92077
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.23.1"
2
+ VERSION = "2.24.0"
3
3
  end
@@ -31,7 +31,12 @@ describe user('root') do
31
31
  end
32
32
 
33
33
  describe user('root') do
34
- its(:minimum_days_between_password_change) { should == 0 }
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.23.1
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-07 00:00:00.000000000 Z
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: