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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8407e1d3de738371c732a02a0b3492210072897f
4
- data.tar.gz: a1d4c717c9e12808fa26d5e920467cb8544eec20
3
+ metadata.gz: 5db876848c3d83e1fb8ead8d2e9e2e7d9d22ee25
4
+ data.tar.gz: c2619e97157fae40934d09f98ea8e10e5749ec1c
5
5
  SHA512:
6
- metadata.gz: ec7942071a7fe3e2d649ec3fec6833a88156bdfb321070b2e9e08e6735b4963377e68252400f1cc82be4f3b5109a67e974342cf3a5a634c6ecd19762c6401a7d
7
- data.tar.gz: c897177a1d8651c7776fcac531e6c660a1484d2075d01a17bd63e65c5bb66568a95f0ccf2906a3418aff784c95dcc5c7e2a8cc57a17a14d8153a38c1c4979747
6
+ metadata.gz: c21892956b517ba51f03dd994100e46f41b1dad1febc159d5c552ef77b3ebdafd24b3d46762ff58c086a654865f353ca586257f5d9435ccbf70fc7d261f84fa7
7
+ data.tar.gz: d945f53b1e32441bc78d4683116199aebf1897883eeeb8e3b5459ae4873075708b2ddf6b84dfd088082408e1c0b5bd256df1b3d7283c09ed9962809e7c2ff970
@@ -1,3 +1,6 @@
1
+ 1.2.1 (August 4, 2015)
2
+ - Fix for getting a single execution. Thanks to @avekash-altiscale
3
+
1
4
  1.2.0 (July 6, 2015)
2
5
  - Add `system_info` endpoint. Thanks to @shyam
3
6
 
@@ -0,0 +1,35 @@
1
+ # Development
2
+
3
+ Helpful instructions for developers of the Rundeck Ruby gem.
4
+
5
+ ## Testing
6
+
7
+ Rundeck gem is tested using RSpec. VCR cassettes record API calls
8
+ and replay the results back when tests are run. VCR
9
+ helps avoid bugs because the developer is not responsible for
10
+ flawlessly recreating the expected Rundeck API response. When a new
11
+ Rundeck version is released developers can easily move/remove the existing
12
+ cassettes and run tests against a Rundeck instance running in a Vagrant
13
+ box. VCR will record the new responses and hopefully there are no errors.
14
+ Errors may occur if Rundeck developers have introduced a bug or created
15
+ breaking API changes. This gem aims to create all its own required objects
16
+ when a new cassette recording is required.
17
+
18
+ ### Integration/Acceptance testing
19
+
20
+ 1. Archive all old cassettes (suggested move `spec/cassettes/#{version}` to
21
+ `spec/cassettes/old/#{version}`.
22
+ 1. Bring up the Vagrant box. `vagrant up --provider=virtualbox`
23
+ 1. Visit (http://192.168.50.2:4440/) in your browser.
24
+ 1. Login with username and password `admin`.
25
+ 1. Obtain/generate an admin user API token. Admin -> Profile, specify an
26
+ email address, then click 'Generate New Token'.
27
+ 1. Export the token as an environment variable.
28
+ `export TEST_RUNDECK_API_TOKEN=vDCT9dP6evCJYHtWoivruQtymkLTGJXq`
29
+ 1. Run RSpec. `bundle exec rake`
30
+
31
+ ### Unit testing
32
+
33
+ Or, running tests from existing cassettes.
34
+
35
+ # TODO:
@@ -65,7 +65,13 @@ module Rundeck
65
65
  # @!macro exceptions
66
66
  def running_job_executions(project, options = {})
67
67
  options = project_options_query(project, options)
68
- objectify get('/executions/running', options)['result']['executions']
68
+ r = get('/executions/running', options)
69
+ # Temporary fix for https://github.com/dblessing/rundeck-ruby/issues/25
70
+ begin
71
+ objectify r['result']['executions']
72
+ rescue
73
+ objectify r['executions']
74
+ end
69
75
  end
70
76
 
71
77
  # Delete all executions for a specific job
@@ -1,3 +1,3 @@
1
1
  module Rundeck
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
@@ -0,0 +1,67 @@
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
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
12
+ Accept:
13
+ - application/xml
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Set-Cookie:
20
+ - JSESSIONID=x4pobzixefuwnlivfklafc7;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>396</Rundeck-content-size><Rundeck-content-creation-time>2015-01-17T21:46:16Z</Rundeck-content-creation-time><Rundeck-content-modify-time>2015-01-17T21:46:16Z</Rundeck-content-modify-time><Rundeck-auth-created-username>admin</Rundeck-auth-created-username><Rundeck-auth-modified-username>admin</Rundeck-auth-modified-username></resource-meta></resource>"
33
+ http_version:
34
+ recorded_at: Sat, 17 Jan 2015 21:46:17 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
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
46
+ response:
47
+ status:
48
+ code: 200
49
+ message: OK
50
+ headers:
51
+ Set-Cookie:
52
+ - JSESSIONID=3r380gxzruvo1jyz8940vs5px;Path=/
53
+ Expires:
54
+ - Thu, 01 Jan 1970 00:00:00 GMT
55
+ Content-Type:
56
+ - application/pgp-key
57
+ Content-Length:
58
+ - '396'
59
+ Server:
60
+ - Jetty(7.6.0.v20120127)
61
+ body:
62
+ encoding: UTF-8
63
+ string: |
64
+ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3oblgkLjHhSJFAHTx2wtq8Mz3YdWdAg2zh+IBSBmw8gJMCFsCCftdFdT4/x9fVpF5GLangsdIi12XmGNPZaQ0IfU2LD1+mW2I2GeU6WumgG395Yx13asm0LTSNDikO/7V53D2lz5F7t8NBgPgdKaGb97GlAsCC74tIUJ0vsWPTk4A3sPRHHAV9DfCtl7moa3i2vmhuMDbBfAYScykWoUYYj366pIqe7DVpSBV/uJG95zV8lP+GYVJqy2jMScEmYEH+ZCgW+M6rP6hKJeZeLC+gd/D0HwB1vEqmaLj4B9JOYmphPWPgU87okl/vxDHRSHt5ZBwLu7GEtrlekevoL+p test@localhost
65
+ http_version:
66
+ recorded_at: Sat, 17 Jan 2015 21:46:17 GMT
67
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,38 @@
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
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
12
+ Accept:
13
+ - application/xml
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Set-Cookie:
20
+ - JSESSIONID=r5ry1e6x9eyz3rdyh87l2msz;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>396</Rundeck-content-size><Rundeck-content-creation-time>2015-01-17T21:46:16Z</Rundeck-content-creation-time><Rundeck-content-modify-time>2015-01-17T21:46:16Z</Rundeck-content-modify-time><Rundeck-auth-created-username>admin</Rundeck-auth-created-username><Rundeck-auth-modified-username>admin</Rundeck-auth-modified-username></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-creation-time>2015-01-17T21:46:16Z</Rundeck-content-creation-time><Rundeck-content-modify-time>2015-01-17T21:46:16Z</Rundeck-content-modify-time><Rundeck-auth-created-username>admin</Rundeck-auth-created-username><Rundeck-auth-modified-username>admin</Rundeck-auth-modified-username><Rundeck-key-type>private</Rundeck-key-type><Rundeck-content-mask>content</Rundeck-content-mask></resource-meta></resource></contents></resource>"
36
+ http_version:
37
+ recorded_at: Sat, 17 Jan 2015 21:46:17 GMT
38
+ recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  X-Rundeck-Auth-Token:
11
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
11
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
12
12
  Accept:
13
13
  - application/xml
14
14
  response:
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: OK
18
18
  headers:
19
19
  Set-Cookie:
20
- - JSESSIONID=16utencrcmx25a7ye9vagn3o9;Path=/
20
+ - JSESSIONID=1fmx2domobd1h1vfqpetnx0b2t;Path=/
21
21
  Expires:
22
22
  - Thu, 01 Jan 1970 00:00:00 GMT
23
23
  Content-Type:
@@ -28,8 +28,8 @@ http_interactions:
28
28
  - Jetty(7.6.0.v20120127)
29
29
  body:
30
30
  encoding: UTF-8
31
- string: <resource path='keys/path/to/private_key' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/private_key'
32
- 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>
31
+ string: "<resource path='keys/path/to/private_key' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/private_key'
32
+ name='private_key'><resource-meta><Rundeck-content-type>application/octet-stream</Rundeck-content-type><Rundeck-content-creation-time>2015-01-17T21:46:16Z</Rundeck-content-creation-time><Rundeck-content-modify-time>2015-01-17T21:46:16Z</Rundeck-content-modify-time><Rundeck-auth-created-username>admin</Rundeck-auth-created-username><Rundeck-auth-modified-username>admin</Rundeck-auth-modified-username><Rundeck-key-type>private</Rundeck-key-type><Rundeck-content-mask>content</Rundeck-content-mask></resource-meta></resource>"
33
33
  http_version:
34
- recorded_at: Sat, 11 Oct 2014 19:01:25 GMT
34
+ recorded_at: Sat, 17 Jan 2015 21:46:17 GMT
35
35
  recorded_with: VCR 2.9.3
@@ -37,7 +37,7 @@ http_interactions:
37
37
  Content-Type:
38
38
  - application/octet-stream
39
39
  X-Rundeck-Auth-Token:
40
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
40
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
41
41
  Accept:
42
42
  - application/xml
43
43
  response:
@@ -46,7 +46,7 @@ http_interactions:
46
46
  message: Created
47
47
  headers:
48
48
  Set-Cookie:
49
- - JSESSIONID=1ptz3vhw04xz01biezeg3fid2g;Path=/
49
+ - JSESSIONID=1mexnjcj9dtvjse78mjshxn3f;Path=/
50
50
  Expires:
51
51
  - Thu, 01 Jan 1970 00:00:00 GMT
52
52
  Content-Type:
@@ -57,8 +57,8 @@ http_interactions:
57
57
  - Jetty(7.6.0.v20120127)
58
58
  body:
59
59
  encoding: UTF-8
60
- string: <resource path='keys/path/to/private_key2' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/private_key2'
61
- name='private_key2'><resource-meta><Rundeck-content-type>application/octet-stream</Rundeck-content-type><Rundeck-content-size>1679</Rundeck-content-size><Rundeck-content-mask>content</Rundeck-content-mask><Rundeck-key-type>private</Rundeck-key-type></resource-meta></resource>
60
+ string: "<resource path='keys/path/to/private_key2' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/private_key2'
61
+ name='private_key2'><resource-meta><Rundeck-content-type>application/octet-stream</Rundeck-content-type><Rundeck-content-creation-time>2015-01-17T21:46:18Z</Rundeck-content-creation-time><Rundeck-content-modify-time>2015-01-17T21:46:18Z</Rundeck-content-modify-time><Rundeck-auth-created-username>admin</Rundeck-auth-created-username><Rundeck-auth-modified-username>admin</Rundeck-auth-modified-username><Rundeck-key-type>private</Rundeck-key-type><Rundeck-content-mask>content</Rundeck-content-mask></resource-meta></resource>"
62
62
  http_version:
63
- recorded_at: Sat, 11 Oct 2014 19:13:33 GMT
63
+ recorded_at: Sat, 17 Jan 2015 21:46:18 GMT
64
64
  recorded_with: VCR 2.9.3
@@ -11,7 +11,7 @@ http_interactions:
11
11
  Content-Type:
12
12
  - application/pgp-key
13
13
  X-Rundeck-Auth-Token:
14
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
14
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
15
15
  Accept:
16
16
  - application/xml
17
17
  response:
@@ -20,7 +20,7 @@ http_interactions:
20
20
  message: Created
21
21
  headers:
22
22
  Set-Cookie:
23
- - JSESSIONID=svocwu5x30ox12fuokfchsspv;Path=/
23
+ - JSESSIONID=1vk9l5wdeqpifynov208r20fx;Path=/
24
24
  Expires:
25
25
  - Thu, 01 Jan 1970 00:00:00 GMT
26
26
  Content-Type:
@@ -31,8 +31,8 @@ http_interactions:
31
31
  - Jetty(7.6.0.v20120127)
32
32
  body:
33
33
  encoding: UTF-8
34
- string: <resource path='keys/path/to/public_key2' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/public_key2'
35
- name='public_key2'><resource-meta><Rundeck-content-type>application/pgp-key</Rundeck-content-type><Rundeck-content-size>396</Rundeck-content-size></resource-meta></resource>
34
+ string: "<resource path='keys/path/to/public_key2' type='file' url='http://192.168.50.2:4440/api/12/storage/keys/path/to/public_key2'
35
+ name='public_key2'><resource-meta><Rundeck-content-type>application/pgp-key</Rundeck-content-type><Rundeck-content-size>396</Rundeck-content-size><Rundeck-content-creation-time>2015-01-17T21:46:18Z</Rundeck-content-creation-time><Rundeck-content-modify-time>2015-01-17T21:46:18Z</Rundeck-content-modify-time><Rundeck-auth-created-username>admin</Rundeck-auth-created-username><Rundeck-auth-modified-username>admin</Rundeck-auth-modified-username></resource-meta></resource>"
36
36
  http_version:
37
- recorded_at: Sat, 11 Oct 2014 19:14:36 GMT
37
+ recorded_at: Sat, 17 Jan 2015 21:46:18 GMT
38
38
  recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  X-Rundeck-Auth-Token:
11
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
11
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
12
12
  Accept:
13
13
  - application/xml
14
14
  response:
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: Not Found
18
18
  headers:
19
19
  Set-Cookie:
20
- - JSESSIONID=10wucn6qepdl4nsfags0ktkcz;Path=/
20
+ - JSESSIONID=18mqsgt5avdz3bz4tx9c6xu7e;Path=/
21
21
  Expires:
22
22
  - Thu, 01 Jan 1970 00:00:00 GMT
23
23
  Content-Type:
@@ -37,5 +37,5 @@ http_interactions:
37
37
  </error>
38
38
  </result>
39
39
  http_version:
40
- recorded_at: Sat, 11 Oct 2014 19:35:40 GMT
40
+ recorded_at: Sat, 17 Jan 2015 21:46:19 GMT
41
41
  recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  X-Rundeck-Auth-Token:
11
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
11
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
12
12
  Accept:
13
13
  - application/xml
14
14
  response:
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: No Content
18
18
  headers:
19
19
  Set-Cookie:
20
- - JSESSIONID=o727hfajakgp1gs2qmcjcs6xb;Path=/
20
+ - JSESSIONID=185pn7wrc203wj4lhqmgmykie;Path=/
21
21
  Expires:
22
22
  - Thu, 01 Jan 1970 00:00:00 GMT
23
23
  Content-Type:
@@ -28,5 +28,5 @@ http_interactions:
28
28
  encoding: UTF-8
29
29
  string: ''
30
30
  http_version:
31
- recorded_at: Sat, 11 Oct 2014 19:30:15 GMT
31
+ recorded_at: Sat, 17 Jan 2015 21:46:19 GMT
32
32
  recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  X-Rundeck-Auth-Token:
11
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
11
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
12
12
  Accept:
13
13
  - application/xml
14
14
  response:
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: No Content
18
18
  headers:
19
19
  Set-Cookie:
20
- - JSESSIONID=59vvjx6vo7th1oz3lne5qa06t;Path=/
20
+ - JSESSIONID=1jupazq91asbsc8c08mpbxc26;Path=/
21
21
  Expires:
22
22
  - Thu, 01 Jan 1970 00:00:00 GMT
23
23
  Content-Type:
@@ -28,5 +28,5 @@ http_interactions:
28
28
  encoding: UTF-8
29
29
  string: ''
30
30
  http_version:
31
- recorded_at: Sat, 11 Oct 2014 19:30:15 GMT
31
+ recorded_at: Sat, 17 Jan 2015 21:46:18 GMT
32
32
  recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  X-Rundeck-Auth-Token:
11
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
11
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
12
12
  Accept:
13
13
  - application/xml
14
14
  response:
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: OK
18
18
  headers:
19
19
  Set-Cookie:
20
- - JSESSIONID=u6bvro3413ersz8tm1s8p5cc;Path=/
20
+ - JSESSIONID=b4kg1z2cnne212wm16ph4fo3c;Path=/
21
21
  Expires:
22
22
  - Thu, 01 Jan 1970 00:00:00 GMT
23
23
  Content-Type:
@@ -28,8 +28,8 @@ http_interactions:
28
28
  - Jetty(7.6.0.v20120127)
29
29
  body:
30
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>
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>396</Rundeck-content-size><Rundeck-content-creation-time>2015-01-17T21:46:16Z</Rundeck-content-creation-time><Rundeck-content-modify-time>2015-01-17T21:46:16Z</Rundeck-content-modify-time><Rundeck-auth-created-username>admin</Rundeck-auth-created-username><Rundeck-auth-modified-username>admin</Rundeck-auth-modified-username></resource-meta></resource>"
33
33
  http_version:
34
- recorded_at: Sat, 11 Oct 2014 15:58:30 GMT
34
+ recorded_at: Sat, 17 Jan 2015 21:46:17 GMT
35
35
  recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  X-Rundeck-Auth-Token:
11
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
11
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
12
12
  Accept:
13
13
  - application/xml
14
14
  response:
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: Not Found
18
18
  headers:
19
19
  Set-Cookie:
20
- - JSESSIONID=tzpmavu87rpz1wj86o5k7f0t7;Path=/
20
+ - JSESSIONID=lni719efzu0510snfdlmkniwf;Path=/
21
21
  Expires:
22
22
  - Thu, 01 Jan 1970 00:00:00 GMT
23
23
  Content-Type:
@@ -28,7 +28,7 @@ http_interactions:
28
28
  - Jetty(7.6.0.v20120127)
29
29
  body:
30
30
  encoding: UTF-8
31
- string: '<error>resource not found: /keys/path/to/nowhere</error>'
31
+ string: "<error>resource not found: /keys/path/to/nowhere</error>"
32
32
  http_version:
33
- recorded_at: Sat, 11 Oct 2014 16:05:21 GMT
33
+ recorded_at: Sat, 17 Jan 2015 21:46:16 GMT
34
34
  recorded_with: VCR 2.9.3
@@ -0,0 +1,38 @@
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
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
12
+ Accept:
13
+ - application/xml
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Set-Cookie:
20
+ - JSESSIONID=fn3n8us5y9i05hjyumnf75kq;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-creation-time>2015-01-17T21:46:16Z</Rundeck-content-creation-time><Rundeck-content-modify-time>2015-01-17T21:46:16Z</Rundeck-content-modify-time><Rundeck-auth-created-username>admin</Rundeck-auth-created-username><Rundeck-auth-modified-username>admin</Rundeck-auth-modified-username><Rundeck-key-type>private</Rundeck-key-type><Rundeck-content-mask>content</Rundeck-content-mask></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>396</Rundeck-content-size><Rundeck-content-creation-time>2015-01-17T21:46:16Z</Rundeck-content-creation-time><Rundeck-content-modify-time>2015-01-17T21:46:16Z</Rundeck-content-modify-time><Rundeck-auth-created-username>admin</Rundeck-auth-created-username><Rundeck-auth-modified-username>admin</Rundeck-auth-modified-username></resource-meta></resource></contents></resource>"
36
+ http_version:
37
+ recorded_at: Sat, 17 Jan 2015 21:46:16 GMT
38
+ recorded_with: VCR 2.9.3
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  X-Rundeck-Auth-Token:
11
- - i8iMfXUOpYzVJ9SAkh7pRQMTZI1Bnsyu
11
+ - vDCT9dP6evCJYHtWoivruQtymkLTGJXq
12
12
  Accept:
13
13
  - application/xml
14
14
  response:
@@ -17,7 +17,7 @@ http_interactions:
17
17
  message: OK
18
18
  headers:
19
19
  Set-Cookie:
20
- - JSESSIONID=q345xca6qsxa46f64tnyd4f8;Path=/
20
+ - JSESSIONID=nj99u1tufn8k57k75upsw99p;Path=/
21
21
  Expires:
22
22
  - Thu, 01 Jan 1970 00:00:00 GMT
23
23
  Content-Type:
@@ -28,8 +28,8 @@ http_interactions:
28
28
  - Jetty(7.6.0.v20120127)
29
29
  body:
30
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>
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>396</Rundeck-content-size><Rundeck-content-creation-time>2015-01-17T21:46:16Z</Rundeck-content-creation-time><Rundeck-content-modify-time>2015-01-17T21:46:16Z</Rundeck-content-modify-time><Rundeck-auth-created-username>admin</Rundeck-auth-created-username><Rundeck-auth-modified-username>admin</Rundeck-auth-modified-username></resource-meta></resource>"
33
33
  http_version:
34
- recorded_at: Sat, 11 Oct 2014 18:56:02 GMT
34
+ recorded_at: Sat, 17 Jan 2015 21:46:17 GMT
35
35
  recorded_with: VCR 2.9.3