simp-rspec-puppet-facts 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/facts/2.5/{windows-server_2012_r2-x86_64.facts → windows-2012-r2-x86_64.facts} +96 -52
- data/facts/2.5/windows-2016-x86_64.facts +429 -0
- data/facts/2.5/windows-2019-x86_64.facts +429 -0
- data/lib/simp/rspec-puppet-facts.rb +11 -11
- data/lib/simp/version.rb +1 -1
- data/spec/acceptance/nodesets/win_2016.yml +28 -0
- data/spec/acceptance/nodesets/win_2019.yml +27 -0
- data/spec/acceptance/suites/default/00_default_spec.rb +14 -7
- metadata +12 -4
data/lib/simp/version.rb
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
<%
|
2
|
+
if ENV['BEAKER_HYPERVISOR']
|
3
|
+
hypervisor = ENV['BEAKER_HYPERVISOR']
|
4
|
+
else
|
5
|
+
hypervisor = 'vagrant'
|
6
|
+
end
|
7
|
+
-%>
|
8
|
+
HOSTS:
|
9
|
+
win:
|
10
|
+
roles:
|
11
|
+
- windows
|
12
|
+
platform: windows-server-amd64
|
13
|
+
box: gusztavvargadr/windows-server
|
14
|
+
box_version: 1607.0.1909
|
15
|
+
hypervisor: <%= hypervisor %>
|
16
|
+
vagrant_memsize: 2048
|
17
|
+
vagrant_cpus: 2
|
18
|
+
user: vagrant
|
19
|
+
communicator: winrm
|
20
|
+
is_cygwin: false
|
21
|
+
|
22
|
+
CONFIG:
|
23
|
+
log_level: verbose
|
24
|
+
type: aio
|
25
|
+
vagrant_memsize: 256
|
26
|
+
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
|
27
|
+
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
|
28
|
+
<% end -%>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<%
|
2
|
+
if ENV['BEAKER_HYPERVISOR']
|
3
|
+
hypervisor = ENV['BEAKER_HYPERVISOR']
|
4
|
+
else
|
5
|
+
hypervisor = 'vagrant'
|
6
|
+
end
|
7
|
+
-%>
|
8
|
+
HOSTS:
|
9
|
+
win:
|
10
|
+
roles:
|
11
|
+
- windows
|
12
|
+
platform: windows-server-amd64
|
13
|
+
box: gusztavvargadr/windows-server
|
14
|
+
hypervisor: <%= hypervisor %>
|
15
|
+
vagrant_memsize: 2048
|
16
|
+
vagrant_cpus: 2
|
17
|
+
user: vagrant
|
18
|
+
communicator: winrm
|
19
|
+
is_cygwin: false
|
20
|
+
|
21
|
+
CONFIG:
|
22
|
+
log_level: verbose
|
23
|
+
type: aio
|
24
|
+
vagrant_memsize: 256
|
25
|
+
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
|
26
|
+
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
|
27
|
+
<% end -%>
|
@@ -22,14 +22,21 @@ describe 'look out muppets' do
|
|
22
22
|
on(host, 'puppet module install simp/simp_core')
|
23
23
|
end
|
24
24
|
|
25
|
-
it 'should
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
25
|
+
it 'should disable the secondary network interface' do
|
26
|
+
interfaces = fact_on(host, 'interfaces').strip.split(',')
|
27
|
+
|
28
|
+
ifaces = {
|
29
|
+
'eth1' => 'ip link set eth1 down',
|
30
|
+
'enp0s8' => 'ip link set enp0s8 down',
|
31
|
+
'Ethernet 2' => 'netsh interface set interface "Ethernet 2" disable'
|
32
|
+
}
|
33
|
+
|
34
|
+
ifaces.keys.each do |iface|
|
35
|
+
on(host, ifaces[iface]) if interfaces.include?(iface)
|
32
36
|
end
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'should collect valid fact data' do
|
33
40
|
# Stupid RSpec tricks
|
34
41
|
output = on(host, 'puppet facts --render-as json').stdout
|
35
42
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-rspec-puppet-facts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-02-
|
12
|
+
date: 2020-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec-puppet-facts
|
@@ -147,7 +147,9 @@ files:
|
|
147
147
|
- facts/2.5/redhat-6-x86_64.facts
|
148
148
|
- facts/2.5/redhat-7-x86_64.facts
|
149
149
|
- facts/2.5/redhat-8-x86_64.facts
|
150
|
-
- facts/2.5/windows-
|
150
|
+
- facts/2.5/windows-2012-r2-x86_64.facts
|
151
|
+
- facts/2.5/windows-2016-x86_64.facts
|
152
|
+
- facts/2.5/windows-2019-x86_64.facts
|
151
153
|
- facts/3.4/centos-6-x86_64.facts
|
152
154
|
- facts/3.4/centos-7-x86_64.facts
|
153
155
|
- facts/3.4/oraclelinux-6-x86_64.facts
|
@@ -188,6 +190,8 @@ files:
|
|
188
190
|
- spec/acceptance/nodesets/rhel7.yml
|
189
191
|
- spec/acceptance/nodesets/rhel8.yml
|
190
192
|
- spec/acceptance/nodesets/win_2012r2.yml
|
193
|
+
- spec/acceptance/nodesets/win_2016.yml
|
194
|
+
- spec/acceptance/nodesets/win_2019.yml
|
191
195
|
- spec/acceptance/suites/default/00_default_spec.rb
|
192
196
|
- spec/acceptance/suites/default/nodesets
|
193
197
|
- spec/data_normalization_spec.rb
|
@@ -234,8 +238,10 @@ test_files:
|
|
234
238
|
- spec/acceptance/nodesets/win_2012r2.yml
|
235
239
|
- spec/acceptance/nodesets/oel8.yml
|
236
240
|
- spec/acceptance/nodesets/centos7.yml
|
241
|
+
- spec/acceptance/nodesets/win_2019.yml
|
237
242
|
- spec/acceptance/nodesets/rhel8.yml
|
238
243
|
- spec/acceptance/nodesets/oel7.yml
|
244
|
+
- spec/acceptance/nodesets/win_2016.yml
|
239
245
|
- spec/acceptance/nodesets/rhel7.yml
|
240
246
|
- spec/simp_rspec_puppet_facts_spec.rb
|
241
247
|
- facts/Gemfile
|
@@ -272,9 +278,11 @@ test_files:
|
|
272
278
|
- facts/2.5/oraclelinux-7-x86_64.facts
|
273
279
|
- facts/2.5/centos-8-x86_64.facts
|
274
280
|
- facts/2.5/centos-7-x86_64.facts
|
281
|
+
- facts/2.5/windows-2016-x86_64.facts
|
275
282
|
- facts/2.5/redhat-7-x86_64.facts
|
276
283
|
- facts/2.5/redhat-6-x86_64.facts
|
277
|
-
- facts/2.5/windows-server_2012_r2-x86_64.facts
|
278
284
|
- facts/2.5/centos-6-x86_64.facts
|
285
|
+
- facts/2.5/windows-2019-x86_64.facts
|
279
286
|
- facts/2.5/oraclelinux-8-x86_64.facts
|
280
287
|
- facts/2.5/oraclelinux-6-x86_64.facts
|
288
|
+
- facts/2.5/windows-2012-r2-x86_64.facts
|