rundeck 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/DEVELOPMENT.md +35 -0
  4. data/lib/rundeck/client/execution.rb +7 -1
  5. data/lib/rundeck/version.rb +1 -1
  6. data/spec/cassettes/12/key/contents_direct.yml +67 -0
  7. data/spec/cassettes/12/key/contents_multiple.yml +38 -0
  8. data/spec/cassettes/12/{key_contents_private.yml → key/contents_private.yml} +5 -5
  9. data/spec/cassettes/12/{create_private_key.yml → key/create_private.yml} +5 -5
  10. data/spec/cassettes/12/{create_public_key.yml → key/create_public.yml} +5 -5
  11. data/spec/cassettes/12/{delete_key_invalid.yml → key/delete_error.yml} +3 -3
  12. data/spec/cassettes/12/{delete_key_private.yml → key/delete_private.yml} +3 -3
  13. data/spec/cassettes/12/{delete_key_public.yml → key/delete_public.yml} +3 -3
  14. data/spec/cassettes/12/{keys_direct.yml → key/key_direct.yml} +5 -5
  15. data/spec/cassettes/12/{keys_none.yml → key/key_error.yml} +4 -4
  16. data/spec/cassettes/12/key/key_multiple.yml +38 -0
  17. data/spec/cassettes/12/{key_metadata_direct.yml → key/metadata_direct.yml} +5 -5
  18. data/spec/cassettes/12/key/metadata_multiple.yml +38 -0
  19. data/spec/cassettes/12/{update_private_key.yml → key/update_private.yml} +10 -10
  20. data/spec/cassettes/12/{update_public_key.yml → key/update_public.yml} +10 -10
  21. data/spec/cassettes/12/{create_project_invalid.yml → project/create_error.yml} +3 -3
  22. data/spec/cassettes/12/{create_project_json.yml → project/create_json.yml} +3 -3
  23. data/spec/cassettes/12/{create_project_xml.yml → project/create_xml.yml} +3 -3
  24. data/spec/cassettes/12/{delete_token.yml → project/delete.yml} +4 -4
  25. data/spec/cassettes/12/project/delete_error.yml +41 -0
  26. data/spec/cassettes/12/{project_valid.yml → project/project.yml} +3 -5
  27. data/spec/cassettes/12/{project_invalid.yml → project/project_error.yml} +3 -3
  28. data/spec/cassettes/12/{projects.yml → project/projects.yml} +3 -3
  29. data/spec/cassettes/12/{delete_token_invalid.yml → token/delete_error.yml} +3 -3
  30. data/spec/cassettes/12/{token.yml → token/token.yml} +5 -5
  31. data/spec/cassettes/12/{create_token.yml → token/token_create.yml} +5 -5
  32. data/spec/cassettes/12/token/token_delete.yml +32 -0
  33. data/spec/cassettes/12/{token_invalid.yml → token/token_error.yml} +3 -3
  34. data/spec/cassettes/12/{tokens_multiple.yml → token/tokens_multiple.yml} +6 -6
  35. data/spec/cassettes/12/{tokens_single.yml → token/tokens_single.yml} +5 -5
  36. data/spec/cassettes/12/{tokens_user.yml → token/tokens_user.yml} +7 -6
  37. data/spec/rundeck/client/key_spec.rb +25 -23
  38. data/spec/rundeck/client/project_spec.rb +12 -9
  39. data/spec/rundeck/client/token_spec.rb +28 -18
  40. data/spec/spec_helper.rb +5 -4
  41. data/spec/support/helpers.rb +29 -0
  42. metadata +65 -60
  43. data/spec/cassettes/12/key_contents_direct.yml +0 -67
  44. data/spec/cassettes/12/key_contents_multiple.yml +0 -38
  45. data/spec/cassettes/12/key_metadata_multiple.yml +0 -38
  46. data/spec/cassettes/12/keys_multiple.yml +0 -38
@@ -12,15 +12,13 @@ require 'support/shared_examples'
12
12
 
13
13
  require File.expand_path('../../lib/rundeck', __FILE__)
14
14
 
15
- WebMock.disable_net_connect!(allow: 'codeclimate.com')
16
-
17
15
  RSpec.configure do |config|
18
16
  config.include Helpers
19
17
 
20
18
  config.before(:each) do
21
- # Configuration for Anvils Demo Vagrant Box. API token might change.
22
19
  Rundeck.endpoint = 'http://192.168.50.2:4440'
23
- Rundeck.api_token = 'cbsQgUIZBOyCgoipJAwKd1YgfcwPJ0FY'
20
+ Rundeck.api_token =
21
+ ENV['TEST_RUNDECK_API_TOKEN'] ||= 'OPIfQ6MOnevhlFThG1af4GAcbPdAgh0B'
24
22
  WebMock.reset!
25
23
  end
26
24
  end
@@ -31,3 +29,6 @@ VCR.configure do |config|
31
29
  config.allow_http_connections_when_no_cassette = true
32
30
  config.configure_rspec_metadata!
33
31
  end
32
+
33
+ WebMock.allow_net_connect!
34
+ # WebMock.disable_net_connect!(allow: 'codeclimate.com')
@@ -4,6 +4,31 @@ module Helpers
4
4
  File.new(File.dirname(__FILE__) + "/../fixtures/#{name}.xml")
5
5
  end
6
6
 
7
+ # Check if the current example's VCR cassette exists
8
+ def cassette_exist?
9
+ File.exist?(
10
+ File.join(
11
+ VCR.configuration.cassette_library_dir,
12
+ "#{RSpec.current_example.metadata[:vcr][:cassette_name]}.yml"
13
+ )
14
+ )
15
+ end
16
+
17
+ # Helpful when running integration/acceptance tests
18
+ # against a new version of Rundeck.
19
+ #
20
+ # We don't want to record the 'preparation' type requests.
21
+ # Example - Before running tests that need to 'get' a project,
22
+ # we must create the project.
23
+ def prepare
24
+ unless cassette_exist?
25
+ cassette = RSpec.current_example.metadata[:vcr][:cassette_name]
26
+ VCR.eject_cassette(cassette)
27
+ VCR.turned_off { yield }
28
+ VCR.insert_cassette(cassette)
29
+ end
30
+ end
31
+
7
32
  def endpoint
8
33
  "#{Rundeck.endpoint}/api/#{Rundeck.api_version}"
9
34
  end
@@ -84,6 +109,10 @@ module Helpers
84
109
  '{ "name": "json_project" }'
85
110
  end
86
111
 
112
+ def project_deleteme
113
+ '{ "name": "deleteme" }'
114
+ end
115
+
87
116
  def project_xml
88
117
  <<-EOS
89
118
  <project>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rundeck
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Drew A. Blessing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2015-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -205,6 +205,7 @@ files:
205
205
  - ".rubocop_todo.yml"
206
206
  - ".travis.yml"
207
207
  - CHANGELOG.md
208
+ - DEVELOPMENT.md
208
209
  - Gemfile
209
210
  - Guardfile
210
211
  - LICENSE.txt
@@ -230,25 +231,14 @@ files:
230
231
  - spec/cassettes/12/abort_executions_invalid.yml
231
232
  - spec/cassettes/12/bulk_delete_executions_invalid.yml
232
233
  - spec/cassettes/12/bulk_delete_executions_valid.yml
233
- - spec/cassettes/12/create_private_key.yml
234
- - spec/cassettes/12/create_project_invalid.yml
235
- - spec/cassettes/12/create_project_json.yml
236
- - spec/cassettes/12/create_project_xml.yml
237
- - spec/cassettes/12/create_public_key.yml
238
- - spec/cassettes/12/create_token.yml
239
234
  - spec/cassettes/12/delete_execution_invalid.yml
240
235
  - spec/cassettes/12/delete_execution_valid.yml
241
236
  - spec/cassettes/12/delete_job_executions.yml
242
237
  - spec/cassettes/12/delete_job_executions_invalid.yml
243
238
  - spec/cassettes/12/delete_job_invalid.yml
244
239
  - spec/cassettes/12/delete_job_valid.yml
245
- - spec/cassettes/12/delete_key_invalid.yml
246
- - spec/cassettes/12/delete_key_private.yml
247
- - spec/cassettes/12/delete_key_public.yml
248
240
  - spec/cassettes/12/delete_project_invalid.yml
249
241
  - spec/cassettes/12/delete_project_valid.yml
250
- - spec/cassettes/12/delete_token.yml
251
- - spec/cassettes/12/delete_token_invalid.yml
252
242
  - spec/cassettes/12/execution_invalid.yml
253
243
  - spec/cassettes/12/execution_query_invalid.yml
254
244
  - spec/cassettes/12/execution_query_no_params_valid.yml
@@ -262,30 +252,43 @@ files:
262
252
  - spec/cassettes/12/job.yml
263
253
  - spec/cassettes/12/job_executions.yml
264
254
  - spec/cassettes/12/jobs.yml
265
- - spec/cassettes/12/key_contents_direct.yml
266
- - spec/cassettes/12/key_contents_multiple.yml
267
- - spec/cassettes/12/key_contents_private.yml
268
- - spec/cassettes/12/key_metadata_direct.yml
269
- - spec/cassettes/12/key_metadata_multiple.yml
270
- - spec/cassettes/12/keys_direct.yml
271
- - spec/cassettes/12/keys_multiple.yml
272
- - spec/cassettes/12/keys_none.yml
273
- - spec/cassettes/12/project_invalid.yml
274
- - spec/cassettes/12/project_valid.yml
275
- - spec/cassettes/12/projects.yml
255
+ - spec/cassettes/12/key/contents_direct.yml
256
+ - spec/cassettes/12/key/contents_multiple.yml
257
+ - spec/cassettes/12/key/contents_private.yml
258
+ - spec/cassettes/12/key/create_private.yml
259
+ - spec/cassettes/12/key/create_public.yml
260
+ - spec/cassettes/12/key/delete_error.yml
261
+ - spec/cassettes/12/key/delete_private.yml
262
+ - spec/cassettes/12/key/delete_public.yml
263
+ - spec/cassettes/12/key/key_direct.yml
264
+ - spec/cassettes/12/key/key_error.yml
265
+ - spec/cassettes/12/key/key_multiple.yml
266
+ - spec/cassettes/12/key/metadata_direct.yml
267
+ - spec/cassettes/12/key/metadata_multiple.yml
268
+ - spec/cassettes/12/key/update_private.yml
269
+ - spec/cassettes/12/key/update_public.yml
270
+ - spec/cassettes/12/project/create_error.yml
271
+ - spec/cassettes/12/project/create_json.yml
272
+ - spec/cassettes/12/project/create_xml.yml
273
+ - spec/cassettes/12/project/delete.yml
274
+ - spec/cassettes/12/project/delete_error.yml
275
+ - spec/cassettes/12/project/project.yml
276
+ - spec/cassettes/12/project/project_error.yml
277
+ - spec/cassettes/12/project/projects.yml
276
278
  - spec/cassettes/12/run_job_invalid.yml
277
279
  - spec/cassettes/12/run_job_valid.yml
278
280
  - spec/cassettes/12/running_jobs_multiple.yml
279
281
  - spec/cassettes/12/running_jobs_none.yml
280
282
  - spec/cassettes/12/running_jobs_single.yml
281
283
  - spec/cassettes/12/system_info.yml
282
- - spec/cassettes/12/token.yml
283
- - spec/cassettes/12/token_invalid.yml
284
- - spec/cassettes/12/tokens_multiple.yml
285
- - spec/cassettes/12/tokens_single.yml
286
- - spec/cassettes/12/tokens_user.yml
287
- - spec/cassettes/12/update_private_key.yml
288
- - spec/cassettes/12/update_public_key.yml
284
+ - spec/cassettes/12/token/delete_error.yml
285
+ - spec/cassettes/12/token/token.yml
286
+ - spec/cassettes/12/token/token_create.yml
287
+ - spec/cassettes/12/token/token_delete.yml
288
+ - spec/cassettes/12/token/token_error.yml
289
+ - spec/cassettes/12/token/tokens_multiple.yml
290
+ - spec/cassettes/12/token/tokens_single.yml
291
+ - spec/cassettes/12/token/tokens_user.yml
289
292
  - spec/rundeck/client/execution_spec.rb
290
293
  - spec/rundeck/client/job_spec.rb
291
294
  - spec/rundeck/client/key_spec.rb
@@ -329,25 +332,14 @@ test_files:
329
332
  - spec/cassettes/12/abort_executions_invalid.yml
330
333
  - spec/cassettes/12/bulk_delete_executions_invalid.yml
331
334
  - spec/cassettes/12/bulk_delete_executions_valid.yml
332
- - spec/cassettes/12/create_private_key.yml
333
- - spec/cassettes/12/create_project_invalid.yml
334
- - spec/cassettes/12/create_project_json.yml
335
- - spec/cassettes/12/create_project_xml.yml
336
- - spec/cassettes/12/create_public_key.yml
337
- - spec/cassettes/12/create_token.yml
338
335
  - spec/cassettes/12/delete_execution_invalid.yml
339
336
  - spec/cassettes/12/delete_execution_valid.yml
340
337
  - spec/cassettes/12/delete_job_executions.yml
341
338
  - spec/cassettes/12/delete_job_executions_invalid.yml
342
339
  - spec/cassettes/12/delete_job_invalid.yml
343
340
  - spec/cassettes/12/delete_job_valid.yml
344
- - spec/cassettes/12/delete_key_invalid.yml
345
- - spec/cassettes/12/delete_key_private.yml
346
- - spec/cassettes/12/delete_key_public.yml
347
341
  - spec/cassettes/12/delete_project_invalid.yml
348
342
  - spec/cassettes/12/delete_project_valid.yml
349
- - spec/cassettes/12/delete_token.yml
350
- - spec/cassettes/12/delete_token_invalid.yml
351
343
  - spec/cassettes/12/execution_invalid.yml
352
344
  - spec/cassettes/12/execution_query_invalid.yml
353
345
  - spec/cassettes/12/execution_query_no_params_valid.yml
@@ -361,30 +353,43 @@ test_files:
361
353
  - spec/cassettes/12/job.yml
362
354
  - spec/cassettes/12/job_executions.yml
363
355
  - spec/cassettes/12/jobs.yml
364
- - spec/cassettes/12/key_contents_direct.yml
365
- - spec/cassettes/12/key_contents_multiple.yml
366
- - spec/cassettes/12/key_contents_private.yml
367
- - spec/cassettes/12/key_metadata_direct.yml
368
- - spec/cassettes/12/key_metadata_multiple.yml
369
- - spec/cassettes/12/keys_direct.yml
370
- - spec/cassettes/12/keys_multiple.yml
371
- - spec/cassettes/12/keys_none.yml
372
- - spec/cassettes/12/project_invalid.yml
373
- - spec/cassettes/12/project_valid.yml
374
- - spec/cassettes/12/projects.yml
356
+ - spec/cassettes/12/key/contents_direct.yml
357
+ - spec/cassettes/12/key/contents_multiple.yml
358
+ - spec/cassettes/12/key/contents_private.yml
359
+ - spec/cassettes/12/key/create_private.yml
360
+ - spec/cassettes/12/key/create_public.yml
361
+ - spec/cassettes/12/key/delete_error.yml
362
+ - spec/cassettes/12/key/delete_private.yml
363
+ - spec/cassettes/12/key/delete_public.yml
364
+ - spec/cassettes/12/key/key_direct.yml
365
+ - spec/cassettes/12/key/key_error.yml
366
+ - spec/cassettes/12/key/key_multiple.yml
367
+ - spec/cassettes/12/key/metadata_direct.yml
368
+ - spec/cassettes/12/key/metadata_multiple.yml
369
+ - spec/cassettes/12/key/update_private.yml
370
+ - spec/cassettes/12/key/update_public.yml
371
+ - spec/cassettes/12/project/create_error.yml
372
+ - spec/cassettes/12/project/create_json.yml
373
+ - spec/cassettes/12/project/create_xml.yml
374
+ - spec/cassettes/12/project/delete.yml
375
+ - spec/cassettes/12/project/delete_error.yml
376
+ - spec/cassettes/12/project/project.yml
377
+ - spec/cassettes/12/project/project_error.yml
378
+ - spec/cassettes/12/project/projects.yml
375
379
  - spec/cassettes/12/run_job_invalid.yml
376
380
  - spec/cassettes/12/run_job_valid.yml
377
381
  - spec/cassettes/12/running_jobs_multiple.yml
378
382
  - spec/cassettes/12/running_jobs_none.yml
379
383
  - spec/cassettes/12/running_jobs_single.yml
380
384
  - spec/cassettes/12/system_info.yml
381
- - spec/cassettes/12/token.yml
382
- - spec/cassettes/12/token_invalid.yml
383
- - spec/cassettes/12/tokens_multiple.yml
384
- - spec/cassettes/12/tokens_single.yml
385
- - spec/cassettes/12/tokens_user.yml
386
- - spec/cassettes/12/update_private_key.yml
387
- - spec/cassettes/12/update_public_key.yml
385
+ - spec/cassettes/12/token/delete_error.yml
386
+ - spec/cassettes/12/token/token.yml
387
+ - spec/cassettes/12/token/token_create.yml
388
+ - spec/cassettes/12/token/token_delete.yml
389
+ - spec/cassettes/12/token/token_error.yml
390
+ - spec/cassettes/12/token/tokens_multiple.yml
391
+ - spec/cassettes/12/token/tokens_single.yml
392
+ - spec/cassettes/12/token/tokens_user.yml
388
393
  - spec/rundeck/client/execution_spec.rb
389
394
  - spec/rundeck/client/job_spec.rb
390
395
  - spec/rundeck/client/key_spec.rb
@@ -1,67 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://192.168.50.2:4440/api/12/storage/keys/path/to/key
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- X-Rundeck-Auth-Token:
11
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
12
- Accept:
13
- - application/xml
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- Set-Cookie:
20
- - JSESSIONID=1hgww22v3ttgu184690t16xhqt;Path=/
21
- Expires:
22
- - Thu, 01 Jan 1970 00:00:00 GMT
23
- Content-Type:
24
- - application/xml;charset=utf-8
25
- Transfer-Encoding:
26
- - chunked
27
- Server:
28
- - Jetty(7.6.0.v20120127)
29
- body:
30
- encoding: UTF-8
31
- string: <resource path='keys/path/to/key' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/key'
32
- name='key'><resource-meta><Rundeck-content-type>application/pgp-key</Rundeck-content-type><Rundeck-content-size>395</Rundeck-content-size></resource-meta></resource>
33
- http_version:
34
- recorded_at: Sat, 11 Oct 2014 19:01:24 GMT
35
- - request:
36
- method: get
37
- uri: http://192.168.50.2:4440/api/12/storage/keys/path/to/key
38
- body:
39
- encoding: US-ASCII
40
- string: ''
41
- headers:
42
- Accept:
43
- - application/pgp-keys
44
- X-Rundeck-Auth-Token:
45
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
46
- response:
47
- status:
48
- code: 200
49
- message: OK
50
- headers:
51
- Set-Cookie:
52
- - JSESSIONID=1iv0mz66r69do13f2jcu651s5b;Path=/
53
- Expires:
54
- - Thu, 01 Jan 1970 00:00:00 GMT
55
- Content-Type:
56
- - application/pgp-key
57
- Content-Length:
58
- - '395'
59
- Server:
60
- - Jetty(7.6.0.v20120127)
61
- body:
62
- encoding: UTF-8
63
- string: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3oblgkLjHhSJFAHTx2wtq8Mz3YdWdAg2zh+IBSBmw8gJMCFsCCftdFdT4/x9fVpF5GLangsdIi12XmGNPZaQ0IfU2LD1+mW2I2GeU6WumgG395Yx13asm0LTSNDikO/7V53D2lz5F7t8NBgPgdKaGb97GlAsCC74tIUJ0vsWPTk4A3sPRHHAV9DfCtl7moa3i2vmhuMDbBfAYScykWoUYYj366pIqe7DVpSBV/uJG95zV8lP+GYVJqy2jMScEmYEH+ZCgW+M6rP6hKJeZeLC+gd/D0HwB1vEqmaLj4B9JOYmphPWPgU87okl/vxDHRSHt5ZBwLu7GEtrlekevoL+p
64
- test@localhost
65
- http_version:
66
- recorded_at: Sat, 11 Oct 2014 19:01:24 GMT
67
- recorded_with: VCR 2.9.3
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://192.168.50.2:4440/api/12/storage/keys/path/to
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- X-Rundeck-Auth-Token:
11
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
12
- Accept:
13
- - application/xml
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- Set-Cookie:
20
- - JSESSIONID=da0k5ye4bgaf1eauhns8yy6m2;Path=/
21
- Expires:
22
- - Thu, 01 Jan 1970 00:00:00 GMT
23
- Content-Type:
24
- - text/html;charset=UTF-8
25
- Transfer-Encoding:
26
- - chunked
27
- Server:
28
- - Jetty(7.6.0.v20120127)
29
- body:
30
- encoding: UTF-8
31
- string: <resource path='keys/path/to' type='directory' url='http://192.168.50.2:4440/api/12/storage/keys/path/to'><contents
32
- count='2'><resource path='keys/path/to/key' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/key'
33
- name='key'><resource-meta><Rundeck-content-type>application/pgp-key</Rundeck-content-type><Rundeck-content-size>395</Rundeck-content-size></resource-meta></resource><resource
34
- path='keys/path/to/private_key' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/private_key'
35
- name='private_key'><resource-meta><Rundeck-content-type>application/octet-stream</Rundeck-content-type><Rundeck-content-size>1678</Rundeck-content-size><Rundeck-content-mask>content</Rundeck-content-mask><Rundeck-key-type>private</Rundeck-key-type></resource-meta></resource></contents></resource>
36
- http_version:
37
- recorded_at: Sat, 11 Oct 2014 19:01:24 GMT
38
- recorded_with: VCR 2.9.3
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://192.168.50.2:4440/api/12/storage/keys/path/to
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- X-Rundeck-Auth-Token:
11
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
12
- Accept:
13
- - application/xml
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- Set-Cookie:
20
- - JSESSIONID=13nc8t2ak6lbo602watem5byc;Path=/
21
- Expires:
22
- - Thu, 01 Jan 1970 00:00:00 GMT
23
- Content-Type:
24
- - text/html;charset=UTF-8
25
- Transfer-Encoding:
26
- - chunked
27
- Server:
28
- - Jetty(7.6.0.v20120127)
29
- body:
30
- encoding: UTF-8
31
- string: <resource path='keys/path/to' type='directory' url='http://192.168.50.2:4440/api/12/storage/keys/path/to'><contents
32
- count='2'><resource path='keys/path/to/private_key' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/private_key'
33
- name='private_key'><resource-meta><Rundeck-content-type>application/octet-stream</Rundeck-content-type><Rundeck-content-size>1678</Rundeck-content-size><Rundeck-content-mask>content</Rundeck-content-mask><Rundeck-key-type>private</Rundeck-key-type></resource-meta></resource><resource
34
- path='keys/path/to/key' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/key'
35
- name='key'><resource-meta><Rundeck-content-type>application/pgp-key</Rundeck-content-type><Rundeck-content-size>395</Rundeck-content-size></resource-meta></resource></contents></resource>
36
- http_version:
37
- recorded_at: Sat, 11 Oct 2014 18:56:02 GMT
38
- recorded_with: VCR 2.9.3
@@ -1,38 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://192.168.50.2:4440/api/12/storage/keys/path/to
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- X-Rundeck-Auth-Token:
11
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
12
- Accept:
13
- - application/xml
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- Set-Cookie:
20
- - JSESSIONID=kptq87o1bft211uf6wd3pm65q;Path=/
21
- Expires:
22
- - Thu, 01 Jan 1970 00:00:00 GMT
23
- Content-Type:
24
- - text/html;charset=UTF-8
25
- Transfer-Encoding:
26
- - chunked
27
- Server:
28
- - Jetty(7.6.0.v20120127)
29
- body:
30
- encoding: UTF-8
31
- string: <resource path='keys/path/to' type='directory' url='http://192.168.50.2:4440/api/12/storage/keys/path/to'><contents
32
- count='2'><resource path='keys/path/to/key' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/key'
33
- name='key'><resource-meta><Rundeck-content-type>application/pgp-key</Rundeck-content-type><Rundeck-content-size>395</Rundeck-content-size></resource-meta></resource><resource
34
- path='keys/path/to/private_key' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/private_key'
35
- name='private_key'><resource-meta><Rundeck-content-type>application/octet-stream</Rundeck-content-type><Rundeck-content-size>1678</Rundeck-content-size><Rundeck-content-mask>content</Rundeck-content-mask><Rundeck-key-type>private</Rundeck-key-type></resource-meta></resource></contents></resource>
36
- http_version:
37
- recorded_at: Sat, 11 Oct 2014 16:03:18 GMT
38
- recorded_with: VCR 2.9.3