razor-client 1.9.1 → 1.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/release.yml +24 -0
- data/.gitignore +9 -0
- data/.travis.yml +4 -0
- data/.yardopts +2 -0
- data/CODEOWNERS +1 -0
- data/Gemfile +42 -0
- data/NEWS.md +24 -0
- data/Rakefile +69 -0
- data/bin/razor +10 -13
- data/ext/build_defaults.yaml +20 -0
- data/ext/project_data.yaml +38 -0
- data/lib/razor/cli.rb +6 -0
- data/lib/razor/cli/command.rb +3 -3
- data/lib/razor/cli/navigate.rb +28 -19
- data/lib/razor/cli/parse.rb +18 -25
- data/lib/razor/cli/version.rb +1 -1
- data/razor-client.gemspec +35 -0
- data/spec/cli/command_spec.rb +21 -0
- data/spec/cli/format_spec.rb +10 -16
- data/spec/cli/navigate_spec.rb +10 -12
- data/spec/cli/parse_spec.rb +5 -3
- data/spec/fixtures/vcr/Razor_CLI_Navigate/accept-language_header/should_allow_other_accept-language_headers.yml +10 -10
- data/spec/fixtures/vcr/Razor_CLI_Navigate/accept-language_header/should_set_the_accept-language_header.yml +10 -10
- data/spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_in_string.yml +37 -39
- data/spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_single-dash_with_single_character_flag.yml +39 -41
- data/spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_allow_spaces.yml +111 -117
- data/spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_double-dash_with_single_character_flag.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/argument_formatting/should_not_allow_single-dash_with_multiple_character_flag.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_--help_command_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_-h_command_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_--help_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_-h_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_command_help_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/for_command_help/should_provide_command_help_for_razor_help_command_.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_allow_the_use_of_positional_arguments.yml +136 -144
- data/spec/fixtures/vcr/Razor_CLI_Navigate/positional_arguments/should_fail_with_too_many_positional_arguments.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/when_the_collections_endpoint_has_a_depth_parameter/should_be_set_to_1_when_the_endpoint_is_the_final_query.yml +18 -18
- data/spec/fixtures/vcr/Razor_CLI_Navigate/when_the_collections_endpoint_has_a_depth_parameter/should_not_be_exposed_to_the_user.yml +10 -10
- data/spec/fixtures/vcr/Razor_CLI_Navigate/when_the_collections_endpoint_has_a_depth_parameter/should_not_carry-over_to_later_requests_in_a_nested_query.yml +65 -67
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_a_single_item_path/.yml +77 -0
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_an_invalid_path/.yml +40 -0
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_authentication/should_preserve_that_across_navigation.yml +17 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_authentication/should_supply_that_to_the_API_service.yml +10 -12
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_bad_JSON.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_invalid_parameter/should_fail_with_malformed_argument.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_an_array_into_an_existing_array.yml +187 -197
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_as_an_array.yml +187 -197
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_array/should_merge_the_arguments_into_an_existing_array.yml +187 -197
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_construct_a_json_object.yml +39 -41
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_construct_a_json_object_with_unicode.yml +76 -80
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_fail_with_mixed_types_array_then_hash_.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_multiple_arguments_with_same_name/combining_as_an_object/should_fail_with_mixed_types_hash_then_array_.yml +21 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_no_parameters/should_fail_with_bad_JSON.yml +19 -19
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_no_path/.yml +40 -0
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_append_limit.yml +17 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_append_start.yml +17 -21
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_not_fail_when_query_returns_details_for_one_item.yml +61 -69
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_store_query_without_query_parameters.yml +105 -117
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API.yml +10 -12
- data/spec/fixtures/vcr/Razor_CLI_Navigate/with_query_parameters/should_throw_an_error_if_the_query_parameter_is_not_in_the_API_from_a_single_item.yml +54 -60
- data/spec/fixtures/vcr/Razor_CLI_Parse/_new/_help/.yml +40 -0
- data/spec/fixtures/vcr/Razor_CLI_Parse/_new/_help/should_print_a_list_of_known_endpoints.yml +10 -10
- data/spec/spec_helper.rb +1 -1
- data/spec/testing.md +4 -2
- metadata +69 -29
@@ -9,14 +9,14 @@ http_interactions:
|
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- application/json
|
12
|
-
Accept-Encoding:
|
13
|
-
- gzip, deflate
|
14
|
-
User-Agent:
|
15
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
16
12
|
Accept-Language:
|
17
13
|
- en_US,en
|
18
|
-
|
19
|
-
-
|
14
|
+
User-Agent:
|
15
|
+
- Faraday v0.15.4
|
16
|
+
Authorization:
|
17
|
+
- Basic Og==
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
@@ -29,14 +29,14 @@ http_interactions:
|
|
29
29
|
Content-Type:
|
30
30
|
- application/json
|
31
31
|
Content-Length:
|
32
|
-
- '
|
32
|
+
- '7432'
|
33
33
|
Date:
|
34
|
-
-
|
34
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"commands":[{"name":"
|
37
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
42
|
uri: http://localhost:8150/api/commands/create-repo
|
@@ -46,14 +46,14 @@ http_interactions:
|
|
46
46
|
headers:
|
47
47
|
Accept:
|
48
48
|
- application/json
|
49
|
-
Accept-Encoding:
|
50
|
-
- gzip, deflate
|
51
|
-
User-Agent:
|
52
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
53
49
|
Accept-Language:
|
54
50
|
- en_US,en
|
55
|
-
|
56
|
-
-
|
51
|
+
User-Agent:
|
52
|
+
- Faraday v0.15.4
|
53
|
+
Authorization:
|
54
|
+
- Basic Og==
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
57
|
response:
|
58
58
|
status:
|
59
59
|
code: 200
|
@@ -62,7 +62,7 @@ http_interactions:
|
|
62
62
|
Server:
|
63
63
|
- Apache-Coyote/1.1
|
64
64
|
Etag:
|
65
|
-
- '"server-version-v1.
|
65
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
66
66
|
X-Content-Type-Options:
|
67
67
|
- nosniff
|
68
68
|
Content-Type:
|
@@ -70,7 +70,7 @@ http_interactions:
|
|
70
70
|
Content-Length:
|
71
71
|
- '8224'
|
72
72
|
Date:
|
73
|
-
-
|
73
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
76
|
string: '{"name":"create-repo","help":{"summary":"Create a new repository, from
|
@@ -170,7 +170,7 @@ http_interactions:
|
|
170
170
|
onto the Razor server:\n \n {\n \"name\": \"fedora21\",\n \"url\": \"http://mirrors.n-ix.net/fedora/linux/releases/21/Server/x86_64/os\"\n \"task\":
|
171
171
|
\"fedora\"\n }\n"},"schema":{"name":{"type":"string","position":0},"url":{"type":"string"},"iso_url":{"type":"string","aliases":["iso-url"]},"no_content":{"type":"boolean","aliases":["no-content"]},"task":{"type":"string"}}}'
|
172
172
|
http_version:
|
173
|
-
recorded_at:
|
173
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
174
174
|
- request:
|
175
175
|
method: post
|
176
176
|
uri: http://localhost:8150/api/commands/create-repo
|
@@ -178,20 +178,18 @@ http_interactions:
|
|
178
178
|
encoding: UTF-8
|
179
179
|
string: '{"name":"name","url":"http://url.com/some.iso","task":"noop"}'
|
180
180
|
headers:
|
181
|
-
Accept:
|
182
|
-
- application/json
|
183
|
-
Accept-Encoding:
|
184
|
-
- gzip, deflate
|
185
|
-
User-Agent:
|
186
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
187
181
|
Content-Type:
|
188
182
|
- application/json
|
183
|
+
Accept:
|
184
|
+
- application/json
|
189
185
|
Accept-Language:
|
190
186
|
- en_US,en
|
191
|
-
|
192
|
-
-
|
193
|
-
|
194
|
-
-
|
187
|
+
User-Agent:
|
188
|
+
- Faraday v0.15.4
|
189
|
+
Authorization:
|
190
|
+
- Basic Og==
|
191
|
+
Accept-Encoding:
|
192
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
195
193
|
response:
|
196
194
|
status:
|
197
195
|
code: 202
|
@@ -206,12 +204,12 @@ http_interactions:
|
|
206
204
|
Content-Length:
|
207
205
|
- '201'
|
208
206
|
Date:
|
209
|
-
-
|
207
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
210
208
|
body:
|
211
209
|
encoding: UTF-8
|
212
210
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/repos/member","id":"http://localhost:8150/api/collections/repos/name","name":"name","command":"http://localhost:8150/api/collections/commands/1"}'
|
213
211
|
http_version:
|
214
|
-
recorded_at:
|
212
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
215
213
|
- request:
|
216
214
|
method: get
|
217
215
|
uri: http://localhost:8150/api/collections/repos/name
|
@@ -221,14 +219,14 @@ http_interactions:
|
|
221
219
|
headers:
|
222
220
|
Accept:
|
223
221
|
- application/json
|
224
|
-
Accept-Encoding:
|
225
|
-
- gzip, deflate
|
226
|
-
User-Agent:
|
227
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
228
222
|
Accept-Language:
|
229
223
|
- en_US,en
|
230
|
-
|
231
|
-
-
|
224
|
+
User-Agent:
|
225
|
+
- Faraday v0.15.4
|
226
|
+
Authorization:
|
227
|
+
- Basic Og==
|
228
|
+
Accept-Encoding:
|
229
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
232
230
|
response:
|
233
231
|
status:
|
234
232
|
code: 200
|
@@ -243,12 +241,12 @@ http_interactions:
|
|
243
241
|
Content-Length:
|
244
242
|
- '335'
|
245
243
|
Date:
|
246
|
-
-
|
244
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
247
245
|
body:
|
248
246
|
encoding: UTF-8
|
249
247
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/repos/member","id":"http://localhost:8150/api/collections/repos/name","name":"name","iso_url":null,"url":"http://url.com/some.iso","task":{"spec":"http://api.puppetlabs.com/razor/v1/collections/tasks/member","id":"http://localhost:8150/api/collections/tasks/noop","name":"noop"}}'
|
250
248
|
http_version:
|
251
|
-
recorded_at:
|
249
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
252
250
|
- request:
|
253
251
|
method: get
|
254
252
|
uri: http://localhost:8150/api
|
@@ -258,14 +256,14 @@ http_interactions:
|
|
258
256
|
headers:
|
259
257
|
Accept:
|
260
258
|
- application/json
|
261
|
-
Accept-Encoding:
|
262
|
-
- gzip, deflate
|
263
|
-
User-Agent:
|
264
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
265
259
|
Accept-Language:
|
266
260
|
- en_US,en
|
267
|
-
|
268
|
-
-
|
261
|
+
User-Agent:
|
262
|
+
- Faraday v0.15.4
|
263
|
+
Authorization:
|
264
|
+
- Basic Og==
|
265
|
+
Accept-Encoding:
|
266
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
269
267
|
response:
|
270
268
|
status:
|
271
269
|
code: 200
|
@@ -278,14 +276,14 @@ http_interactions:
|
|
278
276
|
Content-Type:
|
279
277
|
- application/json
|
280
278
|
Content-Length:
|
281
|
-
- '
|
279
|
+
- '7432'
|
282
280
|
Date:
|
283
|
-
-
|
281
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
284
282
|
body:
|
285
283
|
encoding: UTF-8
|
286
|
-
string: '{"commands":[{"name":"
|
284
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
287
285
|
http_version:
|
288
|
-
recorded_at:
|
286
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
289
287
|
- request:
|
290
288
|
method: get
|
291
289
|
uri: http://localhost:8150/api/commands/create-broker
|
@@ -295,14 +293,14 @@ http_interactions:
|
|
295
293
|
headers:
|
296
294
|
Accept:
|
297
295
|
- application/json
|
298
|
-
Accept-Encoding:
|
299
|
-
- gzip, deflate
|
300
|
-
User-Agent:
|
301
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
302
296
|
Accept-Language:
|
303
297
|
- en_US,en
|
304
|
-
|
305
|
-
-
|
298
|
+
User-Agent:
|
299
|
+
- Faraday v0.15.4
|
300
|
+
Authorization:
|
301
|
+
- Basic Og==
|
302
|
+
Accept-Encoding:
|
303
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
306
304
|
response:
|
307
305
|
status:
|
308
306
|
code: 200
|
@@ -311,7 +309,7 @@ http_interactions:
|
|
311
309
|
Server:
|
312
310
|
- Apache-Coyote/1.1
|
313
311
|
Etag:
|
314
|
-
- '"server-version-v1.
|
312
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
315
313
|
X-Content-Type-Options:
|
316
314
|
- nosniff
|
317
315
|
Content-Type:
|
@@ -319,7 +317,7 @@ http_interactions:
|
|
319
317
|
Content-Length:
|
320
318
|
- '5560'
|
321
319
|
Date:
|
322
|
-
-
|
320
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
323
321
|
body:
|
324
322
|
encoding: UTF-8
|
325
323
|
string: '{"name":"create-broker","help":{"summary":"Create a new broker configuration
|
@@ -342,7 +340,7 @@ http_interactions:
|
|
342
340
|
This attribute is required.\n - It must be of type string.\n - It must
|
343
341
|
be between 1 and 250 in length.\n - Its argument position is 0.\n\n * broker_type\n -
|
344
342
|
The broker type from which this broker is created. The available\n broker
|
345
|
-
types on your server are:\n -
|
343
|
+
types on your server are:\n - legacy-puppet\n - noop\n - chef\n -
|
346
344
|
puppet-pe\n - puppet\n - This attribute is required.\n - It must be
|
347
345
|
of type string.\n - It must match the name of an existing broker type.\n -
|
348
346
|
Its argument position is 1.\n\n * configuration\n - The configuration for
|
@@ -377,7 +375,7 @@ http_interactions:
|
|
377
375
|
is required.\n - It must be of type string.\n - It must be between 1 and
|
378
376
|
250 in length.\n - Its argument position is 0.\n\n * broker_type\n - The
|
379
377
|
broker type from which this broker is created. The available\n broker
|
380
|
-
types on your server are:\n -
|
378
|
+
types on your server are:\n - legacy-puppet\n - noop\n - chef\n -
|
381
379
|
puppet-pe\n - puppet\n - This attribute is required.\n - It must be
|
382
380
|
of type string.\n - It must match the name of an existing broker type.\n -
|
383
381
|
Its argument position is 1.\n\n * configuration\n - The configuration for
|
@@ -390,7 +388,7 @@ http_interactions:
|
|
390
388
|
{\n \"server\": \"puppet.example.org\",\n \"environment\":
|
391
389
|
\"production\"\n },\n \"broker_type\": \"puppet\"\n }\n"},"schema":{"name":{"type":"string","position":0},"broker_type":{"type":"string","aliases":["broker-type"],"position":1},"configuration":{"type":"object","aliases":["c"]}}}'
|
392
390
|
http_version:
|
393
|
-
recorded_at:
|
391
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
394
392
|
- request:
|
395
393
|
method: post
|
396
394
|
uri: http://localhost:8150/api/commands/create-broker
|
@@ -398,20 +396,18 @@ http_interactions:
|
|
398
396
|
encoding: UTF-8
|
399
397
|
string: '{"name":"puppet","configuration":{"server":"puppet.example.org","environment":"production"},"broker_type":"puppet"}'
|
400
398
|
headers:
|
401
|
-
Accept:
|
402
|
-
- application/json
|
403
|
-
Accept-Encoding:
|
404
|
-
- gzip, deflate
|
405
|
-
User-Agent:
|
406
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
407
399
|
Content-Type:
|
408
400
|
- application/json
|
401
|
+
Accept:
|
402
|
+
- application/json
|
409
403
|
Accept-Language:
|
410
404
|
- en_US,en
|
411
|
-
|
412
|
-
-
|
413
|
-
|
414
|
-
-
|
405
|
+
User-Agent:
|
406
|
+
- Faraday v0.15.4
|
407
|
+
Authorization:
|
408
|
+
- Basic Og==
|
409
|
+
Accept-Encoding:
|
410
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
415
411
|
response:
|
416
412
|
status:
|
417
413
|
code: 202
|
@@ -426,12 +422,12 @@ http_interactions:
|
|
426
422
|
Content-Length:
|
427
423
|
- '209'
|
428
424
|
Date:
|
429
|
-
-
|
425
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
430
426
|
body:
|
431
427
|
encoding: UTF-8
|
432
428
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/brokers/member","id":"http://localhost:8150/api/collections/brokers/puppet","name":"puppet","command":"http://localhost:8150/api/collections/commands/2"}'
|
433
429
|
http_version:
|
434
|
-
recorded_at:
|
430
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
435
431
|
- request:
|
436
432
|
method: get
|
437
433
|
uri: http://localhost:8150/api/collections/brokers/puppet
|
@@ -441,14 +437,14 @@ http_interactions:
|
|
441
437
|
headers:
|
442
438
|
Accept:
|
443
439
|
- application/json
|
444
|
-
Accept-Encoding:
|
445
|
-
- gzip, deflate
|
446
|
-
User-Agent:
|
447
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
448
440
|
Accept-Language:
|
449
441
|
- en_US,en
|
450
|
-
|
451
|
-
-
|
442
|
+
User-Agent:
|
443
|
+
- Faraday v0.15.4
|
444
|
+
Authorization:
|
445
|
+
- Basic Og==
|
446
|
+
Accept-Encoding:
|
447
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
452
448
|
response:
|
453
449
|
status:
|
454
450
|
code: 200
|
@@ -463,12 +459,12 @@ http_interactions:
|
|
463
459
|
Content-Length:
|
464
460
|
- '356'
|
465
461
|
Date:
|
466
|
-
-
|
462
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
467
463
|
body:
|
468
464
|
encoding: UTF-8
|
469
465
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/brokers/member","id":"http://localhost:8150/api/collections/brokers/puppet","name":"puppet","configuration":{"server":"puppet.example.org","environment":"production"},"broker_type":"puppet","policies":{"id":"http://localhost:8150/api/collections/brokers/puppet/policies","count":0,"name":"policies"}}'
|
470
466
|
http_version:
|
471
|
-
recorded_at:
|
467
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
472
468
|
- request:
|
473
469
|
method: get
|
474
470
|
uri: http://localhost:8150/api
|
@@ -478,14 +474,14 @@ http_interactions:
|
|
478
474
|
headers:
|
479
475
|
Accept:
|
480
476
|
- application/json
|
481
|
-
Accept-Encoding:
|
482
|
-
- gzip, deflate
|
483
|
-
User-Agent:
|
484
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
485
477
|
Accept-Language:
|
486
478
|
- en_US,en
|
487
|
-
|
488
|
-
-
|
479
|
+
User-Agent:
|
480
|
+
- Faraday v0.15.4
|
481
|
+
Authorization:
|
482
|
+
- Basic Og==
|
483
|
+
Accept-Encoding:
|
484
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
489
485
|
response:
|
490
486
|
status:
|
491
487
|
code: 200
|
@@ -498,14 +494,14 @@ http_interactions:
|
|
498
494
|
Content-Type:
|
499
495
|
- application/json
|
500
496
|
Content-Length:
|
501
|
-
- '
|
497
|
+
- '7432'
|
502
498
|
Date:
|
503
|
-
-
|
499
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
504
500
|
body:
|
505
501
|
encoding: UTF-8
|
506
|
-
string: '{"commands":[{"name":"
|
502
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
507
503
|
http_version:
|
508
|
-
recorded_at:
|
504
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
509
505
|
- request:
|
510
506
|
method: get
|
511
507
|
uri: http://localhost:8150/api/commands/create-tag
|
@@ -515,14 +511,14 @@ http_interactions:
|
|
515
511
|
headers:
|
516
512
|
Accept:
|
517
513
|
- application/json
|
518
|
-
Accept-Encoding:
|
519
|
-
- gzip, deflate
|
520
|
-
User-Agent:
|
521
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
522
514
|
Accept-Language:
|
523
515
|
- en_US,en
|
524
|
-
|
525
|
-
-
|
516
|
+
User-Agent:
|
517
|
+
- Faraday v0.15.4
|
518
|
+
Authorization:
|
519
|
+
- Basic Og==
|
520
|
+
Accept-Encoding:
|
521
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
526
522
|
response:
|
527
523
|
status:
|
528
524
|
code: 200
|
@@ -531,7 +527,7 @@ http_interactions:
|
|
531
527
|
Server:
|
532
528
|
- Apache-Coyote/1.1
|
533
529
|
Etag:
|
534
|
-
- '"server-version-v1.
|
530
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
535
531
|
X-Content-Type-Options:
|
536
532
|
- nosniff
|
537
533
|
Content-Type:
|
@@ -539,7 +535,7 @@ http_interactions:
|
|
539
535
|
Content-Length:
|
540
536
|
- '4738'
|
541
537
|
Date:
|
542
|
-
-
|
538
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
543
539
|
body:
|
544
540
|
encoding: ASCII-8BIT
|
545
541
|
string: !binary |-
|
@@ -650,7 +646,7 @@ http_interactions:
|
|
650
646
|
cmluZyIsInBvc2l0aW9uIjowfSwicnVsZSI6eyJ0eXBlIjoiYXJyYXkiLCJw
|
651
647
|
b3NpdGlvbiI6MX19fQ==
|
652
648
|
http_version:
|
653
|
-
recorded_at:
|
649
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
654
650
|
- request:
|
655
651
|
method: post
|
656
652
|
uri: http://localhost:8150/api/commands/create-tag
|
@@ -658,20 +654,18 @@ http_interactions:
|
|
658
654
|
encoding: UTF-8
|
659
655
|
string: '{"name":"tag1","rule":["=",["fact","processorcount"],"1"]}'
|
660
656
|
headers:
|
661
|
-
Accept:
|
662
|
-
- application/json
|
663
|
-
Accept-Encoding:
|
664
|
-
- gzip, deflate
|
665
|
-
User-Agent:
|
666
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
667
657
|
Content-Type:
|
668
658
|
- application/json
|
659
|
+
Accept:
|
660
|
+
- application/json
|
669
661
|
Accept-Language:
|
670
662
|
- en_US,en
|
671
|
-
|
672
|
-
-
|
673
|
-
|
674
|
-
-
|
663
|
+
User-Agent:
|
664
|
+
- Faraday v0.15.4
|
665
|
+
Authorization:
|
666
|
+
- Basic Og==
|
667
|
+
Accept-Encoding:
|
668
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
675
669
|
response:
|
676
670
|
status:
|
677
671
|
code: 202
|
@@ -686,12 +680,12 @@ http_interactions:
|
|
686
680
|
Content-Length:
|
687
681
|
- '199'
|
688
682
|
Date:
|
689
|
-
-
|
683
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
690
684
|
body:
|
691
685
|
encoding: UTF-8
|
692
686
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/tags/member","id":"http://localhost:8150/api/collections/tags/tag1","name":"tag1","command":"http://localhost:8150/api/collections/commands/3"}'
|
693
687
|
http_version:
|
694
|
-
recorded_at:
|
688
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
695
689
|
- request:
|
696
690
|
method: get
|
697
691
|
uri: http://localhost:8150/api/collections/tags/tag1
|
@@ -701,14 +695,14 @@ http_interactions:
|
|
701
695
|
headers:
|
702
696
|
Accept:
|
703
697
|
- application/json
|
704
|
-
Accept-Encoding:
|
705
|
-
- gzip, deflate
|
706
|
-
User-Agent:
|
707
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
708
698
|
Accept-Language:
|
709
699
|
- en_US,en
|
710
|
-
|
711
|
-
-
|
700
|
+
User-Agent:
|
701
|
+
- Faraday v0.15.4
|
702
|
+
Authorization:
|
703
|
+
- Basic Og==
|
704
|
+
Accept-Encoding:
|
705
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
712
706
|
response:
|
713
707
|
status:
|
714
708
|
code: 200
|
@@ -723,12 +717,12 @@ http_interactions:
|
|
723
717
|
Content-Length:
|
724
718
|
- '382'
|
725
719
|
Date:
|
726
|
-
-
|
720
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
727
721
|
body:
|
728
722
|
encoding: UTF-8
|
729
723
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/tags/member","id":"http://localhost:8150/api/collections/tags/tag1","name":"tag1","rule":["=",["fact","processorcount"],"1"],"nodes":{"id":"http://localhost:8150/api/collections/tags/tag1/nodes","count":0,"name":"nodes"},"policies":{"id":"http://localhost:8150/api/collections/tags/tag1/policies","count":0,"name":"policies"}}'
|
730
724
|
http_version:
|
731
|
-
recorded_at:
|
725
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
732
726
|
- request:
|
733
727
|
method: get
|
734
728
|
uri: http://localhost:8150/api
|
@@ -738,14 +732,14 @@ http_interactions:
|
|
738
732
|
headers:
|
739
733
|
Accept:
|
740
734
|
- application/json
|
741
|
-
Accept-Encoding:
|
742
|
-
- gzip, deflate
|
743
|
-
User-Agent:
|
744
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
745
735
|
Accept-Language:
|
746
736
|
- en_US,en
|
747
|
-
|
748
|
-
-
|
737
|
+
User-Agent:
|
738
|
+
- Faraday v0.15.4
|
739
|
+
Authorization:
|
740
|
+
- Basic Og==
|
741
|
+
Accept-Encoding:
|
742
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
749
743
|
response:
|
750
744
|
status:
|
751
745
|
code: 200
|
@@ -758,14 +752,14 @@ http_interactions:
|
|
758
752
|
Content-Type:
|
759
753
|
- application/json
|
760
754
|
Content-Length:
|
761
|
-
- '
|
755
|
+
- '7432'
|
762
756
|
Date:
|
763
|
-
-
|
757
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
764
758
|
body:
|
765
759
|
encoding: UTF-8
|
766
|
-
string: '{"commands":[{"name":"
|
760
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
767
761
|
http_version:
|
768
|
-
recorded_at:
|
762
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
769
763
|
- request:
|
770
764
|
method: get
|
771
765
|
uri: http://localhost:8150/api/commands/create-tag
|
@@ -775,14 +769,14 @@ http_interactions:
|
|
775
769
|
headers:
|
776
770
|
Accept:
|
777
771
|
- application/json
|
778
|
-
Accept-Encoding:
|
779
|
-
- gzip, deflate
|
780
|
-
User-Agent:
|
781
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
782
772
|
Accept-Language:
|
783
773
|
- en_US,en
|
784
|
-
|
785
|
-
-
|
774
|
+
User-Agent:
|
775
|
+
- Faraday v0.15.4
|
776
|
+
Authorization:
|
777
|
+
- Basic Og==
|
778
|
+
Accept-Encoding:
|
779
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
786
780
|
response:
|
787
781
|
status:
|
788
782
|
code: 200
|
@@ -791,7 +785,7 @@ http_interactions:
|
|
791
785
|
Server:
|
792
786
|
- Apache-Coyote/1.1
|
793
787
|
Etag:
|
794
|
-
- '"server-version-v1.
|
788
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
795
789
|
X-Content-Type-Options:
|
796
790
|
- nosniff
|
797
791
|
Content-Type:
|
@@ -799,7 +793,7 @@ http_interactions:
|
|
799
793
|
Content-Length:
|
800
794
|
- '4738'
|
801
795
|
Date:
|
802
|
-
-
|
796
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
803
797
|
body:
|
804
798
|
encoding: ASCII-8BIT
|
805
799
|
string: !binary |-
|
@@ -910,7 +904,7 @@ http_interactions:
|
|
910
904
|
cmluZyIsInBvc2l0aW9uIjowfSwicnVsZSI6eyJ0eXBlIjoiYXJyYXkiLCJw
|
911
905
|
b3NpdGlvbiI6MX19fQ==
|
912
906
|
http_version:
|
913
|
-
recorded_at:
|
907
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
914
908
|
- request:
|
915
909
|
method: post
|
916
910
|
uri: http://localhost:8150/api/commands/create-tag
|
@@ -918,20 +912,18 @@ http_interactions:
|
|
918
912
|
encoding: UTF-8
|
919
913
|
string: '{"name":"tag2","rule":["=",["fact","processorcount"],"2"]}'
|
920
914
|
headers:
|
921
|
-
Accept:
|
922
|
-
- application/json
|
923
|
-
Accept-Encoding:
|
924
|
-
- gzip, deflate
|
925
|
-
User-Agent:
|
926
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
927
915
|
Content-Type:
|
928
916
|
- application/json
|
917
|
+
Accept:
|
918
|
+
- application/json
|
929
919
|
Accept-Language:
|
930
920
|
- en_US,en
|
931
|
-
|
932
|
-
-
|
933
|
-
|
934
|
-
-
|
921
|
+
User-Agent:
|
922
|
+
- Faraday v0.15.4
|
923
|
+
Authorization:
|
924
|
+
- Basic Og==
|
925
|
+
Accept-Encoding:
|
926
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
935
927
|
response:
|
936
928
|
status:
|
937
929
|
code: 202
|
@@ -946,12 +938,12 @@ http_interactions:
|
|
946
938
|
Content-Length:
|
947
939
|
- '199'
|
948
940
|
Date:
|
949
|
-
-
|
941
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
950
942
|
body:
|
951
943
|
encoding: UTF-8
|
952
944
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/tags/member","id":"http://localhost:8150/api/collections/tags/tag2","name":"tag2","command":"http://localhost:8150/api/collections/commands/4"}'
|
953
945
|
http_version:
|
954
|
-
recorded_at:
|
946
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
955
947
|
- request:
|
956
948
|
method: get
|
957
949
|
uri: http://localhost:8150/api/collections/tags/tag2
|
@@ -961,14 +953,14 @@ http_interactions:
|
|
961
953
|
headers:
|
962
954
|
Accept:
|
963
955
|
- application/json
|
964
|
-
Accept-Encoding:
|
965
|
-
- gzip, deflate
|
966
|
-
User-Agent:
|
967
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
968
956
|
Accept-Language:
|
969
957
|
- en_US,en
|
970
|
-
|
971
|
-
-
|
958
|
+
User-Agent:
|
959
|
+
- Faraday v0.15.4
|
960
|
+
Authorization:
|
961
|
+
- Basic Og==
|
962
|
+
Accept-Encoding:
|
963
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
972
964
|
response:
|
973
965
|
status:
|
974
966
|
code: 200
|
@@ -983,12 +975,12 @@ http_interactions:
|
|
983
975
|
Content-Length:
|
984
976
|
- '382'
|
985
977
|
Date:
|
986
|
-
-
|
978
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
987
979
|
body:
|
988
980
|
encoding: UTF-8
|
989
981
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/tags/member","id":"http://localhost:8150/api/collections/tags/tag2","name":"tag2","rule":["=",["fact","processorcount"],"2"],"nodes":{"id":"http://localhost:8150/api/collections/tags/tag2/nodes","count":0,"name":"nodes"},"policies":{"id":"http://localhost:8150/api/collections/tags/tag2/policies","count":0,"name":"policies"}}'
|
990
982
|
http_version:
|
991
|
-
recorded_at:
|
983
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
992
984
|
- request:
|
993
985
|
method: get
|
994
986
|
uri: http://localhost:8150/api
|
@@ -998,14 +990,14 @@ http_interactions:
|
|
998
990
|
headers:
|
999
991
|
Accept:
|
1000
992
|
- application/json
|
1001
|
-
Accept-Encoding:
|
1002
|
-
- gzip, deflate
|
1003
|
-
User-Agent:
|
1004
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
1005
993
|
Accept-Language:
|
1006
994
|
- en_US,en
|
1007
|
-
|
1008
|
-
-
|
995
|
+
User-Agent:
|
996
|
+
- Faraday v0.15.4
|
997
|
+
Authorization:
|
998
|
+
- Basic Og==
|
999
|
+
Accept-Encoding:
|
1000
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1009
1001
|
response:
|
1010
1002
|
status:
|
1011
1003
|
code: 200
|
@@ -1018,14 +1010,14 @@ http_interactions:
|
|
1018
1010
|
Content-Type:
|
1019
1011
|
- application/json
|
1020
1012
|
Content-Length:
|
1021
|
-
- '
|
1013
|
+
- '7432'
|
1022
1014
|
Date:
|
1023
|
-
-
|
1015
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
1024
1016
|
body:
|
1025
1017
|
encoding: UTF-8
|
1026
|
-
string: '{"commands":[{"name":"
|
1018
|
+
string: '{"commands":[{"name":"update-repo-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-repo-task","id":"http://localhost:8150/api/commands/update-repo-task"},{"name":"delete-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-hook","id":"http://localhost:8150/api/commands/delete-hook"},{"name":"delete-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-broker","id":"http://localhost:8150/api/commands/delete-broker"},{"name":"register-node","rel":"http://api.puppetlabs.com/razor/v1/commands/register-node","id":"http://localhost:8150/api/commands/register-node"},{"name":"update-policy-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-broker","id":"http://localhost:8150/api/commands/update-policy-broker"},{"name":"update-policy-task","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-task","id":"http://localhost:8150/api/commands/update-policy-task"},{"name":"set-node-desired-power-state","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-desired-power-state","id":"http://localhost:8150/api/commands/set-node-desired-power-state"},{"name":"set-node-hw-info","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-hw-info","id":"http://localhost:8150/api/commands/set-node-hw-info"},{"name":"run-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/run-hook","id":"http://localhost:8150/api/commands/run-hook"},{"name":"create-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/create-policy","id":"http://localhost:8150/api/commands/create-policy"},{"name":"reinstall-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reinstall-node","id":"http://localhost:8150/api/commands/reinstall-node"},{"name":"disable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/disable-policy","id":"http://localhost:8150/api/commands/disable-policy"},{"name":"enable-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/enable-policy","id":"http://localhost:8150/api/commands/enable-policy"},{"name":"create-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/create-repo","id":"http://localhost:8150/api/commands/create-repo"},{"name":"remove-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-node-metadata","id":"http://localhost:8150/api/commands/remove-node-metadata"},{"name":"modify-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-node-metadata","id":"http://localhost:8150/api/commands/modify-node-metadata"},{"name":"update-policy-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-node-metadata","id":"http://localhost:8150/api/commands/update-policy-node-metadata"},{"name":"add-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/add-policy-tag","id":"http://localhost:8150/api/commands/add-policy-tag"},{"name":"remove-policy-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/remove-policy-tag","id":"http://localhost:8150/api/commands/remove-policy-tag"},{"name":"create-hook","rel":"http://api.puppetlabs.com/razor/v1/commands/create-hook","id":"http://localhost:8150/api/commands/create-hook"},{"name":"update-policy-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/update-policy-repo","id":"http://localhost:8150/api/commands/update-policy-repo"},{"name":"update-tag-rule","rel":"http://api.puppetlabs.com/razor/v1/commands/update-tag-rule","id":"http://localhost:8150/api/commands/update-tag-rule"},{"name":"delete-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-policy","id":"http://localhost:8150/api/commands/delete-policy"},{"name":"delete-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-tag","id":"http://localhost:8150/api/commands/delete-tag"},{"name":"create-tag","rel":"http://api.puppetlabs.com/razor/v1/commands/create-tag","id":"http://localhost:8150/api/commands/create-tag"},{"name":"delete-node","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-node","id":"http://localhost:8150/api/commands/delete-node"},{"name":"reboot-node","rel":"http://api.puppetlabs.com/razor/v1/commands/reboot-node","id":"http://localhost:8150/api/commands/reboot-node"},{"name":"move-policy","rel":"http://api.puppetlabs.com/razor/v1/commands/move-policy","id":"http://localhost:8150/api/commands/move-policy"},{"name":"set-node-ipmi-credentials","rel":"http://api.puppetlabs.com/razor/v1/commands/set-node-ipmi-credentials","id":"http://localhost:8150/api/commands/set-node-ipmi-credentials"},{"name":"delete-repo","rel":"http://api.puppetlabs.com/razor/v1/commands/delete-repo","id":"http://localhost:8150/api/commands/delete-repo"},{"name":"modify-policy-max-count","rel":"http://api.puppetlabs.com/razor/v1/commands/modify-policy-max-count","id":"http://localhost:8150/api/commands/modify-policy-max-count"},{"name":"update-node-metadata","rel":"http://api.puppetlabs.com/razor/v1/commands/update-node-metadata","id":"http://localhost:8150/api/commands/update-node-metadata"},{"name":"create-task","rel":"http://api.puppetlabs.com/razor/v1/commands/create-task","id":"http://localhost:8150/api/commands/create-task"},{"name":"update-hook-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-hook-configuration","id":"http://localhost:8150/api/commands/update-hook-configuration"},{"name":"create-broker","rel":"http://api.puppetlabs.com/razor/v1/commands/create-broker","id":"http://localhost:8150/api/commands/create-broker"},{"name":"update-broker-configuration","rel":"http://api.puppetlabs.com/razor/v1/commands/update-broker-configuration","id":"http://localhost:8150/api/commands/update-broker-configuration"}],"collections":[{"name":"brokers","rel":"http://api.puppetlabs.com/razor/v1/collections/brokers","id":"http://localhost:8150/api/collections/brokers","params":{"depth":{"type":"number"}}},{"name":"repos","rel":"http://api.puppetlabs.com/razor/v1/collections/repos","id":"http://localhost:8150/api/collections/repos","params":{"depth":{"type":"number"}}},{"name":"tags","rel":"http://api.puppetlabs.com/razor/v1/collections/tags","id":"http://localhost:8150/api/collections/tags","params":{"depth":{"type":"number"}}},{"name":"policies","rel":"http://api.puppetlabs.com/razor/v1/collections/policies","id":"http://localhost:8150/api/collections/policies","params":{"depth":{"type":"number"}}},{"name":"nodes","rel":"http://api.puppetlabs.com/razor/v1/collections/nodes","id":"http://localhost:8150/api/collections/nodes","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"tasks","rel":"http://api.puppetlabs.com/razor/v1/collections/tasks","id":"http://localhost:8150/api/collections/tasks","params":{"depth":{"type":"number"}}},{"name":"commands","rel":"http://api.puppetlabs.com/razor/v1/collections/commands","id":"http://localhost:8150/api/collections/commands","params":{"depth":{"type":"number"}}},{"name":"events","rel":"http://api.puppetlabs.com/razor/v1/collections/events","id":"http://localhost:8150/api/collections/events","params":{"start":{"type":"number"},"limit":{"type":"number"},"depth":{"type":"number"}}},{"name":"hooks","rel":"http://api.puppetlabs.com/razor/v1/collections/hooks","id":"http://localhost:8150/api/collections/hooks","params":{"depth":{"type":"number"}}},{"name":"config","rel":"http://api.puppetlabs.com/razor/v1/collections/config","id":"http://localhost:8150/api/collections/config"}],"version":{"server":"v1.9.5-9-g774b5ce-dirty"}}'
|
1027
1019
|
http_version:
|
1028
|
-
recorded_at:
|
1020
|
+
recorded_at: Fri, 23 Aug 2019 19:49:07 GMT
|
1029
1021
|
- request:
|
1030
1022
|
method: get
|
1031
1023
|
uri: http://localhost:8150/api/commands/create-policy
|
@@ -1035,14 +1027,14 @@ http_interactions:
|
|
1035
1027
|
headers:
|
1036
1028
|
Accept:
|
1037
1029
|
- application/json
|
1038
|
-
Accept-Encoding:
|
1039
|
-
- gzip, deflate
|
1040
|
-
User-Agent:
|
1041
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
1042
1030
|
Accept-Language:
|
1043
1031
|
- en_US,en
|
1044
|
-
|
1045
|
-
-
|
1032
|
+
User-Agent:
|
1033
|
+
- Faraday v0.15.4
|
1034
|
+
Authorization:
|
1035
|
+
- Basic Og==
|
1036
|
+
Accept-Encoding:
|
1037
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1046
1038
|
response:
|
1047
1039
|
status:
|
1048
1040
|
code: 200
|
@@ -1051,7 +1043,7 @@ http_interactions:
|
|
1051
1043
|
Server:
|
1052
1044
|
- Apache-Coyote/1.1
|
1053
1045
|
Etag:
|
1054
|
-
- '"server-version-v1.
|
1046
|
+
- '"server-version-v1.9.5-9-g774b5ce-dirty"'
|
1055
1047
|
X-Content-Type-Options:
|
1056
1048
|
- nosniff
|
1057
1049
|
Content-Type:
|
@@ -1059,7 +1051,7 @@ http_interactions:
|
|
1059
1051
|
Content-Length:
|
1060
1052
|
- '11422'
|
1061
1053
|
Date:
|
1062
|
-
-
|
1054
|
+
- Fri, 23 Aug 2019 19:49:07 GMT
|
1063
1055
|
body:
|
1064
1056
|
encoding: UTF-8
|
1065
1057
|
string: '{"name":"create-policy","help":{"summary":"Create a new policy","description":"Policies
|
@@ -1194,7 +1186,7 @@ http_interactions:
|
|
1194
1186
|
\"secret\",\n \"max_count\": 20,\n \"before\": \"other policy\",\n \"tags\": [\"small\"],\n \"node_metadata\":
|
1195
1187
|
{\"key\": \"value\"}\n }\n"},"schema":{"name":{"type":"string","position":0},"hostname":{"type":"string"},"root_password":{"type":"string","aliases":["root-password"]},"enabled":{"type":"boolean"},"max_count":{"type":"number","aliases":["max-count"]},"before":{"type":"string"},"after":{"type":"string"},"tags":{"type":"array","aliases":["tag"]},"repo":{"type":"string"},"broker":{"type":"string"},"task":{"type":"string"},"node_metadata":{"type":"object","aliases":["node-metadata"]}}}'
|
1196
1188
|
http_version:
|
1197
|
-
recorded_at:
|
1189
|
+
recorded_at: Fri, 23 Aug 2019 19:49:08 GMT
|
1198
1190
|
- request:
|
1199
1191
|
method: post
|
1200
1192
|
uri: http://localhost:8150/api/commands/create-policy
|
@@ -1202,20 +1194,18 @@ http_interactions:
|
|
1202
1194
|
encoding: UTF-8
|
1203
1195
|
string: '{"name":"test","hostname":"abc.com","root_password":"abc","task":"noop","repo":"name","broker":"puppet","tags":["tag1","tag2"]}'
|
1204
1196
|
headers:
|
1205
|
-
Accept:
|
1206
|
-
- application/json
|
1207
|
-
Accept-Encoding:
|
1208
|
-
- gzip, deflate
|
1209
|
-
User-Agent:
|
1210
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
1211
1197
|
Content-Type:
|
1212
1198
|
- application/json
|
1199
|
+
Accept:
|
1200
|
+
- application/json
|
1213
1201
|
Accept-Language:
|
1214
1202
|
- en_US,en
|
1215
|
-
|
1216
|
-
-
|
1217
|
-
|
1218
|
-
-
|
1203
|
+
User-Agent:
|
1204
|
+
- Faraday v0.15.4
|
1205
|
+
Authorization:
|
1206
|
+
- Basic Og==
|
1207
|
+
Accept-Encoding:
|
1208
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1219
1209
|
response:
|
1220
1210
|
status:
|
1221
1211
|
code: 202
|
@@ -1230,12 +1220,12 @@ http_interactions:
|
|
1230
1220
|
Content-Length:
|
1231
1221
|
- '207'
|
1232
1222
|
Date:
|
1233
|
-
-
|
1223
|
+
- Fri, 23 Aug 2019 19:49:08 GMT
|
1234
1224
|
body:
|
1235
1225
|
encoding: UTF-8
|
1236
1226
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/policies/member","id":"http://localhost:8150/api/collections/policies/test","name":"test","command":"http://localhost:8150/api/collections/commands/5"}'
|
1237
1227
|
http_version:
|
1238
|
-
recorded_at:
|
1228
|
+
recorded_at: Fri, 23 Aug 2019 19:49:08 GMT
|
1239
1229
|
- request:
|
1240
1230
|
method: get
|
1241
1231
|
uri: http://localhost:8150/api/collections/policies/test
|
@@ -1245,14 +1235,14 @@ http_interactions:
|
|
1245
1235
|
headers:
|
1246
1236
|
Accept:
|
1247
1237
|
- application/json
|
1248
|
-
Accept-Encoding:
|
1249
|
-
- gzip, deflate
|
1250
|
-
User-Agent:
|
1251
|
-
- rest-client/2.0.2 (darwin x86_64) jruby/9.1.5.0 (2.3.1p0)
|
1252
1238
|
Accept-Language:
|
1253
1239
|
- en_US,en
|
1254
|
-
|
1255
|
-
-
|
1240
|
+
User-Agent:
|
1241
|
+
- Faraday v0.15.4
|
1242
|
+
Authorization:
|
1243
|
+
- Basic Og==
|
1244
|
+
Accept-Encoding:
|
1245
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
1256
1246
|
response:
|
1257
1247
|
status:
|
1258
1248
|
code: 200
|
@@ -1267,10 +1257,10 @@ http_interactions:
|
|
1267
1257
|
Content-Length:
|
1268
1258
|
- '1071'
|
1269
1259
|
Date:
|
1270
|
-
-
|
1260
|
+
- Fri, 23 Aug 2019 19:49:08 GMT
|
1271
1261
|
body:
|
1272
1262
|
encoding: UTF-8
|
1273
1263
|
string: '{"spec":"http://api.puppetlabs.com/razor/v1/collections/policies/member","id":"http://localhost:8150/api/collections/policies/test","name":"test","repo":{"spec":"http://api.puppetlabs.com/razor/v1/collections/repos/member","id":"http://localhost:8150/api/collections/repos/name","name":"name"},"task":{"spec":"http://api.puppetlabs.com/razor/v1/collections/tasks/member","id":"http://localhost:8150/api/collections/tasks/noop","name":"noop"},"broker":{"spec":"http://api.puppetlabs.com/razor/v1/collections/brokers/member","id":"http://localhost:8150/api/collections/brokers/puppet","name":"puppet"},"enabled":true,"configuration":{"hostname_pattern":"abc.com","root_password":"abc"},"tags":[{"spec":"http://api.puppetlabs.com/razor/v1/collections/tags/member","id":"http://localhost:8150/api/collections/tags/tag1","name":"tag1"},{"spec":"http://api.puppetlabs.com/razor/v1/collections/tags/member","id":"http://localhost:8150/api/collections/tags/tag2","name":"tag2"}],"nodes":{"id":"http://localhost:8150/api/collections/policies/test/nodes","count":0,"name":"nodes"}}'
|
1274
1264
|
http_version:
|
1275
|
-
recorded_at:
|
1265
|
+
recorded_at: Fri, 23 Aug 2019 19:49:08 GMT
|
1276
1266
|
recorded_with: VCR 4.0.0
|