teamcity_ruby 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (20) hide show
  1. data/lib/teamcity_ruby/agent_pool.rb +39 -0
  2. data/lib/teamcity_ruby/version.rb +1 -1
  3. data/lib/teamcity_ruby.rb +1 -0
  4. data/spec/cassettes/TeamcityRuby_AgentPool/creates_an_agent_pool.yml +299 -0
  5. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_step_added_to_it.yml +107 -107
  6. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_trigger_added_to_it.yml +95 -95
  7. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_vcs_root_attached_to_it_with_specific_checkout_rules.yml +109 -109
  8. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_settings_definitions.yml +107 -107
  9. data/spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml +83 -83
  10. data/spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml +103 -169
  11. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml +96 -96
  12. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_with_a_parent_project.yml +49 -49
  13. data/spec/cassettes/TeamcityRuby_Project/destroys_a_specific_project.yml +69 -69
  14. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_id_locator.yml +69 -69
  15. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_name_locator.yml +59 -59
  16. data/spec/cassettes/TeamcityRuby_Project/lists_all_projects_including_root_built_in_on_TeamCity_.yml +71 -71
  17. data/spec/cassettes/TeamcityRuby_VcsRoot/lists_all_vcs_roots.yml +51 -51
  18. data/spec/spec_helper.rb +6 -0
  19. data/spec/teamcity_ruby/agent_pool_spec.rb +25 -0
  20. metadata +8 -3
@@ -1,5 +1,4 @@
1
1
  ---
2
- recorded_with: VCR 2.4.0
3
2
  http_interactions:
4
3
  - request:
5
4
  method: get
@@ -16,28 +15,28 @@ http_interactions:
16
15
  code: 200
17
16
  message: OK
18
17
  headers:
19
- Cache-Control:
20
- - no-cache
21
- - no-store
22
18
  Set-Cookie:
23
19
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
24
- - TCSESSIONID=E1E960CC6710CDDA6C7D152617A7CE9C; Path=/; HttpOnly
20
+ - TCSESSIONID=3BC4A203EAE28CB990B2A7DA6DCE8B03; Path=/; HttpOnly
21
+ Pragma:
22
+ - no-cache
23
+ Content-Type:
24
+ - application/json
25
+ Server:
26
+ - Apache-Coyote/1.1
27
+ Date:
28
+ - Fri, 23 May 2014 07:28:36 GMT
25
29
  Expires:
26
30
  - Thu, 01 Jan 1970 00:00:00 GMT
27
31
  Transfer-Encoding:
28
32
  - chunked
29
- Server:
30
- - Apache-Coyote/1.1
31
- Pragma:
33
+ Cache-Control:
32
34
  - no-cache
33
- Date:
34
- - Fri, 23 May 2014 05:17:08 GMT
35
- Content-Type:
36
- - application/json
35
+ - no-store
37
36
  body:
38
37
  string: "{\"project\":[{\"id\":\"_Root\",\"name\":\"<Root project>\",\"href\":\"/httpAuth/app/rest/projects/id:_Root\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=_Root\"},{\"id\":\"SampleProject\",\"name\":\"Sample Project\",\"href\":\"/httpAuth/app/rest/projects/id:SampleProject\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=SampleProject\",\"parentProjectId\":\"_Root\"}]}"
39
38
  http_version:
40
- recorded_at: Fri, 23 May 2014 05:17:09 GMT
39
+ recorded_at: Fri, 23 May 2014 07:28:37 GMT
41
40
  - request:
42
41
  method: delete
43
42
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:_Root
@@ -53,31 +52,31 @@ http_interactions:
53
52
  code: 403
54
53
  message: Forbidden
55
54
  headers:
56
- Cache-Control:
57
- - no-cache
58
- - no-store
59
55
  Set-Cookie:
60
56
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
61
- - TCSESSIONID=7FF924BD0D659CAB71E209B10E358A50; Path=/; HttpOnly
57
+ - TCSESSIONID=87B51635EFA504BA0025AE807E296459; Path=/; HttpOnly
58
+ Pragma:
59
+ - no-cache
60
+ Content-Type:
61
+ - text/plain
62
+ Server:
63
+ - Apache-Coyote/1.1
64
+ Date:
65
+ - Fri, 23 May 2014 07:28:36 GMT
62
66
  Expires:
63
67
  - Thu, 01 Jan 1970 00:00:00 GMT
64
68
  Transfer-Encoding:
65
69
  - chunked
66
- Server:
67
- - Apache-Coyote/1.1
68
- Pragma:
70
+ Cache-Control:
69
71
  - no-cache
70
- Date:
71
- - Fri, 23 May 2014 05:17:08 GMT
72
- Content-Type:
73
- - text/plain
72
+ - no-store
74
73
  body:
75
74
  string: |-
76
75
  Error has occurred during request processing (Forbidden).
77
76
  Error: jetbrains.buildServer.serverSide.auth.AccessDeniedException: Root project cannot be removed
78
77
  Access denied. Check the user has enough permissions to perform the operation.
79
78
  http_version:
80
- recorded_at: Fri, 23 May 2014 05:17:09 GMT
79
+ recorded_at: Fri, 23 May 2014 07:28:37 GMT
81
80
  - request:
82
81
  method: delete
83
82
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject
@@ -93,24 +92,24 @@ http_interactions:
93
92
  code: 204
94
93
  message: No Content
95
94
  headers:
96
- Cache-Control:
97
- - no-cache
98
- - no-store
99
95
  Set-Cookie:
100
96
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
101
- - TCSESSIONID=0DE0280FFB470CC07E5A64C317730619; Path=/; HttpOnly
102
- Expires:
103
- - Thu, 01 Jan 1970 00:00:00 GMT
104
- Server:
105
- - Apache-Coyote/1.1
97
+ - TCSESSIONID=A99E150CEC6455C3128AEE8A6015FE88; Path=/; HttpOnly
106
98
  Pragma:
107
99
  - no-cache
100
+ Server:
101
+ - Apache-Coyote/1.1
108
102
  Date:
109
- - Fri, 23 May 2014 05:17:08 GMT
103
+ - Fri, 23 May 2014 07:28:36 GMT
104
+ Expires:
105
+ - Thu, 01 Jan 1970 00:00:00 GMT
106
+ Cache-Control:
107
+ - no-cache
108
+ - no-store
110
109
  body:
111
110
  string: ""
112
111
  http_version:
113
- recorded_at: Fri, 23 May 2014 05:17:09 GMT
112
+ recorded_at: Fri, 23 May 2014 07:28:37 GMT
114
113
  - request:
115
114
  method: get
116
115
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
@@ -126,28 +125,28 @@ http_interactions:
126
125
  code: 200
127
126
  message: OK
128
127
  headers:
129
- Cache-Control:
130
- - no-cache
131
- - no-store
132
128
  Set-Cookie:
133
129
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
134
- - TCSESSIONID=CDF97D90D6F55F56EF3B6E0B8C62BA38; Path=/; HttpOnly
130
+ - TCSESSIONID=C8FB723BC05CB4EE3B6D55E0236D6F70; Path=/; HttpOnly
131
+ Pragma:
132
+ - no-cache
133
+ Content-Type:
134
+ - application/json
135
+ Server:
136
+ - Apache-Coyote/1.1
137
+ Date:
138
+ - Fri, 23 May 2014 07:28:36 GMT
135
139
  Expires:
136
140
  - Thu, 01 Jan 1970 00:00:00 GMT
137
141
  Transfer-Encoding:
138
142
  - chunked
139
- Server:
140
- - Apache-Coyote/1.1
141
- Pragma:
143
+ Cache-Control:
142
144
  - no-cache
143
- Date:
144
- - Fri, 23 May 2014 05:17:08 GMT
145
- Content-Type:
146
- - application/json
145
+ - no-store
147
146
  body:
148
147
  string: "{\"count\":1,\"vcs-root\":[{\"id\":\"Root_SampleVcsRoot\",\"name\":\"Sample VCS Root\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_SampleVcsRoot\"}]}"
149
148
  http_version:
150
- recorded_at: Fri, 23 May 2014 05:17:09 GMT
149
+ recorded_at: Fri, 23 May 2014 07:28:37 GMT
151
150
  - request:
152
151
  method: delete
153
152
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots/id:Root_SampleVcsRoot
@@ -163,24 +162,24 @@ http_interactions:
163
162
  code: 204
164
163
  message: No Content
165
164
  headers:
166
- Cache-Control:
167
- - no-cache
168
- - no-store
169
165
  Set-Cookie:
170
166
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
171
- - TCSESSIONID=39075F50C8913764E7B7FCD7C3BECA5F; Path=/; HttpOnly
172
- Expires:
173
- - Thu, 01 Jan 1970 00:00:00 GMT
174
- Server:
175
- - Apache-Coyote/1.1
167
+ - TCSESSIONID=B1D9A292576EC4F0BE7EDB4558FD387C; Path=/; HttpOnly
176
168
  Pragma:
177
169
  - no-cache
170
+ Server:
171
+ - Apache-Coyote/1.1
178
172
  Date:
179
- - Fri, 23 May 2014 05:17:08 GMT
173
+ - Fri, 23 May 2014 07:28:36 GMT
174
+ Expires:
175
+ - Thu, 01 Jan 1970 00:00:00 GMT
176
+ Cache-Control:
177
+ - no-cache
178
+ - no-store
180
179
  body:
181
180
  string: ""
182
181
  http_version:
183
- recorded_at: Fri, 23 May 2014 05:17:09 GMT
182
+ recorded_at: Fri, 23 May 2014 07:28:37 GMT
184
183
  - request:
185
184
  method: post
186
185
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
@@ -196,28 +195,28 @@ http_interactions:
196
195
  code: 200
197
196
  message: OK
198
197
  headers:
199
- Cache-Control:
200
- - no-cache
201
- - no-store
202
198
  Set-Cookie:
203
199
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
204
- - TCSESSIONID=976964A7D33A7C62AE428032AC43E9BC; Path=/; HttpOnly
200
+ - TCSESSIONID=73E6A92395144703EBD26F84D064D2DE; Path=/; HttpOnly
201
+ Pragma:
202
+ - no-cache
203
+ Content-Type:
204
+ - application/json
205
+ Server:
206
+ - Apache-Coyote/1.1
207
+ Date:
208
+ - Fri, 23 May 2014 07:28:36 GMT
205
209
  Expires:
206
210
  - Thu, 01 Jan 1970 00:00:00 GMT
207
211
  Transfer-Encoding:
208
212
  - chunked
209
- Server:
210
- - Apache-Coyote/1.1
211
- Pragma:
213
+ Cache-Control:
212
214
  - no-cache
213
- Date:
214
- - Fri, 23 May 2014 05:17:08 GMT
215
- Content-Type:
216
- - application/json
215
+ - no-store
217
216
  body:
218
217
  string: "{\"id\":\"SampleProject\",\"name\":\"Sample Project\",\"href\":\"/httpAuth/app/rest/projects/id:SampleProject\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=SampleProject\",\"parentProjectId\":\"_Root\"}"
219
218
  http_version:
220
- recorded_at: Fri, 23 May 2014 05:17:09 GMT
219
+ recorded_at: Fri, 23 May 2014 07:28:37 GMT
221
220
  - request:
222
221
  method: post
223
222
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
@@ -233,28 +232,28 @@ http_interactions:
233
232
  code: 200
234
233
  message: OK
235
234
  headers:
236
- Cache-Control:
237
- - no-cache
238
- - no-store
239
235
  Set-Cookie:
240
236
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
241
- - TCSESSIONID=ECF102B9B4167DD5EBF4C088CA99ABCA; Path=/; HttpOnly
237
+ - TCSESSIONID=E5E1429674C7485F4D0E858538F5FC9A; Path=/; HttpOnly
238
+ Pragma:
239
+ - no-cache
240
+ Content-Type:
241
+ - application/json
242
+ Server:
243
+ - Apache-Coyote/1.1
244
+ Date:
245
+ - Fri, 23 May 2014 07:28:36 GMT
242
246
  Expires:
243
247
  - Thu, 01 Jan 1970 00:00:00 GMT
244
248
  Transfer-Encoding:
245
249
  - chunked
246
- Server:
247
- - Apache-Coyote/1.1
248
- Pragma:
250
+ Cache-Control:
249
251
  - no-cache
250
- Date:
251
- - Fri, 23 May 2014 05:17:08 GMT
252
- Content-Type:
253
- - application/json
252
+ - no-store
254
253
  body:
255
254
  string: "{\"id\":\"SampleProject_SampleBuildConfiguration\",\"name\":\"Sample Build Configuration\",\"href\":\"/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration\",\"webUrl\":\"http://localhost:8111/viewType.html?buildTypeId=SampleProject_SampleBuildConfiguration\",\"paused\":false,\"project\":{\"id\":\"SampleProject\",\"name\":\"Sample Project\",\"href\":\"/httpAuth/app/rest/projects/id:SampleProject\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=SampleProject\",\"parentProjectId\":\"_Root\"},\"builds\":{\"href\":\"/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/builds/\"},\"vcs-root-entries\":{\"vcs-root-entry\":[]},\"settings\":{\"property\":[{\"name\":\"allowExternalStatus\",\"value\":\"false\"},{\"name\":\"artifactRules\",\"value\":\"\"},{\"name\":\"buildNumberCounter\",\"value\":\"1\"},{\"name\":\"buildNumberPattern\",\"value\":\"%build.counter%\"},{\"name\":\"checkoutDirectory\"},{\"name\":\"checkoutMode\",\"value\":\"ON_SERVER\"},{\"name\":\"cleanBuild\",\"value\":\"false\"},{\"name\":\"enableHangingBuildsDetection\",\"value\":\"true\"},{\"name\":\"executionTimeoutMin\",\"value\":\"0\"},{\"name\":\"maximumNumberOfBuilds\",\"value\":\"0\"},{\"name\":\"shouldFailBuildIfTestsFailed\",\"value\":\"true\"},{\"name\":\"shouldFailBuildOnAnyErrorMessage\",\"value\":\"false\"},{\"name\":\"shouldFailBuildOnBadExitCode\",\"value\":\"true\"},{\"name\":\"shouldFailBuildOnOOMEOrCrash\",\"value\":\"true\"},{\"name\":\"showDependenciesChanges\",\"value\":\"false\"},{\"name\":\"vcsLabelingBranchFilter\",\"value\":\"+:<default>\"}]},\"parameters\":{\"property\":[]},\"steps\":{\"step\":[]},\"features\":{\"feature\":[]},\"triggers\":{\"trigger\":[]},\"snapshot-dependencies\":{\"snapshot-dependency\":[]},\"artifact-dependencies\":{\"artifact-dependency\":[]},\"agent-requirements\":{\"agent-requirement\":[]}}"
256
255
  http_version:
257
- recorded_at: Fri, 23 May 2014 05:17:09 GMT
256
+ recorded_at: Fri, 23 May 2014 07:28:37 GMT
258
257
  - request:
259
258
  method: post
260
259
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/steps
@@ -270,28 +269,28 @@ http_interactions:
270
269
  code: 200
271
270
  message: OK
272
271
  headers:
273
- Cache-Control:
274
- - no-cache
275
- - no-store
276
272
  Set-Cookie:
277
273
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
278
- - TCSESSIONID=CA3D08DBAC75FBD2BEED86D58D5A1F95; Path=/; HttpOnly
274
+ - TCSESSIONID=D911D1606BF27ECF012623092D58A8A9; Path=/; HttpOnly
275
+ Pragma:
276
+ - no-cache
277
+ Content-Type:
278
+ - application/json
279
+ Server:
280
+ - Apache-Coyote/1.1
281
+ Date:
282
+ - Fri, 23 May 2014 07:28:36 GMT
279
283
  Expires:
280
284
  - Thu, 01 Jan 1970 00:00:00 GMT
281
285
  Transfer-Encoding:
282
286
  - chunked
283
- Server:
284
- - Apache-Coyote/1.1
285
- Pragma:
287
+ Cache-Control:
286
288
  - no-cache
287
- Date:
288
- - Fri, 23 May 2014 05:17:08 GMT
289
- Content-Type:
290
- - application/json
289
+ - no-store
291
290
  body:
292
- string: "{\"id\":\"RUNNER_47\",\"name\":\"Sample Step\",\"type\":\"Maven\",\"properties\":{\"property\":[{\"name\":\"goals\",\"value\":\"verify\"}]}}"
291
+ string: "{\"id\":\"RUNNER_49\",\"name\":\"Sample Step\",\"type\":\"Maven\",\"properties\":{\"property\":[{\"name\":\"goals\",\"value\":\"verify\"}]}}"
293
292
  http_version:
294
- recorded_at: Fri, 23 May 2014 05:17:09 GMT
293
+ recorded_at: Fri, 23 May 2014 07:28:37 GMT
295
294
  - request:
296
295
  method: get
297
296
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/steps
@@ -307,25 +306,26 @@ http_interactions:
307
306
  code: 200
308
307
  message: OK
309
308
  headers:
310
- Cache-Control:
311
- - no-cache
312
- - no-store
313
309
  Set-Cookie:
314
310
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
315
- - TCSESSIONID=F5C6B7778E6B2D10973D8A8E78CE327F; Path=/; HttpOnly
311
+ - TCSESSIONID=B82FE7F7075485AE5EEA8AE5D3F6D6E0; Path=/; HttpOnly
312
+ Pragma:
313
+ - no-cache
314
+ Content-Type:
315
+ - application/json
316
+ Server:
317
+ - Apache-Coyote/1.1
318
+ Date:
319
+ - Fri, 23 May 2014 07:28:36 GMT
316
320
  Expires:
317
321
  - Thu, 01 Jan 1970 00:00:00 GMT
318
322
  Transfer-Encoding:
319
323
  - chunked
320
- Server:
321
- - Apache-Coyote/1.1
322
- Pragma:
324
+ Cache-Control:
323
325
  - no-cache
324
- Date:
325
- - Fri, 23 May 2014 05:17:08 GMT
326
- Content-Type:
327
- - application/json
326
+ - no-store
328
327
  body:
329
- string: "{\"step\":[{\"id\":\"RUNNER_47\",\"name\":\"Sample Step\",\"type\":\"Maven\",\"properties\":{\"property\":[{\"name\":\"goals\",\"value\":\"verify\"}]}}]}"
328
+ string: "{\"step\":[{\"id\":\"RUNNER_49\",\"name\":\"Sample Step\",\"type\":\"Maven\",\"properties\":{\"property\":[{\"name\":\"goals\",\"value\":\"verify\"}]}}]}"
330
329
  http_version:
331
- recorded_at: Fri, 23 May 2014 05:17:09 GMT
330
+ recorded_at: Fri, 23 May 2014 07:28:37 GMT
331
+ recorded_with: VCR 2.4.0