@@ -20,7 +20,7 @@ func TestResourceProvider_linuxInstallChefClient(t *testing.T) {
2020 "server_url" : "https://chef.local" ,
2121 "validation_client_name" : "validator" ,
2222 "validation_key_path" : "validator.pem" ,
23- "secret_key_path" : "encrypted_data_bag_secret" ,
23+ "secret_key_path" : "encrypted_data_bag_secret" ,
2424 }),
2525
2626 Commands : map [string ]bool {
@@ -38,7 +38,7 @@ func TestResourceProvider_linuxInstallChefClient(t *testing.T) {
3838 "server_url" : "https://chef.local" ,
3939 "validation_client_name" : "validator" ,
4040 "validation_key_path" : "validator.pem" ,
41- "secret_key_path" : "encrypted_data_bag_secret" ,
41+ "secret_key_path" : "encrypted_data_bag_secret" ,
4242 }),
4343
4444 Commands : map [string ]bool {
@@ -57,7 +57,7 @@ func TestResourceProvider_linuxInstallChefClient(t *testing.T) {
5757 "server_url" : "https://chef.local" ,
5858 "validation_client_name" : "validator" ,
5959 "validation_key_path" : "validator.pem" ,
60- "secret_key_path" : "encrypted_data_bag_secret" ,
60+ "secret_key_path" : "encrypted_data_bag_secret" ,
6161 }),
6262
6363 Commands : map [string ]bool {
@@ -76,7 +76,7 @@ func TestResourceProvider_linuxInstallChefClient(t *testing.T) {
7676 "server_url" : "https://chef.local" ,
7777 "validation_client_name" : "validator" ,
7878 "validation_key_path" : "validator.pem" ,
79- "secret_key_path" : "encrypted_data_bag_secret" ,
79+ "secret_key_path" : "encrypted_data_bag_secret" ,
8080 }),
8181
8282 Commands : map [string ]bool {
@@ -96,7 +96,7 @@ func TestResourceProvider_linuxInstallChefClient(t *testing.T) {
9696 "server_url" : "https://chef.local" ,
9797 "validation_client_name" : "validator" ,
9898 "validation_key_path" : "validator.pem" ,
99- "secret_key_path" : "encrypted_data_bag_secret" ,
99+ "secret_key_path" : "encrypted_data_bag_secret" ,
100100 }),
101101
102102 Commands : map [string ]bool {
@@ -117,7 +117,7 @@ func TestResourceProvider_linuxInstallChefClient(t *testing.T) {
117117 "server_url" : "https://chef.local" ,
118118 "validation_client_name" : "validator" ,
119119 "validation_key_path" : "validator.pem" ,
120- "secret_key_path" : "encrypted_data_bag_secret" ,
120+ "secret_key_path" : "encrypted_data_bag_secret" ,
121121 "version" : "11.18.6" ,
122122 }),
123123
@@ -164,7 +164,7 @@ func TestResourceProvider_linuxCreateConfigFiles(t *testing.T) {
164164 "server_url" : "https://chef.local" ,
165165 "validation_client_name" : "validator" ,
166166 "validation_key_path" : "test-fixtures/validator.pem" ,
167- "secret_key_path" : "test-fixtures/encrypted_data_bag_secret" ,
167+ "secret_key_path" : "test-fixtures/encrypted_data_bag_secret" ,
168168 }),
169169
170170 Commands : map [string ]bool {
@@ -176,11 +176,11 @@ func TestResourceProvider_linuxCreateConfigFiles(t *testing.T) {
176176 },
177177
178178 Uploads : map [string ]string {
179- linuxConfDir + "/validation.pem" : "VALIDATOR-PEM-FILE" ,
180- linuxConfDir + "/encrypted_data_bag_secret" :"SECRET-KEY-FILE" ,
181- linuxConfDir + "/ohai/hints/ohaihint.json" : "OHAI-HINT-FILE" ,
182- linuxConfDir + "/client.rb" : defaultLinuxClientConf ,
183- linuxConfDir + "/first-boot.json" : `{"run_list":["cookbook::recipe"]}` ,
179+ linuxConfDir + "/validation.pem" : "VALIDATOR-PEM-FILE" ,
180+ linuxConfDir + "/encrypted_data_bag_secret" : "SECRET-KEY-FILE" ,
181+ linuxConfDir + "/ohai/hints/ohaihint.json" : "OHAI-HINT-FILE" ,
182+ linuxConfDir + "/client.rb" : defaultLinuxClientConf ,
183+ linuxConfDir + "/first-boot.json" : `{"run_list":["cookbook::recipe"]}` ,
184184 },
185185 },
186186
@@ -192,18 +192,18 @@ func TestResourceProvider_linuxCreateConfigFiles(t *testing.T) {
192192 "server_url" : "https://chef.local" ,
193193 "validation_client_name" : "validator" ,
194194 "validation_key_path" : "test-fixtures/validator.pem" ,
195- "secret_key_path" : "test-fixtures/encrypted_data_bag_secret" ,
195+ "secret_key_path" : "test-fixtures/encrypted_data_bag_secret" ,
196196 }),
197197
198198 Commands : map [string ]bool {
199199 "mkdir -p " + linuxConfDir : true ,
200200 },
201201
202202 Uploads : map [string ]string {
203- linuxConfDir + "/validation.pem" : "VALIDATOR-PEM-FILE" ,
204- linuxConfDir + "/encrypted_data_bag_secret" :"SECRET-KEY-FILE" ,
205- linuxConfDir + "/client.rb" : defaultLinuxClientConf ,
206- linuxConfDir + "/first-boot.json" : `{"run_list":["cookbook::recipe"]}` ,
203+ linuxConfDir + "/validation.pem" : "VALIDATOR-PEM-FILE" ,
204+ linuxConfDir + "/encrypted_data_bag_secret" : "SECRET-KEY-FILE" ,
205+ linuxConfDir + "/client.rb" : defaultLinuxClientConf ,
206+ linuxConfDir + "/first-boot.json" : `{"run_list":["cookbook::recipe"]}` ,
207207 },
208208 },
209209
@@ -218,18 +218,18 @@ func TestResourceProvider_linuxCreateConfigFiles(t *testing.T) {
218218 "server_url" : "https://chef.local" ,
219219 "validation_client_name" : "validator" ,
220220 "validation_key_path" : "test-fixtures/validator.pem" ,
221- "secret_key_path" : "test-fixtures/encrypted_data_bag_secret" ,
221+ "secret_key_path" : "test-fixtures/encrypted_data_bag_secret" ,
222222 }),
223223
224224 Commands : map [string ]bool {
225225 "mkdir -p " + linuxConfDir : true ,
226226 },
227227
228228 Uploads : map [string ]string {
229- linuxConfDir + "/validation.pem" : "VALIDATOR-PEM-FILE" ,
230- linuxConfDir + "/encrypted_data_bag_secret" :"SECRET-KEY-FILE" ,
231- linuxConfDir + "/client.rb" : proxyLinuxClientConf ,
232- linuxConfDir + "/first-boot.json" : `{"run_list":["cookbook::recipe"]}` ,
229+ linuxConfDir + "/validation.pem" : "VALIDATOR-PEM-FILE" ,
230+ linuxConfDir + "/encrypted_data_bag_secret" : "SECRET-KEY-FILE" ,
231+ linuxConfDir + "/client.rb" : proxyLinuxClientConf ,
232+ linuxConfDir + "/first-boot.json" : `{"run_list":["cookbook::recipe"]}` ,
233233 },
234234 },
235235
@@ -262,17 +262,17 @@ func TestResourceProvider_linuxCreateConfigFiles(t *testing.T) {
262262 "server_url" : "https://chef.local" ,
263263 "validation_client_name" : "validator" ,
264264 "validation_key_path" : "test-fixtures/validator.pem" ,
265- "secret_key_path" : "test-fixtures/encrypted_data_bag_secret" ,
265+ "secret_key_path" : "test-fixtures/encrypted_data_bag_secret" ,
266266 }),
267267
268268 Commands : map [string ]bool {
269269 "mkdir -p " + linuxConfDir : true ,
270270 },
271271
272272 Uploads : map [string ]string {
273- linuxConfDir + "/validation.pem" : "VALIDATOR-PEM-FILE" ,
273+ linuxConfDir + "/validation.pem" : "VALIDATOR-PEM-FILE" ,
274274 linuxConfDir + "/encrypted_data_bag_secret" : "SECRET-KEY-FILE" ,
275- linuxConfDir + "/client.rb" : defaultLinuxClientConf ,
275+ linuxConfDir + "/client.rb" : defaultLinuxClientConf ,
276276 linuxConfDir + "/first-boot.json" : `{"key1":{"subkey1":{"subkey2a":["val1","val2","val3"],` +
277277 `"subkey2b":{"subkey3":"value3"}}},"key2":"value2","run_list":["cookbook::recipe"]}` ,
278278 },
0 commit comments