teamcity_ruby 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. data/lib/teamcity_ruby/vcs_root.rb +10 -4
  2. data/lib/teamcity_ruby/version.rb +1 -1
  3. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_step_added_to_it.yml +103 -103
  4. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_trigger_added_to_it.yml +93 -93
  5. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_vcs_root_attached_to_it_with_specific_checkout_rules.yml +106 -106
  6. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_settings_definitions.yml +104 -104
  7. data/spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml +80 -80
  8. data/spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml +116 -116
  9. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml +93 -93
  10. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_with_a_parent_project.yml +48 -48
  11. data/spec/cassettes/TeamcityRuby_Project/destroys_a_specific_project.yml +64 -64
  12. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_id_locator.yml +64 -64
  13. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_name_locator.yml +56 -56
  14. data/spec/cassettes/TeamcityRuby_Project/lists_all_projects_including_root_built_in_on_TeamCity_.yml +68 -68
  15. data/spec/cassettes/TeamcityRuby_VcsRoot/lists_all_vcs_roots.yml +50 -50
  16. data/spec/teamcity_ruby/vcs_root_spec.rb +21 -0
  17. metadata +3 -3
@@ -16,28 +16,28 @@ http_interactions:
16
16
  code: 200
17
17
  message: OK
18
18
  headers:
19
- Date:
20
- - Fri, 23 May 2014 04:53:05 GMT
21
- Server:
22
- - Apache-Coyote/1.1
23
19
  Cache-Control:
24
20
  - no-cache
25
21
  - no-store
26
- Pragma:
27
- - no-cache
28
- Transfer-Encoding:
29
- - chunked
30
- Content-Type:
31
- - application/json
32
22
  Set-Cookie:
33
23
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
34
- - TCSESSIONID=61C5A04873EBB4E2D15762000661E478; Path=/; HttpOnly
24
+ - TCSESSIONID=D62C33084B56BE3CFA36C0B509FC4A23; Path=/; HttpOnly
35
25
  Expires:
36
26
  - Thu, 01 Jan 1970 00:00:00 GMT
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Server:
30
+ - Apache-Coyote/1.1
31
+ Pragma:
32
+ - no-cache
33
+ Date:
34
+ - Fri, 23 May 2014 05:17:08 GMT
35
+ Content-Type:
36
+ - application/json
37
37
  body:
38
38
  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
39
  http_version:
40
- recorded_at: Fri, 23 May 2014 04:53:06 GMT
40
+ recorded_at: Fri, 23 May 2014 05:17:08 GMT
41
41
  - request:
42
42
  method: delete
43
43
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:_Root
@@ -53,31 +53,31 @@ http_interactions:
53
53
  code: 403
54
54
  message: Forbidden
55
55
  headers:
56
- Date:
57
- - Fri, 23 May 2014 04:53:05 GMT
58
- Server:
59
- - Apache-Coyote/1.1
60
56
  Cache-Control:
61
57
  - no-cache
62
58
  - no-store
63
- Pragma:
64
- - no-cache
65
- Transfer-Encoding:
66
- - chunked
67
- Content-Type:
68
- - text/plain
69
59
  Set-Cookie:
70
60
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
71
- - TCSESSIONID=3814D64B54278B5FD80688A41AC6528C; Path=/; HttpOnly
61
+ - TCSESSIONID=9156522297A2F05C66816C7918EC3C0E; Path=/; HttpOnly
72
62
  Expires:
73
63
  - Thu, 01 Jan 1970 00:00:00 GMT
64
+ Transfer-Encoding:
65
+ - chunked
66
+ Server:
67
+ - Apache-Coyote/1.1
68
+ Pragma:
69
+ - no-cache
70
+ Date:
71
+ - Fri, 23 May 2014 05:17:08 GMT
72
+ Content-Type:
73
+ - text/plain
74
74
  body:
75
75
  string: |-
76
76
  Error has occurred during request processing (Forbidden).
77
77
  Error: jetbrains.buildServer.serverSide.auth.AccessDeniedException: Root project cannot be removed
78
78
  Access denied. Check the user has enough permissions to perform the operation.
79
79
  http_version:
80
- recorded_at: Fri, 23 May 2014 04:53:06 GMT
80
+ recorded_at: Fri, 23 May 2014 05:17:08 GMT
81
81
  - request:
82
82
  method: delete
83
83
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject
@@ -93,24 +93,24 @@ http_interactions:
93
93
  code: 204
94
94
  message: No Content
95
95
  headers:
96
- Date:
97
- - Fri, 23 May 2014 04:53:05 GMT
98
- Server:
99
- - Apache-Coyote/1.1
100
96
  Cache-Control:
101
97
  - no-cache
102
98
  - no-store
103
- Pragma:
104
- - no-cache
105
99
  Set-Cookie:
106
100
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
107
- - TCSESSIONID=32111CFA8AE22CBB79385DDB6A32CBFF; Path=/; HttpOnly
101
+ - TCSESSIONID=B47E7E7464C6B27929C28769E3E31F2D; Path=/; HttpOnly
108
102
  Expires:
109
103
  - Thu, 01 Jan 1970 00:00:00 GMT
104
+ Server:
105
+ - Apache-Coyote/1.1
106
+ Pragma:
107
+ - no-cache
108
+ Date:
109
+ - Fri, 23 May 2014 05:17:08 GMT
110
110
  body:
111
111
  string: ""
112
112
  http_version:
113
- recorded_at: Fri, 23 May 2014 04:53:06 GMT
113
+ recorded_at: Fri, 23 May 2014 05:17:08 GMT
114
114
  - request:
115
115
  method: get
116
116
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
@@ -126,28 +126,28 @@ http_interactions:
126
126
  code: 200
127
127
  message: OK
128
128
  headers:
129
- Date:
130
- - Fri, 23 May 2014 04:53:05 GMT
131
- Server:
132
- - Apache-Coyote/1.1
133
129
  Cache-Control:
134
130
  - no-cache
135
131
  - no-store
136
- Pragma:
137
- - no-cache
138
- Transfer-Encoding:
139
- - chunked
140
- Content-Type:
141
- - application/json
142
132
  Set-Cookie:
143
133
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
144
- - TCSESSIONID=01435E3280857A160FBD66A679562DAC; Path=/; HttpOnly
134
+ - TCSESSIONID=3828B620EFE09CDC8449306A20272DC1; Path=/; HttpOnly
145
135
  Expires:
146
136
  - Thu, 01 Jan 1970 00:00:00 GMT
137
+ Transfer-Encoding:
138
+ - chunked
139
+ Server:
140
+ - Apache-Coyote/1.1
141
+ Pragma:
142
+ - no-cache
143
+ Date:
144
+ - Fri, 23 May 2014 05:17:08 GMT
145
+ Content-Type:
146
+ - application/json
147
147
  body:
148
148
  string: "{\"count\":0,\"vcs-root\":[]}"
149
149
  http_version:
150
- recorded_at: Fri, 23 May 2014 04:53:06 GMT
150
+ recorded_at: Fri, 23 May 2014 05:17:08 GMT
151
151
  - request:
152
152
  method: post
153
153
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
@@ -163,33 +163,33 @@ http_interactions:
163
163
  code: 200
164
164
  message: OK
165
165
  headers:
166
- Date:
167
- - Fri, 23 May 2014 04:53:05 GMT
168
- Server:
169
- - Apache-Coyote/1.1
170
166
  Cache-Control:
171
167
  - no-cache
172
168
  - no-store
173
- Pragma:
174
- - no-cache
175
- Transfer-Encoding:
176
- - chunked
177
- Content-Type:
178
- - application/json
179
169
  Set-Cookie:
180
170
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
181
- - TCSESSIONID=63C630E870A3263412D74F5F3226D8FB; Path=/; HttpOnly
171
+ - TCSESSIONID=4C96C089F6C9B5936E1C3AA5C199721F; Path=/; HttpOnly
182
172
  Expires:
183
173
  - Thu, 01 Jan 1970 00:00:00 GMT
174
+ Transfer-Encoding:
175
+ - chunked
176
+ Server:
177
+ - Apache-Coyote/1.1
178
+ Pragma:
179
+ - no-cache
180
+ Date:
181
+ - Fri, 23 May 2014 05:17:08 GMT
182
+ Content-Type:
183
+ - application/json
184
184
  body:
185
185
  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\"}"
186
186
  http_version:
187
- recorded_at: Fri, 23 May 2014 04:53:06 GMT
187
+ recorded_at: Fri, 23 May 2014 05:17:09 GMT
188
188
  - request:
189
189
  method: post
190
190
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
191
191
  body:
192
- string: "{\"projectLocator\":\"id:_Root\",\"properties\":{\"property\":[]},\"vcsName\":\"jetbrains.git\",\"name\":\"Sample VCS Root\"}"
192
+ string: "{\"vcsName\":\"jetbrains.git\",\"name\":\"Sample VCS Root\",\"projectLocator\":\"id:_Root\",\"properties\":{\"property\":[]}}"
193
193
  headers:
194
194
  Accept:
195
195
  - application/json
@@ -200,28 +200,28 @@ http_interactions:
200
200
  code: 200
201
201
  message: OK
202
202
  headers:
203
- Date:
204
- - Fri, 23 May 2014 04:53:05 GMT
205
- Server:
206
- - Apache-Coyote/1.1
207
203
  Cache-Control:
208
204
  - no-cache
209
205
  - no-store
210
- Pragma:
211
- - no-cache
212
- Transfer-Encoding:
213
- - chunked
214
- Content-Type:
215
- - application/json
216
206
  Set-Cookie:
217
207
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
218
- - TCSESSIONID=CB4F9B58EA734EA8199B8CE62BEDC2F4; Path=/; HttpOnly
208
+ - TCSESSIONID=9A2D848F221344D45BA2C822872A24F6; Path=/; HttpOnly
219
209
  Expires:
220
210
  - Thu, 01 Jan 1970 00:00:00 GMT
211
+ Transfer-Encoding:
212
+ - chunked
213
+ Server:
214
+ - Apache-Coyote/1.1
215
+ Pragma:
216
+ - no-cache
217
+ Date:
218
+ - Fri, 23 May 2014 05:17:08 GMT
219
+ Content-Type:
220
+ - application/json
221
221
  body:
222
222
  string: "{\"id\":\"Root_SampleVcsRoot\",\"name\":\"Sample VCS Root\",\"vcsName\":\"jetbrains.git\",\"status\":\"NOT_MONITORED\",\"lastChecked\":\"20140523T040300+0000\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_SampleVcsRoot\",\"project\":{\"id\":\"_Root\",\"name\":\"<Root project>\",\"href\":\"/httpAuth/app/rest/projects/id:_Root\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=_Root\"},\"properties\":{\"property\":[]},\"vcsRootInstances\":{\"href\":\"/httpAuth/app/rest/vcs-root-instances?locator=vcsRoot:(id:Root_SampleVcsRoot)\"}}"
223
223
  http_version:
224
- recorded_at: Fri, 23 May 2014 04:53:06 GMT
224
+ recorded_at: Fri, 23 May 2014 05:17:09 GMT
225
225
  - request:
226
226
  method: post
227
227
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
@@ -237,33 +237,33 @@ http_interactions:
237
237
  code: 200
238
238
  message: OK
239
239
  headers:
240
- Date:
241
- - Fri, 23 May 2014 04:53:05 GMT
242
- Server:
243
- - Apache-Coyote/1.1
244
240
  Cache-Control:
245
241
  - no-cache
246
242
  - no-store
247
- Pragma:
248
- - no-cache
249
- Transfer-Encoding:
250
- - chunked
251
- Content-Type:
252
- - application/json
253
243
  Set-Cookie:
254
244
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
255
- - TCSESSIONID=2AD2C8A3BD8C5A319C79F72BE4B769C2; Path=/; HttpOnly
245
+ - TCSESSIONID=DB69044914CEC6CF226FAC9CE9459943; Path=/; HttpOnly
256
246
  Expires:
257
247
  - Thu, 01 Jan 1970 00:00:00 GMT
248
+ Transfer-Encoding:
249
+ - chunked
250
+ Server:
251
+ - Apache-Coyote/1.1
252
+ Pragma:
253
+ - no-cache
254
+ Date:
255
+ - Fri, 23 May 2014 05:17:08 GMT
256
+ Content-Type:
257
+ - application/json
258
258
  body:
259
259
  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\":[]}}"
260
260
  http_version:
261
- recorded_at: Fri, 23 May 2014 04:53:06 GMT
261
+ recorded_at: Fri, 23 May 2014 05:17:09 GMT
262
262
  - request:
263
263
  method: post
264
264
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/vcs-root-entries
265
265
  body:
266
- string: "{\"vcs-root\":{\"id\":\"Root_SampleVcsRoot\"},\"checkout-rules\":\"+:trunk => .\"}"
266
+ string: "{\"checkout-rules\":\"+:trunk => .\",\"vcs-root\":{\"id\":\"Root_SampleVcsRoot\"}}"
267
267
  headers:
268
268
  Accept:
269
269
  - application/json
@@ -274,28 +274,28 @@ http_interactions:
274
274
  code: 200
275
275
  message: OK
276
276
  headers:
277
- Date:
278
- - Fri, 23 May 2014 04:53:05 GMT
279
- Server:
280
- - Apache-Coyote/1.1
281
277
  Cache-Control:
282
278
  - no-cache
283
279
  - no-store
284
- Pragma:
285
- - no-cache
286
- Transfer-Encoding:
287
- - chunked
288
- Content-Type:
289
- - application/json
290
280
  Set-Cookie:
291
281
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
292
- - TCSESSIONID=3E2AB3A9A15B35F5403C6C05DBAE223F; Path=/; HttpOnly
282
+ - TCSESSIONID=E7F827DEE4C4D3699850BE01DF63C64C; Path=/; HttpOnly
293
283
  Expires:
294
284
  - Thu, 01 Jan 1970 00:00:00 GMT
285
+ Transfer-Encoding:
286
+ - chunked
287
+ Server:
288
+ - Apache-Coyote/1.1
289
+ Pragma:
290
+ - no-cache
291
+ Date:
292
+ - Fri, 23 May 2014 05:17:08 GMT
293
+ Content-Type:
294
+ - application/json
295
295
  body:
296
296
  string: "{\"id\":\"Root_SampleVcsRoot\",\"vcs-root\":{\"id\":\"Root_SampleVcsRoot\",\"name\":\"Sample VCS Root\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_SampleVcsRoot\"},\"checkout-rules\":\"+:trunk => .\"}"
297
297
  http_version:
298
- recorded_at: Fri, 23 May 2014 04:53:06 GMT
298
+ recorded_at: Fri, 23 May 2014 05:17:09 GMT
299
299
  - request:
300
300
  method: get
301
301
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/vcs-root-entries
@@ -311,25 +311,25 @@ http_interactions:
311
311
  code: 200
312
312
  message: OK
313
313
  headers:
314
- Date:
315
- - Fri, 23 May 2014 04:53:05 GMT
316
- Server:
317
- - Apache-Coyote/1.1
318
314
  Cache-Control:
319
315
  - no-cache
320
316
  - no-store
321
- Pragma:
322
- - no-cache
323
- Transfer-Encoding:
324
- - chunked
325
- Content-Type:
326
- - application/json
327
317
  Set-Cookie:
328
318
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
329
- - TCSESSIONID=7A2C9D8466D50C780B1B09B967CFC69D; Path=/; HttpOnly
319
+ - TCSESSIONID=B3A2797D9FF1252175922E5CC5B2EBA6; Path=/; HttpOnly
330
320
  Expires:
331
321
  - Thu, 01 Jan 1970 00:00:00 GMT
322
+ Transfer-Encoding:
323
+ - chunked
324
+ Server:
325
+ - Apache-Coyote/1.1
326
+ Pragma:
327
+ - no-cache
328
+ Date:
329
+ - Fri, 23 May 2014 05:17:08 GMT
330
+ Content-Type:
331
+ - application/json
332
332
  body:
333
333
  string: "{\"vcs-root-entry\":[{\"id\":\"Root_SampleVcsRoot\",\"vcs-root\":{\"id\":\"Root_SampleVcsRoot\",\"name\":\"Sample VCS Root\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_SampleVcsRoot\"},\"checkout-rules\":\"+:trunk => .\"}]}"
334
334
  http_version:
335
- recorded_at: Fri, 23 May 2014 04:53:06 GMT
335
+ recorded_at: Fri, 23 May 2014 05:17:09 GMT