rspec-puppet-facts 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/rspec-puppet-facts.rb +1 -1
- data/lib/rspec-puppet-facts/version.rb +1 -1
- data/spec/rspec_puppet_facts_spec.rb +28 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14bfd6f02ce88d6ae572fc059b35700373247328
|
4
|
+
data.tar.gz: 3df2a486a07e4994bc16b733b8695a08990203d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e7bbb144158a3d2e7ee9d95f4e9caa706b6d2b0ec9a18190c158d781246bb9b6e73dbe77541a254d8f1f3b0e536024cf441560b093ed676a8a7a6408f4484a0
|
7
|
+
data.tar.gz: 0363bd1f8a12ef3fd65d5f520c61edbaeacadb09b75d07b3660aa082f6e9c4105927e63c6ff0b4d4a1faddf34352135dd768862616236fa47ce929d13256e9a9
|
data/CHANGELOG.md
CHANGED
data/lib/rspec-puppet-facts.rb
CHANGED
@@ -15,7 +15,7 @@ module RspecPuppetFacts
|
|
15
15
|
os_sup['operatingsystemrelease'].map do |operatingsystemmajrelease|
|
16
16
|
opts[:hardwaremodels].each do |hardwaremodel|
|
17
17
|
|
18
|
-
if os_sup['operatingsystem'] =~ /
|
18
|
+
if os_sup['operatingsystem'] =~ /BSD/
|
19
19
|
hardwaremodel = 'amd64'
|
20
20
|
elsif os_sup['operatingsystem'] =~ /Solaris/
|
21
21
|
hardwaremodel = 'i86pc'
|
@@ -123,6 +123,34 @@ describe 'RspecPuppetFacts' do
|
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
|
+
context 'When testing OpenBSD 5.7' do
|
127
|
+
subject {
|
128
|
+
on_supported_os(
|
129
|
+
{
|
130
|
+
:supported_os => [
|
131
|
+
{
|
132
|
+
"operatingsystem" => "OpenBSD",
|
133
|
+
"operatingsystemrelease" => [
|
134
|
+
"5.7",
|
135
|
+
],
|
136
|
+
},
|
137
|
+
],
|
138
|
+
}
|
139
|
+
)
|
140
|
+
}
|
141
|
+
it 'should return a hash' do
|
142
|
+
expect(subject.class).to eq Hash
|
143
|
+
end
|
144
|
+
it 'should have 1 elements' do
|
145
|
+
expect(subject.size).to eq 1
|
146
|
+
end
|
147
|
+
it 'should return supported OS' do
|
148
|
+
expect(subject.keys.sort).to eq [
|
149
|
+
'openbsd-5-amd64',
|
150
|
+
]
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
126
154
|
context 'When operatingsystemrelease has space' do
|
127
155
|
subject {
|
128
156
|
on_supported_os(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-puppet-facts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mickaël Canévet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|