serverspec 2.41.8 → 2.42.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
- SHA256:
3
- metadata.gz: 4f3d5527eda493bdf34653a61474e2eaafdc521fd4c978df82a1ea5348feb2f6
4
- data.tar.gz: 4fde21a2764cb3b8e12cc5fed6fea704bf9df36e6f01ee01277689d1b3a9e1b6
2
+ SHA1:
3
+ metadata.gz: 2e7e6937d32bae901dced0203e3521b5bf78e7b5
4
+ data.tar.gz: 9f37164c1c0288c7759ca7a3541cf6474a3d16f2
5
5
  SHA512:
6
- metadata.gz: 688850b6eaf69dfa056281f4059bcb33db6198893e569d53cea4cd1abfb3eb5037f06a2fae1f32572ebe6f50c82b1b3ddb1586d5bab6733a8509573725a88e2f
7
- data.tar.gz: 8ac6e6ff5efd43b4a77a516a4c2c4892eda6d2ab0580fc3f2e4ef6a87ef8e64bf65325305fd64b430c4978a9fa6779451e71fe24f0b26b0a1995337fbfa713eb
6
+ metadata.gz: a11a4a768849ead513cc6b0b35423245a3d3861a6dab4d17f31fcd7e7b7c5f9cb0a8de43d73026969af98513b63e7acdb851491d3ed28f0602f96fc12f5610b9
7
+ data.tar.gz: ed280d208fe94358bc18163029868dd4f39a102eaaf2301cf1c992d9132ded79aa3f16c76488e4f3ad33e6f5e80a0db46830a745b3ddc8fea145802f6adbbab3
@@ -4,6 +4,10 @@ module Serverspec::Type
4
4
  @runner.check_group_exists(@name)
5
5
  end
6
6
 
7
+ def gid
8
+ @runner.get_group_gid(@name).stdout.to_i
9
+ end
10
+
7
11
  def has_gid?(gid)
8
12
  @runner.check_group_has_gid(@name, gid)
9
13
  end
@@ -12,6 +12,10 @@ module Serverspec::Type
12
12
  @runner.check_user_belongs_to_primary_group(@name, group)
13
13
  end
14
14
 
15
+ def uid
16
+ @runner.get_user_uid(@name).stdout.to_i
17
+ end
18
+
15
19
  def has_uid?(uid)
16
20
  @runner.check_user_has_uid(@name, uid)
17
21
  end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.41.8"
2
+ VERSION = "2.42.0"
3
3
  end
@@ -9,3 +9,8 @@ end
9
9
  describe group('root') do
10
10
  it { should have_gid 0 }
11
11
  end
12
+
13
+ describe group('root') do
14
+ its(:gid) { should == 0 }
15
+ its(:gid) { should < 10 }
16
+ end
@@ -18,6 +18,11 @@ describe user('root') do
18
18
  it { should have_uid 0 }
19
19
  end
20
20
 
21
+ describe user('root') do
22
+ its(:uid) { should == 0 }
23
+ its(:uid) { should < 10 }
24
+ end
25
+
21
26
  describe user('root') do
22
27
  it { should have_login_shell '/bin/bash' }
23
28
  end
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.41.8
4
+ version: 2.42.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: 2021-06-24 00:00:00.000000000 Z
11
+ date: 2022-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -321,7 +321,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  - !ruby/object:Gem::Version
322
322
  version: '0'
323
323
  requirements: []
324
- rubygems_version: 3.1.2
324
+ rubyforge_project:
325
+ rubygems_version: 2.5.1
325
326
  signing_key:
326
327
  specification_version: 4
327
328
  summary: RSpec tests for your servers configured by Puppet, Chef, Itamae or anything