teamcity_ruby 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
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:06 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=1072EE8E47D54BD426E6A46ACD4433DA; Path=/; HttpOnly
24
+ - TCSESSIONID=E41E2047A696FC6713BACA44DC98B92D; 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:09 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:09 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:06 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=85BA2FAC8F4AB234BA64A18D49C41D6F; Path=/; HttpOnly
61
+ - TCSESSIONID=1BCD8F81AC2802A7A57D2B02A996D122; 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:09 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:09 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:06 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=E1F7BB2481C8C062C6D5F84E3B8643B0; Path=/; HttpOnly
101
+ - TCSESSIONID=DCDD7BCAF1B540A10A11378A3AA06D7A; 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:09 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:09 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:06 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=1225EDDDEED1394B2ED7A78F0AF8F3B1; Path=/; HttpOnly
134
+ - TCSESSIONID=991CF9A41F06A3DABE02DF5FFA75B8F1; 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:09 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:09 GMT
151
151
  - request:
152
152
  method: post
153
153
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
@@ -163,28 +163,28 @@ http_interactions:
163
163
  code: 200
164
164
  message: OK
165
165
  headers:
166
- Date:
167
- - Fri, 23 May 2014 04:53:06 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=D49EEBC19E980BDB0E6150FEF7A9F678; Path=/; HttpOnly
171
+ - TCSESSIONID=81E6D2E77100894703EFDFE6AE54D515; 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:09 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/projects/id:SampleProject/buildTypes
@@ -200,33 +200,33 @@ http_interactions:
200
200
  code: 200
201
201
  message: OK
202
202
  headers:
203
- Date:
204
- - Fri, 23 May 2014 04:53:06 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=2B90150DA25E3BFD9340FA595F002B35; Path=/; HttpOnly
208
+ - TCSESSIONID=BDA8077CD04D0FD5183F5415545351EA; 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:09 GMT
219
+ Content-Type:
220
+ - application/json
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: 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/buildTypes/id:SampleProject_SampleBuildConfiguration/triggers
228
228
  body:
229
- string: "{\"properties\":{\"property\":[{\"value\":\"true\",\"name\":\"perCheckinTriggering\"}]},\"type\":\"vcsTrigger\"}"
229
+ string: "{\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"value\":\"true\",\"name\":\"perCheckinTriggering\"}]}}"
230
230
  headers:
231
231
  Accept:
232
232
  - application/json
@@ -237,28 +237,28 @@ http_interactions:
237
237
  code: 200
238
238
  message: OK
239
239
  headers:
240
- Date:
241
- - Fri, 23 May 2014 04:53:06 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=6A21CB3B232EAC32E62A42D1D4110757; Path=/; HttpOnly
245
+ - TCSESSIONID=DE961088A08E605A990CFF105922F05F; 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:09 GMT
256
+ Content-Type:
257
+ - application/json
258
258
  body:
259
259
  string: "{\"id\":\"vcsTrigger\",\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"name\":\"perCheckinTriggering\",\"value\":\"true\"}]}}"
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: get
264
264
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/triggers
@@ -274,25 +274,25 @@ http_interactions:
274
274
  code: 200
275
275
  message: OK
276
276
  headers:
277
- Date:
278
- - Fri, 23 May 2014 04:53:06 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=388CF1353F6895C9C5C011A50BAFDEAE; Path=/; HttpOnly
282
+ - TCSESSIONID=181BC983940426D7519F08BE1235A1CF; 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:09 GMT
293
+ Content-Type:
294
+ - application/json
295
295
  body:
296
296
  string: "{\"trigger\":[{\"id\":\"vcsTrigger\",\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"name\":\"perCheckinTriggering\",\"value\":\"true\"}]}}]}"
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