teamcity_ruby 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (19) hide show
  1. data/lib/teamcity_ruby/build_configuration.rb +38 -15
  2. data/lib/teamcity_ruby/version.rb +1 -1
  3. data/lib/teamcity_ruby.rb +2 -0
  4. data/spec/cassettes/TeamcityRuby_BuildConfiguration/{a_existing_build_configuration/can_get_a_build_step_added_to_it.yml → an_existing_build_configuration/has_a_build_step_added_to_it.yml} +103 -103
  5. data/spec/cassettes/TeamcityRuby_BuildConfiguration/{a_existing_build_configuration/can_get_a_build_trigger_added_to_it.yml → an_existing_build_configuration/has_a_build_trigger_added_to_it.yml} +93 -93
  6. data/spec/cassettes/TeamcityRuby_BuildConfiguration/{a_existing_build_configuration/can_get_a_vcs_root_attached_with_specific_checkout_rules.yml → an_existing_build_configuration/has_a_vcs_root_attached_to_it_with_specific_checkout_rules.yml} +106 -106
  7. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_settings_definitions.yml +333 -0
  8. data/spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml +80 -80
  9. data/spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml +116 -116
  10. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml +93 -93
  11. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_with_a_parent_project.yml +48 -48
  12. data/spec/cassettes/TeamcityRuby_Project/destroys_a_specific_project.yml +64 -64
  13. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_id_locator.yml +64 -64
  14. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_name_locator.yml +56 -56
  15. data/spec/cassettes/TeamcityRuby_Project/lists_all_projects_including_root_built_in_on_TeamCity_.yml +68 -68
  16. data/spec/cassettes/TeamcityRuby_VcsRoot/lists_all_vcs_roots.yml +52 -52
  17. data/spec/spec_helper.rb +1 -0
  18. data/spec/teamcity_ruby/build_configuration_spec.rb +12 -4
  19. metadata +12 -10
@@ -17,27 +17,27 @@ http_interactions:
17
17
  message: OK
18
18
  headers:
19
19
  Date:
20
- - Sat, 19 Apr 2014 18:41:01 GMT
21
- Transfer-Encoding:
22
- - chunked
20
+ - Fri, 23 May 2014 04:53:06 GMT
23
21
  Server:
24
22
  - Apache-Coyote/1.1
25
- Set-Cookie:
26
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
27
- - TCSESSIONID=80389BCDF18A95F8B82DA116AB9940D0; Path=/; HttpOnly
28
- Content-Type:
29
- - application/json
23
+ Cache-Control:
24
+ - no-cache
25
+ - no-store
30
26
  Pragma:
31
27
  - no-cache
28
+ Transfer-Encoding:
29
+ - chunked
30
+ Content-Type:
31
+ - application/json
32
+ Set-Cookie:
33
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
34
+ - TCSESSIONID=1072EE8E47D54BD426E6A46ACD4433DA; Path=/; HttpOnly
32
35
  Expires:
33
36
  - Thu, 01 Jan 1970 00:00:00 GMT
34
- Cache-Control:
35
- - no-cache
36
- - no-store
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: Sat, 19 Apr 2014 18:38:16 GMT
40
+ recorded_at: Fri, 23 May 2014 04:53:06 GMT
41
41
  - request:
42
42
  method: delete
43
43
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:_Root
@@ -54,30 +54,30 @@ http_interactions:
54
54
  message: Forbidden
55
55
  headers:
56
56
  Date:
57
- - Sat, 19 Apr 2014 18:41:01 GMT
58
- Transfer-Encoding:
59
- - chunked
57
+ - Fri, 23 May 2014 04:53:06 GMT
60
58
  Server:
61
59
  - Apache-Coyote/1.1
62
- Set-Cookie:
63
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
64
- - TCSESSIONID=06AD4FB476087862E5AF36FE5577835F; Path=/; HttpOnly
65
- Content-Type:
66
- - text/plain
60
+ Cache-Control:
61
+ - no-cache
62
+ - no-store
67
63
  Pragma:
68
64
  - no-cache
65
+ Transfer-Encoding:
66
+ - chunked
67
+ Content-Type:
68
+ - text/plain
69
+ Set-Cookie:
70
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
71
+ - TCSESSIONID=85BA2FAC8F4AB234BA64A18D49C41D6F; Path=/; HttpOnly
69
72
  Expires:
70
73
  - Thu, 01 Jan 1970 00:00:00 GMT
71
- Cache-Control:
72
- - no-cache
73
- - no-store
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: Sat, 19 Apr 2014 18:38:16 GMT
80
+ recorded_at: Fri, 23 May 2014 04:53:06 GMT
81
81
  - request:
82
82
  method: delete
83
83
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject
@@ -94,23 +94,23 @@ http_interactions:
94
94
  message: No Content
95
95
  headers:
96
96
  Date:
97
- - Sat, 19 Apr 2014 18:41:01 GMT
97
+ - Fri, 23 May 2014 04:53:06 GMT
98
98
  Server:
99
99
  - Apache-Coyote/1.1
100
- Set-Cookie:
101
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
102
- - TCSESSIONID=07AC623313A166A5CAB8DFDBE60DC745; Path=/; HttpOnly
100
+ Cache-Control:
101
+ - no-cache
102
+ - no-store
103
103
  Pragma:
104
104
  - no-cache
105
+ Set-Cookie:
106
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
107
+ - TCSESSIONID=E1F7BB2481C8C062C6D5F84E3B8643B0; Path=/; HttpOnly
105
108
  Expires:
106
109
  - Thu, 01 Jan 1970 00:00:00 GMT
107
- Cache-Control:
108
- - no-cache
109
- - no-store
110
110
  body:
111
111
  string: ""
112
112
  http_version:
113
- recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
113
+ recorded_at: Fri, 23 May 2014 04:53:06 GMT
114
114
  - request:
115
115
  method: get
116
116
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
@@ -127,27 +127,27 @@ http_interactions:
127
127
  message: OK
128
128
  headers:
129
129
  Date:
130
- - Sat, 19 Apr 2014 18:41:01 GMT
131
- Transfer-Encoding:
132
- - chunked
130
+ - Fri, 23 May 2014 04:53:06 GMT
133
131
  Server:
134
132
  - Apache-Coyote/1.1
135
- Set-Cookie:
136
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
137
- - TCSESSIONID=ADD4B852AFF09E6BF3032EF9D9526A3C; Path=/; HttpOnly
138
- Content-Type:
139
- - application/json
133
+ Cache-Control:
134
+ - no-cache
135
+ - no-store
140
136
  Pragma:
141
137
  - no-cache
138
+ Transfer-Encoding:
139
+ - chunked
140
+ Content-Type:
141
+ - application/json
142
+ Set-Cookie:
143
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
144
+ - TCSESSIONID=1225EDDDEED1394B2ED7A78F0AF8F3B1; Path=/; HttpOnly
142
145
  Expires:
143
146
  - Thu, 01 Jan 1970 00:00:00 GMT
144
- Cache-Control:
145
- - no-cache
146
- - no-store
147
147
  body:
148
148
  string: "{\"count\":0,\"vcs-root\":[]}"
149
149
  http_version:
150
- recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
150
+ recorded_at: Fri, 23 May 2014 04:53:06 GMT
151
151
  - request:
152
152
  method: post
153
153
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
@@ -164,27 +164,27 @@ http_interactions:
164
164
  message: OK
165
165
  headers:
166
166
  Date:
167
- - Sat, 19 Apr 2014 18:41:01 GMT
168
- Transfer-Encoding:
169
- - chunked
167
+ - Fri, 23 May 2014 04:53:06 GMT
170
168
  Server:
171
169
  - Apache-Coyote/1.1
172
- Set-Cookie:
173
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
174
- - TCSESSIONID=24F133BF859DE7B24F6592699051262E; Path=/; HttpOnly
175
- Content-Type:
176
- - application/json
170
+ Cache-Control:
171
+ - no-cache
172
+ - no-store
177
173
  Pragma:
178
174
  - no-cache
175
+ Transfer-Encoding:
176
+ - chunked
177
+ Content-Type:
178
+ - application/json
179
+ Set-Cookie:
180
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
181
+ - TCSESSIONID=D49EEBC19E980BDB0E6150FEF7A9F678; Path=/; HttpOnly
179
182
  Expires:
180
183
  - Thu, 01 Jan 1970 00:00:00 GMT
181
- Cache-Control:
182
- - no-cache
183
- - no-store
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: Sat, 19 Apr 2014 18:38:16 GMT
187
+ recorded_at: Fri, 23 May 2014 04:53:06 GMT
188
188
  - request:
189
189
  method: post
190
190
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
@@ -201,32 +201,32 @@ http_interactions:
201
201
  message: OK
202
202
  headers:
203
203
  Date:
204
- - Sat, 19 Apr 2014 18:41:01 GMT
205
- Transfer-Encoding:
206
- - chunked
204
+ - Fri, 23 May 2014 04:53:06 GMT
207
205
  Server:
208
206
  - Apache-Coyote/1.1
209
- Set-Cookie:
210
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
211
- - TCSESSIONID=BE3DA1EDAB3679DF91C85289300D8F16; Path=/; HttpOnly
212
- Content-Type:
213
- - application/json
207
+ Cache-Control:
208
+ - no-cache
209
+ - no-store
214
210
  Pragma:
215
211
  - no-cache
212
+ Transfer-Encoding:
213
+ - chunked
214
+ Content-Type:
215
+ - application/json
216
+ Set-Cookie:
217
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
218
+ - TCSESSIONID=2B90150DA25E3BFD9340FA595F002B35; Path=/; HttpOnly
216
219
  Expires:
217
220
  - Thu, 01 Jan 1970 00:00:00 GMT
218
- Cache-Control:
219
- - no-cache
220
- - no-store
221
221
  body:
222
222
  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\":[]}}"
223
223
  http_version:
224
- recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
224
+ recorded_at: Fri, 23 May 2014 04:53:06 GMT
225
225
  - request:
226
226
  method: post
227
227
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/triggers
228
228
  body:
229
- string: "{\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"value\":\"true\",\"name\":\"perCheckinTriggering\"}]}}"
229
+ string: "{\"properties\":{\"property\":[{\"value\":\"true\",\"name\":\"perCheckinTriggering\"}]},\"type\":\"vcsTrigger\"}"
230
230
  headers:
231
231
  Accept:
232
232
  - application/json
@@ -238,27 +238,27 @@ http_interactions:
238
238
  message: OK
239
239
  headers:
240
240
  Date:
241
- - Sat, 19 Apr 2014 18:41:01 GMT
242
- Transfer-Encoding:
243
- - chunked
241
+ - Fri, 23 May 2014 04:53:06 GMT
244
242
  Server:
245
243
  - Apache-Coyote/1.1
246
- Set-Cookie:
247
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
248
- - TCSESSIONID=356ED2788567ACEC62D68181A236AA30; Path=/; HttpOnly
249
- Content-Type:
250
- - application/json
244
+ Cache-Control:
245
+ - no-cache
246
+ - no-store
251
247
  Pragma:
252
248
  - no-cache
249
+ Transfer-Encoding:
250
+ - chunked
251
+ Content-Type:
252
+ - application/json
253
+ Set-Cookie:
254
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
255
+ - TCSESSIONID=6A21CB3B232EAC32E62A42D1D4110757; Path=/; HttpOnly
253
256
  Expires:
254
257
  - Thu, 01 Jan 1970 00:00:00 GMT
255
- Cache-Control:
256
- - no-cache
257
- - no-store
258
258
  body:
259
259
  string: "{\"id\":\"vcsTrigger\",\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"name\":\"perCheckinTriggering\",\"value\":\"true\"}]}}"
260
260
  http_version:
261
- recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
261
+ recorded_at: Fri, 23 May 2014 04:53:06 GMT
262
262
  - request:
263
263
  method: get
264
264
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/triggers
@@ -275,24 +275,24 @@ http_interactions:
275
275
  message: OK
276
276
  headers:
277
277
  Date:
278
- - Sat, 19 Apr 2014 18:41:01 GMT
279
- Transfer-Encoding:
280
- - chunked
278
+ - Fri, 23 May 2014 04:53:06 GMT
281
279
  Server:
282
280
  - Apache-Coyote/1.1
283
- Set-Cookie:
284
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
285
- - TCSESSIONID=74240B1852A10E8DBB0E7D28776EF479; Path=/; HttpOnly
286
- Content-Type:
287
- - application/json
281
+ Cache-Control:
282
+ - no-cache
283
+ - no-store
288
284
  Pragma:
289
285
  - no-cache
286
+ Transfer-Encoding:
287
+ - chunked
288
+ Content-Type:
289
+ - application/json
290
+ Set-Cookie:
291
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
292
+ - TCSESSIONID=388CF1353F6895C9C5C011A50BAFDEAE; Path=/; HttpOnly
290
293
  Expires:
291
294
  - Thu, 01 Jan 1970 00:00:00 GMT
292
- Cache-Control:
293
- - no-cache
294
- - no-store
295
295
  body:
296
296
  string: "{\"trigger\":[{\"id\":\"vcsTrigger\",\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"name\":\"perCheckinTriggering\",\"value\":\"true\"}]}}]}"
297
297
  http_version:
298
- recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
298
+ recorded_at: Fri, 23 May 2014 04:53:06 GMT