onceover 3.13.2 → 3.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5eb80a3ae1c246c61dbb585847893f12ddf29b63123d634f654a9b3df8db555f
4
- data.tar.gz: c70f9119d78af24e7b9f21c6332d042b4b9fd846ea86a3cb8c02771b0b4c1d10
3
+ metadata.gz: 1e7b37b37e3704c6ec2183c6670efbda0bf9bcb24ddf948c88e44acd686d23c7
4
+ data.tar.gz: ebfb0a52ccbd684d41898a93469b12832f9e6efca792d7df47e76e6ff7c644fa
5
5
  SHA512:
6
- metadata.gz: 95384f8c9daeaf51f3ef2fe97b373735fdc82e285f54dddfb59faad31ed0b9a6d0436c17f9b0db2d48686b26eced32cdeac737d1f32eb39818e7cf03644c54ce
7
- data.tar.gz: c9a81d7b58e4a4651834863ee967b74be5d07f268c8c8d96619b3e42e95c8816043164b4d060174e06fa1a97ab557c4aeca9be4951e6784880c3ac302af32c20
6
+ metadata.gz: a70412dcdd03ccbdf4bd0bef27a5ac732e9edda51e3e6872a37df79c4ab64d86d64f4b6052542a46ea5b135dd9649b9f47a9b5781aa29316996223cc03daf77e
7
+ data.tar.gz: c8841bef52586a8b460d1410449bbbbd3ff26d94d4df5399027458bebdf836cd6e1b14d8e5b6b3855fd5b8342c28a0396be4f1381597b119253b591cb6c250a1
data/README.md CHANGED
@@ -635,3 +635,5 @@ Cheers to all of those who helped out:
635
635
  - @binford2k
636
636
  - @raphink
637
637
  - @tequeter
638
+ - @alexjfisher
639
+
@@ -14,6 +14,11 @@ Feature: Create and maintain a .onceover cache
14
14
  Then the cache should exist
15
15
  And the cache should contain all controlrepo files
16
16
 
17
+ Scenario: Runnone onnceover in the caching repo
18
+ Given control repo "caching"
19
+ When I run onceover command "run spec --classes role::webserver"
20
+ Then I should not see any errors
21
+
17
22
  Scenario: Creating a new file
18
23
  Given existing control repo "caching"
19
24
  When I create a file "example.txt"
@@ -0,0 +1,19 @@
1
+ @factsets
2
+ Feature: Handle factsets properly
3
+ Onceover should allow users to add their own factsets and should handle these well
4
+
5
+ Background:
6
+ Given onceover executable
7
+
8
+ Scenario: Setecting existing factsets
9
+ Given control repo "factsets"
10
+ When I run onceover command "init"
11
+ Then the config should contain "centos_with_env"
12
+
13
+ # This needs to be tested because an environment fact, if not handled, makes
14
+ # compilation fail becaiuse it breaks all of the workarounds that have been
15
+ # put in place within rspec-puppet for the environment
16
+ Scenario: Run with a factsent containing an environment facts
17
+ Given existing control repo "factsets"
18
+ When I run onceover command "run spec"
19
+ Then I should not see any errors
@@ -7,6 +7,11 @@ Feature: Run rspec and acceptance test suites
7
7
  Background:
8
8
  Given onceover executable
9
9
 
10
+ Scenario: Run without a Puppetfile
11
+ Given initialized control repo "minimal"
12
+ When I run onceover command "run spec"
13
+ Then I should not see any errors
14
+
10
15
  Scenario: Run correct spec tests
11
16
  Given initialized control repo "basic"
12
17
  When I run onceover command "run spec"
@@ -66,5 +71,5 @@ Feature: Run rspec and acceptance test suites
66
71
  # This test is a full test using my controlrepo. It should remain at the end because it takes ages
67
72
  Scenario: Run advanced spec tests
68
73
  Given control repo "puppet_controlrepo"
69
- When I run onceover command "run spec"
74
+ When I run onceover command "run spec -p"
70
75
  Then I should not see any errors
@@ -51,6 +51,11 @@ Then(/^I should not see any errors$/) do
51
51
  expect(@cmd.success?).to be true
52
52
  end
53
53
 
54
+ Then(/^the config should contain "([^"]*)"$/) do |pattern|
55
+ pattern = Regexp.new(pattern)
56
+ expect(@repo.config_file_contents).to match(pattern)
57
+ end
58
+
54
59
  Then(/^Onceover should exit (\d+)$/) do |code|
55
60
  expect(@cmd.exit_code).to eq code.to_i
56
61
  end
@@ -8,19 +8,27 @@ class ControlRepo_Helper
8
8
  end
9
9
 
10
10
  def root_folder
11
- return @tmp_folder + @name + '/'
11
+ @tmp_folder + @name + '/'
12
12
  end
13
13
 
14
14
  def puppetfile
15
- return root_folder + "Puppetfile"
15
+ root_folder + "Puppetfile"
16
16
  end
17
17
 
18
18
  def onceover_temp_root_folder
19
- return root_folder + '.onceover/etc/puppetlabs/code/environments/production/'
19
+ root_folder + '.onceover/etc/puppetlabs/code/environments/production/'
20
20
  end
21
21
 
22
22
  def onceover_temp_puppetfile
23
- return onceover_temp_root_folder + "Puppetfile"
23
+ onceover_temp_root_folder + "Puppetfile"
24
+ end
25
+
26
+ def config_file
27
+ root_folder + 'spec/onceover.yaml'
28
+ end
29
+
30
+ def config_file_contents
31
+ File.read(config_file)
24
32
  end
25
33
 
26
34
  def add_line_to_puppetfile( line )
@@ -9,7 +9,9 @@ class Onceover
9
9
 
10
10
  logger.debug 'Deploying locally (R10K)...'
11
11
 
12
- skip_r10k = opts[:skip_r10k] || false
12
+ # Only default to running r10k if there is a Puppetfile
13
+ skip_r10k_default = !(File.file?(repo.puppetfile))
14
+ skip_r10k = opts[:skip_r10k] || skip_r10k_default
13
15
  force = opts[:force] || false
14
16
 
15
17
  if repo.tempdir == nil
@@ -32,6 +34,7 @@ class Onceover
32
34
  File.join(repo.root, ".onceover"),
33
35
  File.join(repo.root, ".git"),
34
36
  File.join(repo.root, ".modules"),
37
+ File.join(repo.root, "vendor"),
35
38
  ]
36
39
  excluded_dirs << ENV['GEM_HOME'] if ENV['GEM_HOME']
37
40
 
@@ -78,11 +81,14 @@ class Onceover
78
81
  git_branch = `git rev-parse --abbrev-ref HEAD`.chomp
79
82
 
80
83
  logger.debug "found #{git_branch} as current working branch"
81
- puppetfile_contents = File.read("#{temp_controlrepo}/Puppetfile")
84
+ # Only try to modify Puppetfile if it exists
85
+ unless skip_r10k
86
+ puppetfile_contents = File.read("#{temp_controlrepo}/Puppetfile")
82
87
 
83
- logger.debug "replacing :control_branch mentions in the Puppetfile with #{git_branch}"
84
- new_puppetfile_contents = puppetfile_contents.gsub(/:control_branch/, "'#{git_branch}'")
85
- File.write("#{temp_controlrepo}/Puppetfile", new_puppetfile_contents)
88
+ logger.debug "replacing :control_branch mentions in the Puppetfile with #{git_branch}"
89
+ new_puppetfile_contents = puppetfile_contents.gsub(/:control_branch/, "'#{git_branch}'")
90
+ File.write("#{temp_controlrepo}/Puppetfile", new_puppetfile_contents)
91
+ end
86
92
 
87
93
  # Remove all files written by the last onceover run, but not the ones
88
94
  # added by r10k, because that's what we are trying to cache but we don't
@@ -128,4 +134,4 @@ class Onceover
128
134
  repo.tempdir
129
135
  end
130
136
  end
131
- end
137
+ end
@@ -18,8 +18,8 @@ class Onceover
18
18
  begin
19
19
  facts_file_index = Onceover::Controlrepo.facts_files.index {|facts_file|
20
20
  File.basename(facts_file, '.json') == name
21
- }
22
- @fact_set = Onceover::Controlrepo.facts[facts_file_index]
21
+ }
22
+ @fact_set = Onceover::Node.clean_facts(Onceover::Controlrepo.facts[facts_file_index])
23
23
  @trusted_set = Onceover::Controlrepo.trusted_facts[facts_file_index]
24
24
  rescue TypeError
25
25
  @fact_set = nil
@@ -47,5 +47,11 @@ class Onceover
47
47
  def self.all
48
48
  @@all
49
49
  end
50
+
51
+ # This method ensures that all facts are valid and clean anoything that we can't handle
52
+ def self.clean_facts(factset)
53
+ factset.delete('environment')
54
+ factset
55
+ end
50
56
  end
51
57
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "onceover"
7
- s.version = "3.13.2"
7
+ s.version = "3.13.3"
8
8
  s.authors = ["Dylan Ratcliffe"]
9
9
  s.email = ["dylan.ratcliffe@puppet.com"]
10
10
  s.homepage = "https://github.com/dylanratcliffe/onceover"
@@ -0,0 +1,7 @@
1
+ # This should end up exactly the same in the test, backslashes should be
2
+ # preserved
3
+ $backslashes = '\2'
4
+
5
+ # Cheak that things haven't been escaped
6
+ unless $backslashes[0] == "\\" { fail() }
7
+ unless $backslashes[1] == '2' { fail() }
@@ -0,0 +1 @@
1
+ modulepath = site:modules:$basemodulepath
@@ -0,0 +1,6 @@
1
+ #
2
+ class profile::base {
3
+
4
+ #the base profile should include component modules that will be on all nodes
5
+
6
+ }
@@ -0,0 +1,353 @@
1
+ {
2
+ "name": "centos7b.syd.puppetlabs.demo",
3
+ "values": {
4
+ "aio_agent_build": "1.2.2",
5
+ "aio_agent_version": "1.2.2",
6
+ "architecture": "x86_64",
7
+ "augeas": {
8
+ "version": "1.4.0"
9
+ },
10
+ "augeasversion": "1.4.0",
11
+ "bios_release_date": "12/01/2006",
12
+ "bios_vendor": "innotek GmbH",
13
+ "bios_version": "VirtualBox",
14
+ "blockdevice_sda_model": "VBOX HARDDISK",
15
+ "blockdevice_sda_size": 21474836480,
16
+ "blockdevice_sda_vendor": "ATA",
17
+ "blockdevices": "sda",
18
+ "boardmanufacturer": "Oracle Corporation",
19
+ "boardproductname": "VirtualBox",
20
+ "boardserialnumber": "0",
21
+ "chassistype": "Other",
22
+ "concat_basedir": "/opt/puppetlabs/puppet/cache/concat",
23
+ "custom_auth_conf": "false",
24
+ "datacenter": "sydney",
25
+ "dhcp_servers": {
26
+ "enp0s3": "10.0.2.2",
27
+ "enp0s8": "192.168.56.100",
28
+ "system": "10.0.2.2"
29
+ },
30
+ "disks": {
31
+ "sda": {
32
+ "model": "VBOX HARDDISK",
33
+ "size": "20.00 GiB",
34
+ "size_bytes": 21474836480,
35
+ "vendor": "ATA"
36
+ }
37
+ },
38
+ "dmi": {
39
+ "bios": {
40
+ "release_date": "12/01/2006",
41
+ "vendor": "innotek GmbH",
42
+ "version": "VirtualBox"
43
+ },
44
+ "board": {
45
+ "manufacturer": "Oracle Corporation",
46
+ "product": "VirtualBox",
47
+ "serial_number": "0"
48
+ },
49
+ "chassis": {
50
+ "type": "Other"
51
+ },
52
+ "manufacturer": "innotek GmbH",
53
+ "product": {
54
+ "name": "VirtualBox",
55
+ "serial_number": "0",
56
+ "uuid": "9D7BE471-F3DA-47EE-B023-F659129270EF"
57
+ }
58
+ },
59
+ "domain": "syd.puppetlabs.demo",
60
+ "environment": "production",
61
+ "facterversion": "3.0.2",
62
+ "filesystems": "xfs",
63
+ "fqdn": "centos7b.syd.puppetlabs.demo",
64
+ "gid": "root",
65
+ "hardwareisa": "x86_64",
66
+ "hardwaremodel": "x86_64",
67
+ "homedir": "/root",
68
+ "hostname": "centos7b",
69
+ "id": "root",
70
+ "identity": {
71
+ "gid": 0,
72
+ "group": "root",
73
+ "uid": 0,
74
+ "user": "root"
75
+ },
76
+ "interfaces": "enp0s3,enp0s8,lo",
77
+ "ip6tables_version": "1.4.21",
78
+ "ipaddress": "10.0.2.15",
79
+ "ipaddress6": "fe80::a00:27ff:fe39:183c",
80
+ "ipaddress6_enp0s3": "fe80::a00:27ff:fe39:183c",
81
+ "ipaddress6_enp0s8": "fe80::a00:27ff:fe39:832c",
82
+ "ipaddress6_lo": "::1",
83
+ "ipaddress_enp0s3": "10.0.2.15",
84
+ "ipaddress_enp0s8": "10.20.1.92",
85
+ "ipaddress_lo": "127.0.0.1",
86
+ "iptables_version": "1.4.21",
87
+ "is_admin": true,
88
+ "is_pe": false,
89
+ "is_virtual": true,
90
+ "kernel": "Linux",
91
+ "kernelmajversion": "3.10",
92
+ "kernelrelease": "3.10.0-123.el7.x86_64",
93
+ "kernelversion": "3.10.0",
94
+ "load_averages": {
95
+ "15m": 0.05,
96
+ "1m": 0.26,
97
+ "5m": 0.12
98
+ },
99
+ "macaddress": "08:00:27:39:18:3c",
100
+ "macaddress_enp0s3": "08:00:27:39:18:3c",
101
+ "macaddress_enp0s8": "08:00:27:39:83:2c",
102
+ "manufacturer": "innotek GmbH",
103
+ "memory": {
104
+ "swap": {
105
+ "available": "1.03 GiB",
106
+ "available_bytes": 1107292160,
107
+ "capacity": "0%",
108
+ "total": "1.03 GiB",
109
+ "total_bytes": 1107292160,
110
+ "used": "0 bytes",
111
+ "used_bytes": 0
112
+ },
113
+ "system": {
114
+ "available": "297.76 MiB",
115
+ "available_bytes": 312225792,
116
+ "capacity": "39.28%",
117
+ "total": "490.41 MiB",
118
+ "total_bytes": 514228224,
119
+ "used": "192.64 MiB",
120
+ "used_bytes": 202002432
121
+ }
122
+ },
123
+ "memoryfree": "297.76 MiB",
124
+ "memoryfree_mb": 297.76171875,
125
+ "memorysize": "490.41 MiB",
126
+ "memorysize_mb": 490.40625,
127
+ "mountpoints": {
128
+ "/": {
129
+ "available": "17.30 GiB",
130
+ "available_bytes": 18574749696,
131
+ "capacity": "6.32%",
132
+ "device": "/dev/mapper/centos-root",
133
+ "filesystem": "xfs",
134
+ "options": [
135
+ "rw",
136
+ "relatime",
137
+ "attr2",
138
+ "inode64",
139
+ "noquota"
140
+ ],
141
+ "size": "18.47 GiB",
142
+ "size_bytes": 19828572160,
143
+ "used": "1.17 GiB",
144
+ "used_bytes": 1253822464
145
+ },
146
+ "/boot": {
147
+ "available": "393.11 MiB",
148
+ "available_bytes": 412209152,
149
+ "capacity": "20.85%",
150
+ "device": "/dev/sda1",
151
+ "filesystem": "xfs",
152
+ "options": [
153
+ "rw",
154
+ "relatime",
155
+ "attr2",
156
+ "inode64",
157
+ "noquota"
158
+ ],
159
+ "size": "496.67 MiB",
160
+ "size_bytes": 520794112,
161
+ "used": "103.55 MiB",
162
+ "used_bytes": 108584960
163
+ }
164
+ },
165
+ "mtu_enp0s3": 1500,
166
+ "mtu_enp0s8": 1500,
167
+ "mtu_lo": 65536,
168
+ "mysql_server_id": 8563388,
169
+ "netmask": "255.255.255.0",
170
+ "netmask6": "ffff:ffff:ffff:ffff::",
171
+ "netmask6_enp0s3": "ffff:ffff:ffff:ffff::",
172
+ "netmask6_enp0s8": "ffff:ffff:ffff:ffff::",
173
+ "netmask6_lo": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
174
+ "netmask_enp0s3": "255.255.255.0",
175
+ "netmask_enp0s8": "255.255.255.0",
176
+ "netmask_lo": "255.0.0.0",
177
+ "network": "10.0.2.0",
178
+ "network6": "fe80::",
179
+ "network6_enp0s3": "fe80::",
180
+ "network6_enp0s8": "fe80::",
181
+ "network6_lo": "::1",
182
+ "network_enp0s3": "10.0.2.0",
183
+ "network_enp0s8": "10.20.1.0",
184
+ "network_lo": "127.0.0.0",
185
+ "networking": {
186
+ "dhcp": "10.0.2.2",
187
+ "domain": "syd.puppetlabs.demo",
188
+ "fqdn": "centos7b.syd.puppetlabs.demo",
189
+ "hostname": "centos7b",
190
+ "interfaces": {
191
+ "enp0s3": {
192
+ "dhcp": "10.0.2.2",
193
+ "ip": "10.0.2.15",
194
+ "ip6": "fe80::a00:27ff:fe39:183c",
195
+ "mac": "08:00:27:39:18:3c",
196
+ "mtu": 1500,
197
+ "netmask": "255.255.255.0",
198
+ "netmask6": "ffff:ffff:ffff:ffff::",
199
+ "network": "10.0.2.0",
200
+ "network6": "fe80::"
201
+ },
202
+ "enp0s8": {
203
+ "dhcp": "192.168.56.100",
204
+ "ip": "10.20.1.92",
205
+ "ip6": "fe80::a00:27ff:fe39:832c",
206
+ "mac": "08:00:27:39:83:2c",
207
+ "mtu": 1500,
208
+ "netmask": "255.255.255.0",
209
+ "netmask6": "ffff:ffff:ffff:ffff::",
210
+ "network": "10.20.1.0",
211
+ "network6": "fe80::"
212
+ },
213
+ "lo": {
214
+ "ip": "127.0.0.1",
215
+ "ip6": "::1",
216
+ "mtu": 65536,
217
+ "netmask": "255.0.0.0",
218
+ "netmask6": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
219
+ "network": "127.0.0.0",
220
+ "network6": "::1"
221
+ }
222
+ },
223
+ "ip": "10.0.2.15",
224
+ "ip6": "fe80::a00:27ff:fe39:183c",
225
+ "mac": "08:00:27:39:18:3c",
226
+ "mtu": 1500,
227
+ "netmask": "255.255.255.0",
228
+ "netmask6": "ffff:ffff:ffff:ffff::",
229
+ "network": "10.0.2.0",
230
+ "network6": "fe80::"
231
+ },
232
+ "operatingsystem": "CentOS",
233
+ "operatingsystemmajrelease": "7",
234
+ "operatingsystemrelease": "7.0.1406",
235
+ "os": {
236
+ "architecture": "x86_64",
237
+ "family": "RedHat",
238
+ "hardware": "x86_64",
239
+ "name": "CentOS",
240
+ "release": {
241
+ "full": "7.0.1406",
242
+ "major": "7",
243
+ "minor": "0"
244
+ },
245
+ "selinux": {
246
+ "enabled": false
247
+ }
248
+ },
249
+ "osfamily": "RedHat",
250
+ "partitions": {
251
+ "/dev/mapper/centos-root": {
252
+ "filesystem": "xfs",
253
+ "mount": "/",
254
+ "size": "0 bytes",
255
+ "size_bytes": 0,
256
+ "uuid": "db651e5f-a2c2-4236-9570-6226f63e1fcd"
257
+ },
258
+ "/dev/mapper/centos-swap": {
259
+ "filesystem": "swap",
260
+ "size": "0 bytes",
261
+ "size_bytes": 0,
262
+ "uuid": "ff4ec16c-28c0-4715-846d-11e7c9b4e53b"
263
+ },
264
+ "/dev/sda1": {
265
+ "filesystem": "xfs",
266
+ "mount": "/boot",
267
+ "size": "500.00 MiB",
268
+ "size_bytes": 524288000,
269
+ "uuid": "39ce4ad1-4e9d-49a4-bce0-8a30b459490a"
270
+ },
271
+ "/dev/sda2": {
272
+ "filesystem": "LVM2_member",
273
+ "size": "19.51 GiB",
274
+ "size_bytes": 20949499904,
275
+ "uuid": "pg7zVv-M3hI-zpjY-eYlZ-06aD-ZRO2-J30GLd"
276
+ }
277
+ },
278
+ "path": "/opt/puppetlabs/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin",
279
+ "pe_concat_basedir": "/opt/puppetlabs/puppet/cache/pe_concat",
280
+ "pe_razor_server_version": "package pe-razor-server is not installed",
281
+ "physicalprocessorcount": 1,
282
+ "platform_symlink_writable": true,
283
+ "platform_tag": "el-7-x86_64",
284
+ "processor0": "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz",
285
+ "processorcount": 1,
286
+ "processors": {
287
+ "count": 1,
288
+ "isa": "x86_64",
289
+ "models": [
290
+ "Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz"
291
+ ],
292
+ "physicalcount": 1
293
+ },
294
+ "productname": "VirtualBox",
295
+ "puppet_files_dir_present": false,
296
+ "puppet_vardir": "/opt/puppetlabs/puppet/cache",
297
+ "puppetversion": "4.2.1",
298
+ "root_home": "/root",
299
+ "ruby": {
300
+ "platform": "x86_64-linux",
301
+ "sitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
302
+ "version": "2.1.6"
303
+ },
304
+ "rubyplatform": "x86_64-linux",
305
+ "rubysitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0",
306
+ "rubyversion": "2.1.6",
307
+ "selinux": false,
308
+ "serialnumber": "0",
309
+ "ssh": {
310
+ "ecdsa": {
311
+ "fingerprints": {
312
+ "sha1": "SSHFP 3 1 91edfdf5e7e098f4392606865c017dabc26804bb",
313
+ "sha256": "SSHFP 3 2 f00c65a1884bfec52db11de89254f0bfd46baf9e759546654c94371a05ee0dba"
314
+ },
315
+ "key": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBcSUcHQOfBDZElr6PBmxc/4ZDaIhsugXM7OE2SQj35iOMCN/I3XfINMo8SvBIQ6CsBqPnzgbKRBs7e1FPFnsT4="
316
+ },
317
+ "rsa": {
318
+ "fingerprints": {
319
+ "sha1": "SSHFP 1 1 f25e9ad2faddbe75263cfee4fa97dc965bc1d581",
320
+ "sha256": "SSHFP 1 2 0173e386031a134e4cbfb7f6971788761a5aa3d9e39dafcf163f003de2537199"
321
+ },
322
+ "key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDLMo35gwbuqQvRq1gy6L8vddeyMNBYr5WPVcftMKSJR1jmwzxcZ+h0AEb3KPfoMHkqe9Xy+3oN981qe5ZCE780HO884AaXzXry9zdWQjGysrI+zHQbqbpOkYAGsVbJiQ7VnH7lMVZo2jCbABj4OdsbeCOeP3oDXTNCTaWWdQChzqvYgNBvb0mg/na1l0naQ1nsJYD85O8ZRQ9U/JOADMaOjummfOb2z7MgskZ9abm5eFCCQl+wUUNXKqQx+uyVM4lyyoTHpW3M2IV0P9wxhWJF6eovwyREGuMgJCs6kbHCFty7HtAYbzziabgQav8pMe68aBqjshbpU6ll/+aXWhD1"
323
+ }
324
+ },
325
+ "sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBcSUcHQOfBDZElr6PBmxc/4ZDaIhsugXM7OE2SQj35iOMCN/I3XfINMo8SvBIQ6CsBqPnzgbKRBs7e1FPFnsT4=",
326
+ "sshfp_ecdsa": "SSHFP 3 1 91edfdf5e7e098f4392606865c017dabc26804bb\nSSHFP 3 2 f00c65a1884bfec52db11de89254f0bfd46baf9e759546654c94371a05ee0dba",
327
+ "sshfp_rsa": "SSHFP 1 1 f25e9ad2faddbe75263cfee4fa97dc965bc1d581\nSSHFP 1 2 0173e386031a134e4cbfb7f6971788761a5aa3d9e39dafcf163f003de2537199",
328
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDLMo35gwbuqQvRq1gy6L8vddeyMNBYr5WPVcftMKSJR1jmwzxcZ+h0AEb3KPfoMHkqe9Xy+3oN981qe5ZCE780HO884AaXzXry9zdWQjGysrI+zHQbqbpOkYAGsVbJiQ7VnH7lMVZo2jCbABj4OdsbeCOeP3oDXTNCTaWWdQChzqvYgNBvb0mg/na1l0naQ1nsJYD85O8ZRQ9U/JOADMaOjummfOb2z7MgskZ9abm5eFCCQl+wUUNXKqQx+uyVM4lyyoTHpW3M2IV0P9wxhWJF6eovwyREGuMgJCs6kbHCFty7HtAYbzziabgQav8pMe68aBqjshbpU6ll/+aXWhD1",
329
+ "staging_http_get": "curl",
330
+ "swapfree": "1.03 GiB",
331
+ "swapfree_mb": 1055.99609375,
332
+ "swapsize": "1.03 GiB",
333
+ "swapsize_mb": 1055.99609375,
334
+ "system_uptime": {
335
+ "days": 0,
336
+ "hours": 0,
337
+ "seconds": 78,
338
+ "uptime": "0:01 hours"
339
+ },
340
+ "timezone": "UTC",
341
+ "uptime": "0:01 hours",
342
+ "uptime_days": 0,
343
+ "uptime_hours": 0,
344
+ "uptime_seconds": 78,
345
+ "uuid": "9D7BE471-F3DA-47EE-B023-F659129270EF",
346
+ "virtual": "virtualbox",
347
+ "clientcert": "centos7b.syd.puppetlabs.demo",
348
+ "clientversion": "4.2.1",
349
+ "clientnoop": false
350
+ },
351
+ "timestamp": "2015-09-23T23:50:15.484459763+00:00",
352
+ "expiration": "2015-09-24T00:20:15.484744482+00:00"
353
+ }
@@ -37,7 +37,7 @@ describe "<%= cls.name %>" do
37
37
  end
38
38
  <% end -%>
39
39
  let(:pre_condition) {
40
- pp = <%= '<<' %>-END
40
+ pp = <%= '<<' %>-'END'
41
41
  $onceover_class = '<%= cls.name %>'
42
42
  $onceover_node = '<%= node.name %>'
43
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.13.2
4
+ version: 3.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-04 00:00:00.000000000 Z
11
+ date: 2019-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -347,6 +347,7 @@ files:
347
347
  - factsets/solaris-11.2-sparc-64.json
348
348
  - factsets/windows-10-64.json
349
349
  - features/cache.feature
350
+ - features/factsets.feature
350
351
  - features/formatting.feature
351
352
  - features/help.feature
352
353
  - features/init.feature
@@ -409,8 +410,13 @@ files:
409
410
  - spec/fixtures/controlrepos/caching/spec/factsets/README.md
410
411
  - spec/fixtures/controlrepos/caching/spec/onceover.yaml
411
412
  - spec/fixtures/controlrepos/caching/spec/pre_conditions/README.md
413
+ - spec/fixtures/controlrepos/caching/spec/pre_conditions/escaping.pp
412
414
  - spec/fixtures/controlrepos/control_branch/Puppetfile
413
415
  - spec/fixtures/controlrepos/control_branch/environment.conf
416
+ - spec/fixtures/controlrepos/factsets/environment.conf
417
+ - spec/fixtures/controlrepos/factsets/site/profile/manifests/base.pp
418
+ - spec/fixtures/controlrepos/factsets/site/role/manifests/example.pp
419
+ - spec/fixtures/controlrepos/factsets/spec/factsets/centos_with_env.json
414
420
  - spec/fixtures/controlrepos/function_mocking/.gitignore
415
421
  - spec/fixtures/controlrepos/function_mocking/Puppetfile
416
422
  - spec/fixtures/controlrepos/function_mocking/Rakefile