onceover 3.17.2 → 3.19.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.gitattributes +2 -0
  3. data/.github/workflows/tests.yaml +40 -0
  4. data/.rubocop.yml +20 -2
  5. data/Gemfile +0 -13
  6. data/README.md +201 -110
  7. data/Rakefile +8 -5
  8. data/factsets/CentOS-8.3.2011-64.json +485 -0
  9. data/factsets/Debian-10.4-64.json +476 -0
  10. data/factsets/Debian-8.11-64.json +480 -0
  11. data/factsets/Debian-9.12-64.json +476 -0
  12. data/factsets/Ubuntu-20.04-64.json +504 -0
  13. data/factsets/Windows_Server-2008r2-64.json +184 -183
  14. data/factsets/Windows_Server-2012r2-64.json +165 -164
  15. data/factsets/windows-10-64.json +104 -103
  16. data/features/cache.feature +1 -1
  17. data/features/step_definitions/cache.rb +4 -4
  18. data/features/step_definitions/common.rb +38 -10
  19. data/features/step_definitions/init.rb +2 -2
  20. data/features/windows.feature +5 -0
  21. data/features/zzz_run.feature +22 -3
  22. data/lib/onceover/controlrepo.rb +10 -4
  23. data/lib/onceover/deploy.rb +3 -1
  24. data/lib/onceover/group.rb +3 -1
  25. data/lib/onceover/rspec/formatters.rb +6 -1
  26. data/lib/onceover/runner.rb +7 -6
  27. data/lib/onceover/test.rb +3 -2
  28. data/lib/onceover/testconfig.rb +28 -5
  29. data/onceover.gemspec +5 -2
  30. data/spec/fixtures/controlrepos/basic/manifests_alternate/site.pp +2 -0
  31. data/spec/fixtures/controlrepos/caching/Puppetfile +17 -17
  32. data/spec/fixtures/controlrepos/caching/manifests/site.pp +1 -0
  33. data/spec/fixtures/controlrepos/custom_puppetfile/Puppetfile.custom +3 -0
  34. data/spec/fixtures/controlrepos/custom_puppetfile/environment.conf +7 -0
  35. data/spec/fixtures/controlrepos/windows/Puppetfile +6 -1
  36. data/spec/fixtures/controlrepos/windows/site-modules/role/manifests/choco.pp +9 -0
  37. data/templates/test_spec.rb.erb +1 -1
  38. metadata +75 -18
  39. data/.travis.yml +0 -19
  40. data/appveyor.yml +0 -38
@@ -0,0 +1,476 @@
1
+ {
2
+ "name": "stretch",
3
+ "values": {
4
+ "aio_agent_version": "6.19.1",
5
+ "architecture": "amd64",
6
+ "augeas": {
7
+ "version": "1.12.0"
8
+ },
9
+ "augeasversion": "1.12.0",
10
+ "bios_release_date": "04/01/2014",
11
+ "bios_vendor": "SeaBIOS",
12
+ "bios_version": "1.13.0-1ubuntu1",
13
+ "blockdevice_vda_size": 21474836480,
14
+ "blockdevice_vda_vendor": "0x1af4",
15
+ "blockdevices": "vda",
16
+ "chassistype": "Other",
17
+ "dhcp_servers": {
18
+ "ens5": "192.168.121.1",
19
+ "system": "192.168.121.1"
20
+ },
21
+ "disks": {
22
+ "vda": {
23
+ "size": "20.00 GiB",
24
+ "size_bytes": 21474836480,
25
+ "vendor": "0x1af4"
26
+ }
27
+ },
28
+ "dmi": {
29
+ "bios": {
30
+ "release_date": "04/01/2014",
31
+ "vendor": "SeaBIOS",
32
+ "version": "1.13.0-1ubuntu1"
33
+ },
34
+ "chassis": {
35
+ "type": "Other"
36
+ },
37
+ "manufacturer": "QEMU",
38
+ "product": {
39
+ "name": "Standard PC (i440FX + PIIX, 1996)"
40
+ }
41
+ },
42
+ "facterversion": "3.14.14",
43
+ "filesystems": "ext2,ext3,ext4",
44
+ "fips_enabled": false,
45
+ "fqdn": "localhost",
46
+ "gid": "vagrant",
47
+ "hardwareisa": "unknown",
48
+ "hardwaremodel": "x86_64",
49
+ "hostname": "stretch",
50
+ "hypervisors": {
51
+ "kvm": {
52
+ }
53
+ },
54
+ "id": "vagrant",
55
+ "identity": {
56
+ "gid": 1000,
57
+ "group": "vagrant",
58
+ "privileged": false,
59
+ "uid": 1000,
60
+ "user": "vagrant"
61
+ },
62
+ "interfaces": "ens5,lo",
63
+ "ipaddress": "192.168.121.233",
64
+ "ipaddress6": "fe80::5054:ff:feb4:48ae",
65
+ "ipaddress6_ens5": "fe80::5054:ff:feb4:48ae",
66
+ "ipaddress6_lo": "::1",
67
+ "ipaddress_ens5": "192.168.121.233",
68
+ "ipaddress_lo": "127.0.0.1",
69
+ "is_virtual": true,
70
+ "kernel": "Linux",
71
+ "kernelmajversion": "4.9",
72
+ "kernelrelease": "4.9.0-12-amd64",
73
+ "kernelversion": "4.9.0",
74
+ "load_averages": {
75
+ "15m": 0.02,
76
+ "1m": 0.24,
77
+ "5m": 0.07
78
+ },
79
+ "lsbdistcodename": "stretch",
80
+ "lsbdistdescription": "Debian GNU/Linux 9.12 (stretch)",
81
+ "lsbdistid": "Debian",
82
+ "lsbdistrelease": "9.12",
83
+ "lsbmajdistrelease": "9",
84
+ "lsbminordistrelease": "12",
85
+ "macaddress": "52:54:00:b4:48:ae",
86
+ "macaddress_ens5": "52:54:00:b4:48:ae",
87
+ "manufacturer": "QEMU",
88
+ "memory": {
89
+ "system": {
90
+ "available": "353.84 MiB",
91
+ "available_bytes": 371023872,
92
+ "capacity": "28.13%",
93
+ "total": "492.36 MiB",
94
+ "total_bytes": 516272128,
95
+ "used": "138.52 MiB",
96
+ "used_bytes": 145248256
97
+ }
98
+ },
99
+ "memoryfree": "353.84 MiB",
100
+ "memoryfree_mb": 353.8359375,
101
+ "memorysize": "492.36 MiB",
102
+ "memorysize_mb": 492.35546875,
103
+ "mountpoints": {
104
+ "/": {
105
+ "available": "16.31 GiB",
106
+ "available_bytes": 17516843008,
107
+ "capacity": "5.49%",
108
+ "device": "/dev/vda1",
109
+ "filesystem": "ext4",
110
+ "options": [
111
+ "rw",
112
+ "relatime",
113
+ "errors=remount-ro",
114
+ "data=ordered"
115
+ ],
116
+ "size": "18.21 GiB",
117
+ "size_bytes": 19550347264,
118
+ "used": "969.70 MiB",
119
+ "used_bytes": 1016807424
120
+ },
121
+ "/dev": {
122
+ "available": "235.60 MiB",
123
+ "available_bytes": 247042048,
124
+ "capacity": "0%",
125
+ "device": "udev",
126
+ "filesystem": "devtmpfs",
127
+ "options": [
128
+ "rw",
129
+ "nosuid",
130
+ "relatime",
131
+ "size=241252k",
132
+ "nr_inodes=60313",
133
+ "mode=755"
134
+ ],
135
+ "size": "235.60 MiB",
136
+ "size_bytes": 247042048,
137
+ "used": "0 bytes",
138
+ "used_bytes": 0
139
+ },
140
+ "/dev/hugepages": {
141
+ "available": "0 bytes",
142
+ "available_bytes": 0,
143
+ "capacity": "100%",
144
+ "device": "hugetlbfs",
145
+ "filesystem": "hugetlbfs",
146
+ "options": [
147
+ "rw",
148
+ "relatime"
149
+ ],
150
+ "size": "0 bytes",
151
+ "size_bytes": 0,
152
+ "used": "0 bytes",
153
+ "used_bytes": 0
154
+ },
155
+ "/dev/mqueue": {
156
+ "available": "0 bytes",
157
+ "available_bytes": 0,
158
+ "capacity": "100%",
159
+ "device": "mqueue",
160
+ "filesystem": "mqueue",
161
+ "options": [
162
+ "rw",
163
+ "relatime"
164
+ ],
165
+ "size": "0 bytes",
166
+ "size_bytes": 0,
167
+ "used": "0 bytes",
168
+ "used_bytes": 0
169
+ },
170
+ "/dev/pts": {
171
+ "available": "0 bytes",
172
+ "available_bytes": 0,
173
+ "capacity": "100%",
174
+ "device": "devpts",
175
+ "filesystem": "devpts",
176
+ "options": [
177
+ "rw",
178
+ "nosuid",
179
+ "noexec",
180
+ "relatime",
181
+ "gid=5",
182
+ "mode=620",
183
+ "ptmxmode=000"
184
+ ],
185
+ "size": "0 bytes",
186
+ "size_bytes": 0,
187
+ "used": "0 bytes",
188
+ "used_bytes": 0
189
+ },
190
+ "/dev/shm": {
191
+ "available": "246.18 MiB",
192
+ "available_bytes": 258134016,
193
+ "capacity": "0%",
194
+ "device": "tmpfs",
195
+ "filesystem": "tmpfs",
196
+ "options": [
197
+ "rw",
198
+ "nosuid",
199
+ "nodev"
200
+ ],
201
+ "size": "246.18 MiB",
202
+ "size_bytes": 258134016,
203
+ "used": "0 bytes",
204
+ "used_bytes": 0
205
+ },
206
+ "/run": {
207
+ "available": "47.63 MiB",
208
+ "available_bytes": 49942528,
209
+ "capacity": "3.27%",
210
+ "device": "tmpfs",
211
+ "filesystem": "tmpfs",
212
+ "options": [
213
+ "rw",
214
+ "nosuid",
215
+ "noexec",
216
+ "relatime",
217
+ "size=50420k",
218
+ "mode=755"
219
+ ],
220
+ "size": "49.24 MiB",
221
+ "size_bytes": 51630080,
222
+ "used": "1.61 MiB",
223
+ "used_bytes": 1687552
224
+ },
225
+ "/run/lock": {
226
+ "available": "5.00 MiB",
227
+ "available_bytes": 5242880,
228
+ "capacity": "0%",
229
+ "device": "tmpfs",
230
+ "filesystem": "tmpfs",
231
+ "options": [
232
+ "rw",
233
+ "nosuid",
234
+ "nodev",
235
+ "noexec",
236
+ "relatime",
237
+ "size=5120k"
238
+ ],
239
+ "size": "5.00 MiB",
240
+ "size_bytes": 5242880,
241
+ "used": "0 bytes",
242
+ "used_bytes": 0
243
+ },
244
+ "/run/user/1000": {
245
+ "available": "49.23 MiB",
246
+ "available_bytes": 51625984,
247
+ "capacity": "0%",
248
+ "device": "tmpfs",
249
+ "filesystem": "tmpfs",
250
+ "options": [
251
+ "rw",
252
+ "nosuid",
253
+ "nodev",
254
+ "relatime",
255
+ "size=50416k",
256
+ "mode=700",
257
+ "uid=1000",
258
+ "gid=1000"
259
+ ],
260
+ "size": "49.23 MiB",
261
+ "size_bytes": 51625984,
262
+ "used": "0 bytes",
263
+ "used_bytes": 0
264
+ },
265
+ "/sys/fs/cgroup": {
266
+ "available": "246.18 MiB",
267
+ "available_bytes": 258134016,
268
+ "capacity": "0%",
269
+ "device": "tmpfs",
270
+ "filesystem": "tmpfs",
271
+ "options": [
272
+ "ro",
273
+ "nosuid",
274
+ "nodev",
275
+ "noexec",
276
+ "mode=755"
277
+ ],
278
+ "size": "246.18 MiB",
279
+ "size_bytes": 258134016,
280
+ "used": "0 bytes",
281
+ "used_bytes": 0
282
+ }
283
+ },
284
+ "mtu_ens5": 1500,
285
+ "mtu_lo": 65536,
286
+ "netmask": "255.255.255.0",
287
+ "netmask6": "ffff:ffff:ffff:ffff::",
288
+ "netmask6_ens5": "ffff:ffff:ffff:ffff::",
289
+ "netmask6_lo": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
290
+ "netmask_ens5": "255.255.255.0",
291
+ "netmask_lo": "255.0.0.0",
292
+ "network": "192.168.121.0",
293
+ "network6": "fe80::",
294
+ "network6_ens5": "fe80::",
295
+ "network6_lo": "::1",
296
+ "network_ens5": "192.168.121.0",
297
+ "network_lo": "127.0.0.0",
298
+ "networking": {
299
+ "dhcp": "192.168.121.1",
300
+ "fqdn": "localhost",
301
+ "hostname": "stretch",
302
+ "interfaces": {
303
+ "ens5": {
304
+ "bindings": [
305
+ {
306
+ "address": "192.168.121.233",
307
+ "netmask": "255.255.255.0",
308
+ "network": "192.168.121.0"
309
+ }
310
+ ],
311
+ "bindings6": [
312
+ {
313
+ "address": "fe80::5054:ff:feb4:48ae",
314
+ "netmask": "ffff:ffff:ffff:ffff::",
315
+ "network": "fe80::"
316
+ }
317
+ ],
318
+ "dhcp": "192.168.121.1",
319
+ "ip": "192.168.121.233",
320
+ "ip6": "fe80::5054:ff:feb4:48ae",
321
+ "mac": "52:54:00:b4:48:ae",
322
+ "mtu": 1500,
323
+ "netmask": "255.255.255.0",
324
+ "netmask6": "ffff:ffff:ffff:ffff::",
325
+ "network": "192.168.121.0",
326
+ "network6": "fe80::",
327
+ "scope6": "link"
328
+ },
329
+ "lo": {
330
+ "bindings": [
331
+ {
332
+ "address": "127.0.0.1",
333
+ "netmask": "255.0.0.0",
334
+ "network": "127.0.0.0"
335
+ }
336
+ ],
337
+ "bindings6": [
338
+ {
339
+ "address": "::1",
340
+ "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
341
+ "network": "::1"
342
+ }
343
+ ],
344
+ "ip": "127.0.0.1",
345
+ "ip6": "::1",
346
+ "mtu": 65536,
347
+ "netmask": "255.0.0.0",
348
+ "netmask6": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
349
+ "network": "127.0.0.0",
350
+ "network6": "::1",
351
+ "scope6": "host"
352
+ }
353
+ },
354
+ "ip": "192.168.121.233",
355
+ "ip6": "fe80::5054:ff:feb4:48ae",
356
+ "mac": "52:54:00:b4:48:ae",
357
+ "mtu": 1500,
358
+ "netmask": "255.255.255.0",
359
+ "netmask6": "ffff:ffff:ffff:ffff::",
360
+ "network": "192.168.121.0",
361
+ "network6": "fe80::",
362
+ "primary": "ens5",
363
+ "scope6": "link"
364
+ },
365
+ "operatingsystem": "Debian",
366
+ "operatingsystemmajrelease": "9",
367
+ "operatingsystemrelease": "9.12",
368
+ "os": {
369
+ "architecture": "amd64",
370
+ "distro": {
371
+ "codename": "stretch",
372
+ "description": "Debian GNU/Linux 9.12 (stretch)",
373
+ "id": "Debian",
374
+ "release": {
375
+ "full": "9.12",
376
+ "major": "9",
377
+ "minor": "12"
378
+ }
379
+ },
380
+ "family": "Debian",
381
+ "hardware": "x86_64",
382
+ "name": "Debian",
383
+ "release": {
384
+ "full": "9.12",
385
+ "major": "9",
386
+ "minor": "12"
387
+ },
388
+ "selinux": {
389
+ "enabled": false
390
+ }
391
+ },
392
+ "osfamily": "Debian",
393
+ "partitions": {
394
+ "/dev/vda1": {
395
+ "mount": "/",
396
+ "size": "18.63 GiB",
397
+ "size_bytes": 19998441472
398
+ }
399
+ },
400
+ "path": "/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/puppetlabs/bin:/usr/sbin:/sbin",
401
+ "physicalprocessorcount": 1,
402
+ "processor0": "AMD EPYC-Rome Processor",
403
+ "processorcount": 1,
404
+ "processors": {
405
+ "count": 1,
406
+ "isa": "unknown",
407
+ "models": [
408
+ "AMD EPYC-Rome Processor"
409
+ ],
410
+ "physicalcount": 1
411
+ },
412
+ "productname": "Standard PC (i440FX + PIIX, 1996)",
413
+ "puppetversion": "6.19.1",
414
+ "ruby": {
415
+ "platform": "x86_64-linux",
416
+ "sitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.5.0",
417
+ "version": "2.5.8"
418
+ },
419
+ "rubyplatform": "x86_64-linux",
420
+ "rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.5.0",
421
+ "rubyversion": "2.5.8",
422
+ "scope6": "link",
423
+ "scope6_ens5": "link",
424
+ "scope6_lo": "host",
425
+ "selinux": false,
426
+ "ssh": {
427
+ "ecdsa": {
428
+ "fingerprints": {
429
+ "sha1": "SSHFP 3 1 ff9175f4798805f6a6159babbf25fe9ba0391dad",
430
+ "sha256": "SSHFP 3 2 630465bbbb1ba6b7590a47b0a78e09df19239f772e440483302c2a3b3248968f"
431
+ },
432
+ "key": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEJjPceZG0r+a03zqVnyUA8skr8HvXARBKslsU/b2SGR1lm43NAAik5i1uctnAJkhDdfzpLrkR3ZOr93L+OWDBE=",
433
+ "type": "ecdsa-sha2-nistp256"
434
+ },
435
+ "ed25519": {
436
+ "fingerprints": {
437
+ "sha1": "SSHFP 4 1 a5dddd1e92ed18e5817451b706b23c624b06d5f7",
438
+ "sha256": "SSHFP 4 2 b487cea583a2a3c31af9b361ebcea0dc379511dae0c4bb07911c86b540d015cd"
439
+ },
440
+ "key": "AAAAC3NzaC1lZDI1NTE5AAAAIAqKFgiLtOyU1kgZugZuWjwdtyZTHTfiH+yQfat1HZSi",
441
+ "type": "ssh-ed25519"
442
+ },
443
+ "rsa": {
444
+ "fingerprints": {
445
+ "sha1": "SSHFP 1 1 bd2f6bb015cf5e2e1628d17eccbf220cb36b6355",
446
+ "sha256": "SSHFP 1 2 df108fc59283c0f45f9f90f2e47c1552c4b83c778aa391ec5f4ff24d4ca9aa46"
447
+ },
448
+ "key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDeKGPHY9vMpnFL6uQ1RB65DkUk05XHpWdXmECEePuHDDCkAyT+lDIqZG8u4OrcBEPGCsSXh68/pcJa5ZJZyS9yP6a7sbyc4sinpdQxNKBRnhn+S+zJ0px5zJM/Rmb3ZozRxmGYaFvaE5AglUp05s+8MHeZZqzjhfjARuOc9CYXlk2SfMzfvu+bcltV204JoiJ97CHcDkKi95WNrpH5emLJ8mkSU7/70oGw6681ZCRINc1BqT9Bqn8FTEcGrgQBiYdjsczp54EguMPaU21AwC3Cse4xMFS7DSSdL1xrzZKqE/WArGtoNOql0rqY5baOwuFCmPSu5UTWwfDFhPUa7JRR",
449
+ "type": "ssh-rsa"
450
+ }
451
+ },
452
+ "sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEJjPceZG0r+a03zqVnyUA8skr8HvXARBKslsU/b2SGR1lm43NAAik5i1uctnAJkhDdfzpLrkR3ZOr93L+OWDBE=",
453
+ "sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAIAqKFgiLtOyU1kgZugZuWjwdtyZTHTfiH+yQfat1HZSi",
454
+ "sshfp_ecdsa": "SSHFP 3 1 ff9175f4798805f6a6159babbf25fe9ba0391dad\nSSHFP 3 2 630465bbbb1ba6b7590a47b0a78e09df19239f772e440483302c2a3b3248968f",
455
+ "sshfp_ed25519": "SSHFP 4 1 a5dddd1e92ed18e5817451b706b23c624b06d5f7\nSSHFP 4 2 b487cea583a2a3c31af9b361ebcea0dc379511dae0c4bb07911c86b540d015cd",
456
+ "sshfp_rsa": "SSHFP 1 1 bd2f6bb015cf5e2e1628d17eccbf220cb36b6355\nSSHFP 1 2 df108fc59283c0f45f9f90f2e47c1552c4b83c778aa391ec5f4ff24d4ca9aa46",
457
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDeKGPHY9vMpnFL6uQ1RB65DkUk05XHpWdXmECEePuHDDCkAyT+lDIqZG8u4OrcBEPGCsSXh68/pcJa5ZJZyS9yP6a7sbyc4sinpdQxNKBRnhn+S+zJ0px5zJM/Rmb3ZozRxmGYaFvaE5AglUp05s+8MHeZZqzjhfjARuOc9CYXlk2SfMzfvu+bcltV204JoiJ97CHcDkKi95WNrpH5emLJ8mkSU7/70oGw6681ZCRINc1BqT9Bqn8FTEcGrgQBiYdjsczp54EguMPaU21AwC3Cse4xMFS7DSSdL1xrzZKqE/WArGtoNOql0rqY5baOwuFCmPSu5UTWwfDFhPUa7JRR",
458
+ "system_uptime": {
459
+ "days": 0,
460
+ "hours": 0,
461
+ "seconds": 71,
462
+ "uptime": "0:01 hours"
463
+ },
464
+ "timezone": "UTC",
465
+ "uptime": "0:01 hours",
466
+ "uptime_days": 0,
467
+ "uptime_hours": 0,
468
+ "uptime_seconds": 71,
469
+ "virtual": "kvm",
470
+ "clientcert": "stretch",
471
+ "clientversion": "6.19.1",
472
+ "clientnoop": false
473
+ },
474
+ "timestamp": "2021-01-01T02:13:57.494595858+00:00",
475
+ "expiration": "2021-01-01T02:43:57.494862124+00:00"
476
+ }