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": "buster",
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": "buster",
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.72",
64
+ "ipaddress6": "fe80::5054:ff:fe88:49a2",
65
+ "ipaddress6_ens5": "fe80::5054:ff:fe88:49a2",
66
+ "ipaddress6_lo": "::1",
67
+ "ipaddress_ens5": "192.168.121.72",
68
+ "ipaddress_lo": "127.0.0.1",
69
+ "is_virtual": true,
70
+ "kernel": "Linux",
71
+ "kernelmajversion": "4.19",
72
+ "kernelrelease": "4.19.0-9-amd64",
73
+ "kernelversion": "4.19.0",
74
+ "load_averages": {
75
+ "15m": 0.01,
76
+ "1m": 0.08,
77
+ "5m": 0.03
78
+ },
79
+ "lsbdistcodename": "buster",
80
+ "lsbdistdescription": "Debian GNU/Linux 10 (buster)",
81
+ "lsbdistid": "Debian",
82
+ "lsbdistrelease": "10.4",
83
+ "lsbmajdistrelease": "10",
84
+ "lsbminordistrelease": "4",
85
+ "macaddress": "52:54:00:88:49:a2",
86
+ "macaddress_ens5": "52:54:00:88:49:a2",
87
+ "manufacturer": "QEMU",
88
+ "memory": {
89
+ "system": {
90
+ "available": "289.72 MiB",
91
+ "available_bytes": 303792128,
92
+ "capacity": "40.04%",
93
+ "total": "483.20 MiB",
94
+ "total_bytes": 506667008,
95
+ "used": "193.48 MiB",
96
+ "used_bytes": 202874880
97
+ }
98
+ },
99
+ "memoryfree": "289.72 MiB",
100
+ "memoryfree_mb": 289.71875,
101
+ "memorysize": "483.20 MiB",
102
+ "memorysize_mb": 483.1953125,
103
+ "mountpoints": {
104
+ "/": {
105
+ "available": "16.20 GiB",
106
+ "available_bytes": 17397014528,
107
+ "capacity": "6.13%",
108
+ "device": "/dev/vda1",
109
+ "filesystem": "ext4",
110
+ "options": [
111
+ "rw",
112
+ "relatime",
113
+ "errors=remount-ro"
114
+ ],
115
+ "size": "18.21 GiB",
116
+ "size_bytes": 19550347264,
117
+ "used": "1.06 GiB",
118
+ "used_bytes": 1136635904
119
+ },
120
+ "/dev": {
121
+ "available": "227.57 MiB",
122
+ "available_bytes": 238620672,
123
+ "capacity": "0%",
124
+ "device": "udev",
125
+ "filesystem": "devtmpfs",
126
+ "options": [
127
+ "rw",
128
+ "nosuid",
129
+ "relatime",
130
+ "size=233028k",
131
+ "nr_inodes=58257",
132
+ "mode=755"
133
+ ],
134
+ "size": "227.57 MiB",
135
+ "size_bytes": 238620672,
136
+ "used": "0 bytes",
137
+ "used_bytes": 0
138
+ },
139
+ "/dev/hugepages": {
140
+ "available": "0 bytes",
141
+ "available_bytes": 0,
142
+ "capacity": "100%",
143
+ "device": "hugetlbfs",
144
+ "filesystem": "hugetlbfs",
145
+ "options": [
146
+ "rw",
147
+ "relatime",
148
+ "pagesize=2M"
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": "241.60 MiB",
192
+ "available_bytes": 253333504,
193
+ "capacity": "0%",
194
+ "device": "tmpfs",
195
+ "filesystem": "tmpfs",
196
+ "options": [
197
+ "rw",
198
+ "nosuid",
199
+ "nodev"
200
+ ],
201
+ "size": "241.60 MiB",
202
+ "size_bytes": 253333504,
203
+ "used": "0 bytes",
204
+ "used_bytes": 0
205
+ },
206
+ "/run": {
207
+ "available": "46.75 MiB",
208
+ "available_bytes": 49016832,
209
+ "capacity": "3.26%",
210
+ "device": "tmpfs",
211
+ "filesystem": "tmpfs",
212
+ "options": [
213
+ "rw",
214
+ "nosuid",
215
+ "noexec",
216
+ "relatime",
217
+ "size=49480k",
218
+ "mode=755"
219
+ ],
220
+ "size": "48.32 MiB",
221
+ "size_bytes": 50667520,
222
+ "used": "1.57 MiB",
223
+ "used_bytes": 1650688
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": "48.32 MiB",
246
+ "available_bytes": 50663424,
247
+ "capacity": "0%",
248
+ "device": "tmpfs",
249
+ "filesystem": "tmpfs",
250
+ "options": [
251
+ "rw",
252
+ "nosuid",
253
+ "nodev",
254
+ "relatime",
255
+ "size=49476k",
256
+ "mode=700",
257
+ "uid=1000",
258
+ "gid=1000"
259
+ ],
260
+ "size": "48.32 MiB",
261
+ "size_bytes": 50663424,
262
+ "used": "0 bytes",
263
+ "used_bytes": 0
264
+ },
265
+ "/sys/fs/cgroup": {
266
+ "available": "241.60 MiB",
267
+ "available_bytes": 253333504,
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": "241.60 MiB",
279
+ "size_bytes": 253333504,
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": "buster",
302
+ "interfaces": {
303
+ "ens5": {
304
+ "bindings": [
305
+ {
306
+ "address": "192.168.121.72",
307
+ "netmask": "255.255.255.0",
308
+ "network": "192.168.121.0"
309
+ }
310
+ ],
311
+ "bindings6": [
312
+ {
313
+ "address": "fe80::5054:ff:fe88:49a2",
314
+ "netmask": "ffff:ffff:ffff:ffff::",
315
+ "network": "fe80::"
316
+ }
317
+ ],
318
+ "dhcp": "192.168.121.1",
319
+ "ip": "192.168.121.72",
320
+ "ip6": "fe80::5054:ff:fe88:49a2",
321
+ "mac": "52:54:00:88:49:a2",
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.72",
355
+ "ip6": "fe80::5054:ff:fe88:49a2",
356
+ "mac": "52:54:00:88:49:a2",
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": "10",
367
+ "operatingsystemrelease": "10.4",
368
+ "os": {
369
+ "architecture": "amd64",
370
+ "distro": {
371
+ "codename": "buster",
372
+ "description": "Debian GNU/Linux 10 (buster)",
373
+ "id": "Debian",
374
+ "release": {
375
+ "full": "10.4",
376
+ "major": "10",
377
+ "minor": "4"
378
+ }
379
+ },
380
+ "family": "Debian",
381
+ "hardware": "x86_64",
382
+ "name": "Debian",
383
+ "release": {
384
+ "full": "10.4",
385
+ "major": "10",
386
+ "minor": "4"
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 b42a0206d9f3e7a5af8fe74c52aa8deb0246311b",
430
+ "sha256": "SSHFP 3 2 b941abe135d0fd4b529b8a64ec8e69957c249873d7104f54e14d43fc0270f1b5"
431
+ },
432
+ "key": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCnAsP0kgyFNxjHAHbm8FWFjyZCnnzbYv2bDn+5Nre0Byq83ObNcIvtQwveTqvXGAqNfT2GjLdovby2zq1yJpkI=",
433
+ "type": "ecdsa-sha2-nistp256"
434
+ },
435
+ "ed25519": {
436
+ "fingerprints": {
437
+ "sha1": "SSHFP 4 1 4460b6b2b862be9fc2b74982ab7eb6bf59d023cf",
438
+ "sha256": "SSHFP 4 2 48ccb96d5cc2dc6c9e0d197c642bb25da77eb231a57259ee297760b9fa4bfc39"
439
+ },
440
+ "key": "AAAAC3NzaC1lZDI1NTE5AAAAIL397Wi4k2iiEaBr9yRnfxeW7r2pTIHlpSowZeWCNEfB",
441
+ "type": "ssh-ed25519"
442
+ },
443
+ "rsa": {
444
+ "fingerprints": {
445
+ "sha1": "SSHFP 1 1 a3c5c7eb200a59d18f0b23c3c52bc2d443b4c34c",
446
+ "sha256": "SSHFP 1 2 b27e438e1cb0569386f0423c5718f2a9fca78734f69887fee0e83371eb6d3c5d"
447
+ },
448
+ "key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCn5di3FxsIrYFI//j0keOPMrlg6xxCbsTmEnGBvOgrIBwfjujiagldtz5gUShBD1kVqH+YVND8csppLqTMSIAJMUKQF5ZXYFp6S/qVZ6pCWlRn9ygu3oRpgFmhy41k8hjDZqCa9q2MEl1YSlxKjt6deEis1IM5YYzb7ulqIZ9eHMzAEUN0K/ZONfwuaDzIblypYV5pSICAa4sMtcCaY4tPvstK4GPKJ/jSbcVvMfpVs7o0wXOAocVExKzLT5Xam0xVF9tsY7APFiFhG5ouk/ZXaCi1yoqedeGZq3IDiVUVJ9WQbHv63WiUZ/v9oPDCHOnOjf05Sm5T4tI64ZaWjSPf",
449
+ "type": "ssh-rsa"
450
+ }
451
+ },
452
+ "sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCnAsP0kgyFNxjHAHbm8FWFjyZCnnzbYv2bDn+5Nre0Byq83ObNcIvtQwveTqvXGAqNfT2GjLdovby2zq1yJpkI=",
453
+ "sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAIL397Wi4k2iiEaBr9yRnfxeW7r2pTIHlpSowZeWCNEfB",
454
+ "sshfp_ecdsa": "SSHFP 3 1 b42a0206d9f3e7a5af8fe74c52aa8deb0246311b\nSSHFP 3 2 b941abe135d0fd4b529b8a64ec8e69957c249873d7104f54e14d43fc0270f1b5",
455
+ "sshfp_ed25519": "SSHFP 4 1 4460b6b2b862be9fc2b74982ab7eb6bf59d023cf\nSSHFP 4 2 48ccb96d5cc2dc6c9e0d197c642bb25da77eb231a57259ee297760b9fa4bfc39",
456
+ "sshfp_rsa": "SSHFP 1 1 a3c5c7eb200a59d18f0b23c3c52bc2d443b4c34c\nSSHFP 1 2 b27e438e1cb0569386f0423c5718f2a9fca78734f69887fee0e83371eb6d3c5d",
457
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCn5di3FxsIrYFI//j0keOPMrlg6xxCbsTmEnGBvOgrIBwfjujiagldtz5gUShBD1kVqH+YVND8csppLqTMSIAJMUKQF5ZXYFp6S/qVZ6pCWlRn9ygu3oRpgFmhy41k8hjDZqCa9q2MEl1YSlxKjt6deEis1IM5YYzb7ulqIZ9eHMzAEUN0K/ZONfwuaDzIblypYV5pSICAa4sMtcCaY4tPvstK4GPKJ/jSbcVvMfpVs7o0wXOAocVExKzLT5Xam0xVF9tsY7APFiFhG5ouk/ZXaCi1yoqedeGZq3IDiVUVJ9WQbHv63WiUZ/v9oPDCHOnOjf05Sm5T4tI64ZaWjSPf",
458
+ "system_uptime": {
459
+ "days": 0,
460
+ "hours": 0,
461
+ "seconds": 78,
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": 78,
469
+ "virtual": "kvm",
470
+ "clientcert": "buster",
471
+ "clientversion": "6.19.1",
472
+ "clientnoop": false
473
+ },
474
+ "timestamp": "2021-01-01T02:16:21.197378737+00:00",
475
+ "expiration": "2021-01-01T02:46:21.197648839+00:00"
476
+ }