rundeck 0.0.3.pre → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +10 -0
- data/.rubocop_todo.yml +0 -10
- data/.travis.yml +1 -1
- data/lib/rundeck/client.rb +61 -3
- data/lib/rundeck/client/execution.rb +194 -0
- data/lib/rundeck/client/{jobs.rb → job.rb} +19 -36
- data/lib/rundeck/client/{keys.rb → key.rb} +42 -20
- data/lib/rundeck/configuration.rb +5 -1
- data/lib/rundeck/objectified_hash.rb +13 -3
- data/lib/rundeck/request.rb +7 -1
- data/lib/rundeck/version.rb +1 -1
- data/rundeck.gemspec +2 -1
- data/spec/cassettes/12/abort_execution_not_running.yml +41 -0
- data/spec/cassettes/12/abort_execution_valid.yml +41 -0
- data/spec/cassettes/12/abort_executions_invalid.yml +41 -0
- data/spec/cassettes/12/bulk_delete_executions_invalid.yml +46 -0
- data/spec/cassettes/12/bulk_delete_executions_valid.yml +41 -0
- data/spec/cassettes/12/create_private_key.yml +64 -0
- data/spec/cassettes/12/create_public_key.yml +38 -0
- data/spec/cassettes/12/delete_execution_invalid.yml +41 -0
- data/spec/cassettes/12/delete_execution_valid.yml +32 -0
- data/spec/cassettes/12/delete_job_executions.yml +41 -0
- data/spec/cassettes/12/delete_job_executions_invalid.yml +41 -0
- data/spec/cassettes/12/delete_job_invalid.yml +41 -0
- data/spec/cassettes/12/delete_job_valid.yml +32 -0
- data/spec/cassettes/12/delete_key_invalid.yml +41 -0
- data/spec/cassettes/12/delete_key_private.yml +32 -0
- data/spec/cassettes/12/delete_key_public.yml +32 -0
- data/spec/cassettes/12/execution_invalid.yml +41 -0
- data/spec/cassettes/12/execution_query_invalid.yml +39 -0
- data/spec/cassettes/12/execution_query_no_params_valid.yml +124 -0
- data/spec/cassettes/12/execution_state_invalid.yml +41 -0
- data/spec/cassettes/12/execution_state_valid.yml +39 -0
- data/spec/cassettes/12/execution_valid.yml +60 -0
- data/spec/cassettes/12/export_job_xml.yml +234 -0
- data/spec/cassettes/12/export_job_yaml.yml +228 -0
- data/spec/cassettes/12/import_job_xml.yml +69 -0
- data/spec/cassettes/12/import_job_yaml.yml +63 -0
- data/spec/cassettes/12/job.yml +84 -0
- data/spec/cassettes/12/job_executions.yml +96 -0
- data/spec/cassettes/12/jobs.yml +76 -0
- data/spec/cassettes/12/key_contents_direct.yml +67 -0
- data/spec/cassettes/12/key_contents_multiple.yml +38 -0
- data/spec/cassettes/12/key_contents_private.yml +35 -0
- data/spec/cassettes/12/key_metadata_direct.yml +35 -0
- data/spec/cassettes/12/key_metadata_multiple.yml +38 -0
- data/spec/cassettes/12/keys_direct.yml +35 -0
- data/spec/cassettes/12/keys_multiple.yml +38 -0
- data/spec/cassettes/12/keys_none.yml +34 -0
- data/spec/cassettes/12/run_job_invalid.yml +44 -0
- data/spec/cassettes/12/run_job_valid.yml +77 -0
- data/spec/cassettes/12/running_jobs_multiple.yml +70 -0
- data/spec/cassettes/12/running_jobs_none.yml +39 -0
- data/spec/cassettes/12/running_jobs_single.yml +55 -0
- data/spec/cassettes/12/update_private_key.yml +96 -0
- data/spec/cassettes/12/update_public_key.yml +70 -0
- data/spec/rundeck/client/execution_spec.rb +346 -0
- data/spec/rundeck/client/job_spec.rb +175 -0
- data/spec/rundeck/client/key_spec.rb +223 -0
- data/spec/spec_helper.rb +15 -60
- data/spec/support/helpers.rb +136 -0
- metadata +118 -35
- data/spec/fixtures/empty.xml +0 -0
- data/spec/fixtures/job.xml +0 -17
- data/spec/fixtures/job_executions.xml +0 -31
- data/spec/fixtures/job_run.xml +0 -16
- data/spec/fixtures/jobs_import.xml +0 -23
- data/spec/fixtures/jobs_my_project.xml +0 -14
- data/spec/fixtures/jobs_xml.xml +0 -32
- data/spec/fixtures/jobs_yaml.xml +0 -22
- data/spec/fixtures/key_contents_public.xml +0 -1
- data/spec/fixtures/key_private.xml +0 -8
- data/spec/fixtures/key_public.xml +0 -7
- data/spec/fixtures/keys.xml +0 -27
- data/spec/rundeck/client/jobs_spec.rb +0 -181
- data/spec/rundeck/client/keys_spec.rb +0 -216
@@ -0,0 +1,136 @@
|
|
1
|
+
module Helpers
|
2
|
+
# Remove this after refactored to vcr
|
3
|
+
def load_fixture(name)
|
4
|
+
File.new(File.dirname(__FILE__) + "/../fixtures/#{name}.xml")
|
5
|
+
end
|
6
|
+
|
7
|
+
# GET
|
8
|
+
def stub_get(path, fixture, accept = 'xml')
|
9
|
+
stub_request(:get, "#{Rundeck.endpoint}#{path}")
|
10
|
+
.with(headers: { 'Accept' => "application/#{accept}",
|
11
|
+
'X-Rundeck-Auth-Token' => Rundeck.api_token })
|
12
|
+
.to_return(body: load_fixture(fixture))
|
13
|
+
end
|
14
|
+
|
15
|
+
def a_get(path, accept = 'xml')
|
16
|
+
a_request(:get, "#{Rundeck.endpoint}#{path}")
|
17
|
+
.with(headers: { 'Accept' => "application/#{accept}",
|
18
|
+
'X-Rundeck-Auth-Token' => Rundeck.api_token })
|
19
|
+
end
|
20
|
+
|
21
|
+
# POST
|
22
|
+
def stub_post(path, fixture, status_code = 200, accept = 'xml')
|
23
|
+
stub_request(:post, "#{Rundeck.endpoint}#{path}")
|
24
|
+
.with(headers: { 'Accept' => "application/#{accept}",
|
25
|
+
'X-Rundeck-Auth-Token' => Rundeck.api_token })
|
26
|
+
.to_return(body: load_fixture(fixture), status: status_code)
|
27
|
+
end
|
28
|
+
|
29
|
+
def a_post(path, accept = 'xml')
|
30
|
+
a_request(:post, "#{Rundeck.endpoint}#{path}")
|
31
|
+
.with(headers: { 'Accept' => "application/#{accept}",
|
32
|
+
'X-Rundeck-Auth-Token' => Rundeck.api_token })
|
33
|
+
end
|
34
|
+
|
35
|
+
# PUT
|
36
|
+
def stub_put(path, fixture, accept = 'xml')
|
37
|
+
stub_request(:put, "#{Rundeck.endpoint}#{path}")
|
38
|
+
.with(headers: { 'Accept' => "application/#{accept}",
|
39
|
+
'X-Rundeck-Auth-Token' => Rundeck.api_token })
|
40
|
+
.to_return(body: load_fixture(fixture))
|
41
|
+
end
|
42
|
+
|
43
|
+
def a_put(path, accept = 'xml')
|
44
|
+
a_request(:put, "#{Rundeck.endpoint}#{path}")
|
45
|
+
.with(headers: { 'Accept' => "application/#{accept}",
|
46
|
+
'X-Rundeck-Auth-Token' => Rundeck.api_token })
|
47
|
+
end
|
48
|
+
|
49
|
+
# DELETE
|
50
|
+
def stub_delete(path, fixture, accept = 'xml')
|
51
|
+
stub_request(:delete, "#{Rundeck.endpoint}#{path}")
|
52
|
+
.with(headers: { 'Accept' => "application/#{accept}",
|
53
|
+
'X-Rundeck-Auth-Token' => Rundeck.api_token })
|
54
|
+
.to_return(body: load_fixture(fixture))
|
55
|
+
end
|
56
|
+
|
57
|
+
def a_delete(path, accept = 'xml')
|
58
|
+
a_request(:delete, "#{Rundeck.endpoint}#{path}")
|
59
|
+
.with(headers: { 'Accept' => "application/#{accept}",
|
60
|
+
'X-Rundeck-Auth-Token' => Rundeck.api_token })
|
61
|
+
end
|
62
|
+
|
63
|
+
def job_yaml
|
64
|
+
<<-EOS
|
65
|
+
- project: anvils
|
66
|
+
loglevel: INFO
|
67
|
+
sequence:
|
68
|
+
keepgoing: true
|
69
|
+
strategy: node-first
|
70
|
+
commands:
|
71
|
+
- exec: echo 'hello world'
|
72
|
+
description: Check the status of anvils
|
73
|
+
name: My YAML Job
|
74
|
+
group: anvils
|
75
|
+
EOS
|
76
|
+
end
|
77
|
+
|
78
|
+
def job_xml
|
79
|
+
<<-EOS
|
80
|
+
<joblist>
|
81
|
+
<job>
|
82
|
+
<loglevel>INFO</loglevel>
|
83
|
+
<sequence keepgoing='true' strategy='node-first'>
|
84
|
+
<command>
|
85
|
+
<exec>echo 'hello world'</exec>
|
86
|
+
</command>
|
87
|
+
</sequence>
|
88
|
+
<description>Check the status of anvils</description>
|
89
|
+
<name>My XML Job</name>
|
90
|
+
<context>
|
91
|
+
<project>anvils</project>
|
92
|
+
</context>
|
93
|
+
<group>anvils</group>
|
94
|
+
</job>
|
95
|
+
</joblist>
|
96
|
+
EOS
|
97
|
+
end
|
98
|
+
|
99
|
+
def private_key
|
100
|
+
<<-EOS
|
101
|
+
-----BEGIN RSA PRIVATE KEY-----
|
102
|
+
MIIEpQIBAAKCAQEAt6G5YJC4x4UiRQB08dsLavDM92HVnQINs4fiAUgZsPICTAhb
|
103
|
+
Agn7XRXU+P8fX1aReRi2p4LHSItdl5hjT2WkNCH1Niw9fpltiNhnlOlrpoBt/eWM
|
104
|
+
dd2rJtC00jQ4pDv+1edw9pc+Re7fDQYD4HSmhm/expQLAgu+LSFCdL7Fj05OAN7D
|
105
|
+
0RxwFfQ3wrZe5qGt4tr5objA2wXwGEnMpFqFGGI9+uqSKnuw1aUgVf7iRvec1fJT
|
106
|
+
/hmFSastozEnBJmBB/mQoFvjOqz+oSiXmXiwvoHfw9B8AdbxKpmi4+AfSTmJqYT1
|
107
|
+
j4FPO6JJf78Qx0Uh7eWQcC7uxhLa5XpHr6C/qQIDAQABAoIBAAR18ULfQR3XphV3
|
108
|
+
BWA6qfRXFSONRNsjiaGq01qknbsmpdei/FL4WxrPxPSnfeOa/r2qVAWNr7mbaRKd
|
109
|
+
qQvstChwCrzeJkBFCdwhJaMAaJUK2aEpSlgyok23FC1nB1k1++LGVIAo/GJGgzSV
|
110
|
+
yNJTAxiQ7yBzyDCsiFogTLT5TWNFwSPOSWTbUQIMW0BGVnVlecB/VIJN1zrBZSAe
|
111
|
+
T/MZenbjybkuTuXWod09YS9Yvx17eG/21I11AwBcmc5MlAn9nkZbydQs6kbLd9hx
|
112
|
+
KT7d9c42ocrTVrmMBcF7S5W8BdMp90snNc7sG99sQJ4W5BL8a46i4kVf6yURh5dy
|
113
|
+
orDDdAECgYEA4wh/jPEcfW/gP1nE9ydLYvgz7tC6+sWR1I7519W15NFABzoW6cw6
|
114
|
+
wjyWhR61EMir9ylTEc5FPwGgodVFb9ctIE+MMH1JL5XGCvAf5J62Hy+O0QnN2bEp
|
115
|
+
rdSf02Huw+6+6S7VXU50SjazeIU2qJ77ti05ukEe8unG9QNlr+Mk7pkCgYEAzw+e
|
116
|
+
sydIVNdi4IJqiJgcikcaBB8V+CimTC1sPzF3/iDSW0LAWTqhdlZIv8My6O8V85go
|
117
|
+
LjNv2+4ODo3b5wFrDHZ8yFgEzMa2SUDz2EgS3MlpaIrfpqzbr8womAaCJr2RYzGZ
|
118
|
+
kh9LmvbDEjXJqsABnW6XG5wOnSYoajp8cztqU5ECgYEA3DHi3AUCN9rpKShc88WF
|
119
|
+
xXCrleWWZCB5ByrAwYiCSXJ14kyB6rJtDvSKnIQi4ytuNmM7MVrZKHngnPVnykht
|
120
|
+
eRgOBP2OnPtrwDITDL6uLuMGZlJW99tvbCx78x3Z4OjO+wS0ZjHwcgZJ3Qt+7t57
|
121
|
+
jb6hbbc5WCpLEFoCJyxsJokCgYEAyFmv0F/BMD6ccOogFP1CGFZGCRjfFBiZGHqX
|
122
|
+
E+pU1bOCd0V2gqAlnTBOAibo+tRkZCilMFca9C46scB3t+T6ZLu9b8kjE9VuiiDs
|
123
|
+
ESlj/vhwIvTFBSybAVZFLRyXEM86f0V9+BKKAG6mP9eFw883gNKCKffteAd08ZyX
|
124
|
+
0JP8BNECgYEAprEkF/YNMl+Se5V2Rz8jrpstlbwrF3M3QHa6UflmOcnQcLHXKU8B
|
125
|
+
PZdVDER5VyhZdTpTb5wHY3ZDkig3YV0xxdS6uhdG34Gj0M2G2DFMGAQeWEgfJDas
|
126
|
+
c2kwvmY7JQlTx0zrcpGcnFiW2kNyHToI7QiE/Q02BqIdHjr6lrSpu18=
|
127
|
+
-----END RSA PRIVATE KEY-----
|
128
|
+
EOS
|
129
|
+
end
|
130
|
+
|
131
|
+
def public_key
|
132
|
+
<<-EOS
|
133
|
+
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC3oblgkLjHhSJFAHTx2wtq8Mz3YdWdAg2zh+IBSBmw8gJMCFsCCftdFdT4/x9fVpF5GLangsdIi12XmGNPZaQ0IfU2LD1+mW2I2GeU6WumgG395Yx13asm0LTSNDikO/7V53D2lz5F7t8NBgPgdKaGb97GlAsCC74tIUJ0vsWPTk4A3sPRHHAV9DfCtl7moa3i2vmhuMDbBfAYScykWoUYYj366pIqe7DVpSBV/uJG95zV8lP+GYVJqy2jMScEmYEH+ZCgW+M6rP6hKJeZeLC+gd/D0HwB1vEqmaLj4B9JOYmphPWPgU87okl/vxDHRSHt5ZBwLu7GEtrlekevoL+p test@localhost
|
134
|
+
EOS
|
135
|
+
end
|
136
|
+
end
|
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: 0.0.3
|
4
|
+
version: 0.0.3
|
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: 2014-
|
11
|
+
date: 2014-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -164,6 +164,20 @@ dependencies:
|
|
164
164
|
- - '>='
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: vcr
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
167
181
|
description: Ruby client for Rundeck API
|
168
182
|
email:
|
169
183
|
- drew.blessing@mac.com
|
@@ -184,33 +198,68 @@ files:
|
|
184
198
|
- lib/rundeck.rb
|
185
199
|
- lib/rundeck/api.rb
|
186
200
|
- lib/rundeck/client.rb
|
187
|
-
- lib/rundeck/client/
|
188
|
-
- lib/rundeck/client/
|
201
|
+
- lib/rundeck/client/execution.rb
|
202
|
+
- lib/rundeck/client/job.rb
|
203
|
+
- lib/rundeck/client/key.rb
|
189
204
|
- lib/rundeck/configuration.rb
|
190
205
|
- lib/rundeck/error.rb
|
191
206
|
- lib/rundeck/objectified_hash.rb
|
192
207
|
- lib/rundeck/request.rb
|
193
208
|
- lib/rundeck/version.rb
|
194
209
|
- rundeck.gemspec
|
195
|
-
- spec/
|
196
|
-
- spec/
|
197
|
-
- spec/
|
198
|
-
- spec/
|
199
|
-
- spec/
|
200
|
-
- spec/
|
201
|
-
- spec/
|
202
|
-
- spec/
|
203
|
-
- spec/
|
204
|
-
- spec/
|
205
|
-
- spec/
|
206
|
-
- spec/
|
207
|
-
- spec/
|
208
|
-
- spec/
|
210
|
+
- spec/cassettes/12/abort_execution_not_running.yml
|
211
|
+
- spec/cassettes/12/abort_execution_valid.yml
|
212
|
+
- spec/cassettes/12/abort_executions_invalid.yml
|
213
|
+
- spec/cassettes/12/bulk_delete_executions_invalid.yml
|
214
|
+
- spec/cassettes/12/bulk_delete_executions_valid.yml
|
215
|
+
- spec/cassettes/12/create_private_key.yml
|
216
|
+
- spec/cassettes/12/create_public_key.yml
|
217
|
+
- spec/cassettes/12/delete_execution_invalid.yml
|
218
|
+
- spec/cassettes/12/delete_execution_valid.yml
|
219
|
+
- spec/cassettes/12/delete_job_executions.yml
|
220
|
+
- spec/cassettes/12/delete_job_executions_invalid.yml
|
221
|
+
- spec/cassettes/12/delete_job_invalid.yml
|
222
|
+
- spec/cassettes/12/delete_job_valid.yml
|
223
|
+
- spec/cassettes/12/delete_key_invalid.yml
|
224
|
+
- spec/cassettes/12/delete_key_private.yml
|
225
|
+
- spec/cassettes/12/delete_key_public.yml
|
226
|
+
- spec/cassettes/12/execution_invalid.yml
|
227
|
+
- spec/cassettes/12/execution_query_invalid.yml
|
228
|
+
- spec/cassettes/12/execution_query_no_params_valid.yml
|
229
|
+
- spec/cassettes/12/execution_state_invalid.yml
|
230
|
+
- spec/cassettes/12/execution_state_valid.yml
|
231
|
+
- spec/cassettes/12/execution_valid.yml
|
232
|
+
- spec/cassettes/12/export_job_xml.yml
|
233
|
+
- spec/cassettes/12/export_job_yaml.yml
|
234
|
+
- spec/cassettes/12/import_job_xml.yml
|
235
|
+
- spec/cassettes/12/import_job_yaml.yml
|
236
|
+
- spec/cassettes/12/job.yml
|
237
|
+
- spec/cassettes/12/job_executions.yml
|
238
|
+
- spec/cassettes/12/jobs.yml
|
239
|
+
- spec/cassettes/12/key_contents_direct.yml
|
240
|
+
- spec/cassettes/12/key_contents_multiple.yml
|
241
|
+
- spec/cassettes/12/key_contents_private.yml
|
242
|
+
- spec/cassettes/12/key_metadata_direct.yml
|
243
|
+
- spec/cassettes/12/key_metadata_multiple.yml
|
244
|
+
- spec/cassettes/12/keys_direct.yml
|
245
|
+
- spec/cassettes/12/keys_multiple.yml
|
246
|
+
- spec/cassettes/12/keys_none.yml
|
247
|
+
- spec/cassettes/12/run_job_invalid.yml
|
248
|
+
- spec/cassettes/12/run_job_valid.yml
|
249
|
+
- spec/cassettes/12/running_jobs_multiple.yml
|
250
|
+
- spec/cassettes/12/running_jobs_none.yml
|
251
|
+
- spec/cassettes/12/running_jobs_single.yml
|
252
|
+
- spec/cassettes/12/update_private_key.yml
|
253
|
+
- spec/cassettes/12/update_public_key.yml
|
254
|
+
- spec/rundeck/client/execution_spec.rb
|
255
|
+
- spec/rundeck/client/job_spec.rb
|
256
|
+
- spec/rundeck/client/key_spec.rb
|
209
257
|
- spec/rundeck/client_spec.rb
|
210
258
|
- spec/rundeck/objectified_hash_spec.rb
|
211
259
|
- spec/rundeck/request_spec.rb
|
212
260
|
- spec/rundeck_spec.rb
|
213
261
|
- spec/spec_helper.rb
|
262
|
+
- spec/support/helpers.rb
|
214
263
|
homepage: http://dblessing.github.io/rundeck-ruby
|
215
264
|
licenses:
|
216
265
|
- BSD-2-Clause
|
@@ -223,12 +272,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
223
272
|
requirements:
|
224
273
|
- - '>='
|
225
274
|
- !ruby/object:Gem::Version
|
226
|
-
version: 1.
|
275
|
+
version: 1.9.3
|
227
276
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
228
277
|
requirements:
|
229
|
-
- - '
|
278
|
+
- - '>='
|
230
279
|
- !ruby/object:Gem::Version
|
231
|
-
version:
|
280
|
+
version: '0'
|
232
281
|
requirements: []
|
233
282
|
rubyforge_project:
|
234
283
|
rubygems_version: 2.0.3
|
@@ -236,23 +285,57 @@ signing_key:
|
|
236
285
|
specification_version: 4
|
237
286
|
summary: A ruby wrapper for the Rundeck API
|
238
287
|
test_files:
|
239
|
-
- spec/
|
240
|
-
- spec/
|
241
|
-
- spec/
|
242
|
-
- spec/
|
243
|
-
- spec/
|
244
|
-
- spec/
|
245
|
-
- spec/
|
246
|
-
- spec/
|
247
|
-
- spec/
|
248
|
-
- spec/
|
249
|
-
- spec/
|
250
|
-
- spec/
|
251
|
-
- spec/
|
252
|
-
- spec/
|
288
|
+
- spec/cassettes/12/abort_execution_not_running.yml
|
289
|
+
- spec/cassettes/12/abort_execution_valid.yml
|
290
|
+
- spec/cassettes/12/abort_executions_invalid.yml
|
291
|
+
- spec/cassettes/12/bulk_delete_executions_invalid.yml
|
292
|
+
- spec/cassettes/12/bulk_delete_executions_valid.yml
|
293
|
+
- spec/cassettes/12/create_private_key.yml
|
294
|
+
- spec/cassettes/12/create_public_key.yml
|
295
|
+
- spec/cassettes/12/delete_execution_invalid.yml
|
296
|
+
- spec/cassettes/12/delete_execution_valid.yml
|
297
|
+
- spec/cassettes/12/delete_job_executions.yml
|
298
|
+
- spec/cassettes/12/delete_job_executions_invalid.yml
|
299
|
+
- spec/cassettes/12/delete_job_invalid.yml
|
300
|
+
- spec/cassettes/12/delete_job_valid.yml
|
301
|
+
- spec/cassettes/12/delete_key_invalid.yml
|
302
|
+
- spec/cassettes/12/delete_key_private.yml
|
303
|
+
- spec/cassettes/12/delete_key_public.yml
|
304
|
+
- spec/cassettes/12/execution_invalid.yml
|
305
|
+
- spec/cassettes/12/execution_query_invalid.yml
|
306
|
+
- spec/cassettes/12/execution_query_no_params_valid.yml
|
307
|
+
- spec/cassettes/12/execution_state_invalid.yml
|
308
|
+
- spec/cassettes/12/execution_state_valid.yml
|
309
|
+
- spec/cassettes/12/execution_valid.yml
|
310
|
+
- spec/cassettes/12/export_job_xml.yml
|
311
|
+
- spec/cassettes/12/export_job_yaml.yml
|
312
|
+
- spec/cassettes/12/import_job_xml.yml
|
313
|
+
- spec/cassettes/12/import_job_yaml.yml
|
314
|
+
- spec/cassettes/12/job.yml
|
315
|
+
- spec/cassettes/12/job_executions.yml
|
316
|
+
- spec/cassettes/12/jobs.yml
|
317
|
+
- spec/cassettes/12/key_contents_direct.yml
|
318
|
+
- spec/cassettes/12/key_contents_multiple.yml
|
319
|
+
- spec/cassettes/12/key_contents_private.yml
|
320
|
+
- spec/cassettes/12/key_metadata_direct.yml
|
321
|
+
- spec/cassettes/12/key_metadata_multiple.yml
|
322
|
+
- spec/cassettes/12/keys_direct.yml
|
323
|
+
- spec/cassettes/12/keys_multiple.yml
|
324
|
+
- spec/cassettes/12/keys_none.yml
|
325
|
+
- spec/cassettes/12/run_job_invalid.yml
|
326
|
+
- spec/cassettes/12/run_job_valid.yml
|
327
|
+
- spec/cassettes/12/running_jobs_multiple.yml
|
328
|
+
- spec/cassettes/12/running_jobs_none.yml
|
329
|
+
- spec/cassettes/12/running_jobs_single.yml
|
330
|
+
- spec/cassettes/12/update_private_key.yml
|
331
|
+
- spec/cassettes/12/update_public_key.yml
|
332
|
+
- spec/rundeck/client/execution_spec.rb
|
333
|
+
- spec/rundeck/client/job_spec.rb
|
334
|
+
- spec/rundeck/client/key_spec.rb
|
253
335
|
- spec/rundeck/client_spec.rb
|
254
336
|
- spec/rundeck/objectified_hash_spec.rb
|
255
337
|
- spec/rundeck/request_spec.rb
|
256
338
|
- spec/rundeck_spec.rb
|
257
339
|
- spec/spec_helper.rb
|
340
|
+
- spec/support/helpers.rb
|
258
341
|
has_rdoc:
|
data/spec/fixtures/empty.xml
DELETED
File without changes
|
data/spec/fixtures/job.xml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
<joblist>
|
2
|
-
<job>
|
3
|
-
<id>c07518ef-b697-4792-9a59-5b4f08855b67</id>
|
4
|
-
<loglevel>INFO</loglevel>
|
5
|
-
<sequence keepgoing='false' strategy='node-first'>
|
6
|
-
<command>
|
7
|
-
<exec>echo 'Hello world!'</exec>
|
8
|
-
</command>
|
9
|
-
</sequence>
|
10
|
-
<description>Well, Hello World</description>
|
11
|
-
<name>Hello World</name>
|
12
|
-
<context>
|
13
|
-
<project>My_Project</project>
|
14
|
-
</context>
|
15
|
-
<uuid>c07518ef-b697-4792-9a59-5b4f08855b67</uuid>
|
16
|
-
</job>
|
17
|
-
</joblist>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<result success='true' apiversion='12'>
|
2
|
-
<executions count='2'>
|
3
|
-
<execution id='2' href='http://localhost:4440/execution/follow/2' status='aborted' project='My_Project'>
|
4
|
-
<user>admin</user>
|
5
|
-
<date-started unixtime='1409608790308'>2014-09-01T21:59:50Z</date-started>
|
6
|
-
<date-ended unixtime='1409608832192'>2014-09-01T22:00:32Z</date-ended>
|
7
|
-
<abortedby>admin</abortedby>
|
8
|
-
<job id='c07518ef-b697-4792-9a59-5b4f08855b67'>
|
9
|
-
<name>Job 1</name>
|
10
|
-
<group></group>
|
11
|
-
<project>My_Project</project>
|
12
|
-
<description>test</description>
|
13
|
-
</job>
|
14
|
-
<description>echo 'Hello world'</description>
|
15
|
-
<argstring />
|
16
|
-
</execution>
|
17
|
-
<execution id='1' href='http://dc-mb-am-009.bucklehq.com:4440/execution/follow/1' status='success' project='My_Project'>
|
18
|
-
<user>admin</user>
|
19
|
-
<date-started unixtime='1409608610264'>2014-09-01T21:56:50Z</date-started>
|
20
|
-
<date-ended unixtime='1409608781159'>2014-09-01T21:59:41Z</date-ended>
|
21
|
-
<job id='c07518ef-b697-4792-9a59-5b4f08855b67'>
|
22
|
-
<name>Job 1</name>
|
23
|
-
<group></group>
|
24
|
-
<project>My_Project</project>
|
25
|
-
<description>Awesome job 1</description>
|
26
|
-
</job>
|
27
|
-
<description>echo 'Hello world'</description>
|
28
|
-
<argstring />
|
29
|
-
</execution>
|
30
|
-
</executions>
|
31
|
-
</result>
|
data/spec/fixtures/job_run.xml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
<result success='true' apiversion='12'>
|
2
|
-
<executions count='1'>
|
3
|
-
<execution id='4' href='http://localhost:4440/execution/follow/4' status='running' project='My_Project'>
|
4
|
-
<user>admin</user>
|
5
|
-
<date-started unixtime='1411238010218'>2014-09-20T18:33:30Z</date-started>
|
6
|
-
<job id='2fe8bfbb-d12e-49b5-859b-7472cf1ed3a0' averageDuration='1003'>
|
7
|
-
<name>My_Job</name>
|
8
|
-
<group></group>
|
9
|
-
<project>My_Project</project>
|
10
|
-
<description>This is an awesome job</description>
|
11
|
-
</job>
|
12
|
-
<description>echo "foo"</description>
|
13
|
-
<argstring />
|
14
|
-
</execution>
|
15
|
-
</executions>
|
16
|
-
</result>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<result>
|
2
|
-
<succeeded count="1">
|
3
|
-
<job>
|
4
|
-
<id>c07518ef-b697-4792-9a59-5b4f08855b67</id>
|
5
|
-
<loglevel>INFO</loglevel>
|
6
|
-
<sequence keepgoing='false' strategy='node-first'>
|
7
|
-
<command>
|
8
|
-
<exec>echo 'Hello world!'</exec>
|
9
|
-
</command>
|
10
|
-
</sequence>
|
11
|
-
<description>Well, Hello World</description>
|
12
|
-
<name>Hello World</name>
|
13
|
-
<context>
|
14
|
-
<project>My_Project</project>
|
15
|
-
</context>
|
16
|
-
<uuid>c07518ef-b697-4792-9a59-5b4f08855b67</uuid>
|
17
|
-
</job>
|
18
|
-
</succeeded>
|
19
|
-
<failed count="0">
|
20
|
-
</failed>
|
21
|
-
<skipped count="0">
|
22
|
-
</skipped>
|
23
|
-
</result>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<jobs count='2'>
|
2
|
-
<job id='c07518ef-b697-4792-9a59-5b4f08855b67'>
|
3
|
-
<name>Job 1</name>
|
4
|
-
<group />
|
5
|
-
<project>My_Project</project>
|
6
|
-
<description>My first super awesome project</description>
|
7
|
-
</job>
|
8
|
-
<job id='9c922902-faa6-49cf-aa8d-4de3f5e1d3e1'>
|
9
|
-
<name>Job 2</name>
|
10
|
-
<group>My_Group</group>
|
11
|
-
<project>My_Project</project>
|
12
|
-
<description>My second project</description>
|
13
|
-
</job>
|
14
|
-
</jobs>
|