teamcity_ruby 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (21) hide show
  1. data/lib/teamcity_ruby/agent_pool.rb +1 -1
  2. data/lib/teamcity_ruby/resource.rb +3 -1
  3. data/lib/teamcity_ruby/vcs_root.rb +10 -3
  4. data/lib/teamcity_ruby/version.rb +1 -1
  5. data/spec/cassettes/TeamcityRuby_AgentPool/creates_an_agent_pool.yml +99 -99
  6. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_step_added_to_it.yml +107 -107
  7. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_trigger_added_to_it.yml +95 -95
  8. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_vcs_root_attached_to_it_with_specific_checkout_rules.yml +142 -105
  9. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_settings_definitions.yml +104 -104
  10. data/spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml +82 -82
  11. data/spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml +104 -104
  12. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml +94 -94
  13. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_with_a_parent_project.yml +49 -49
  14. data/spec/cassettes/TeamcityRuby_Project/destroys_a_specific_project.yml +68 -68
  15. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_id_locator.yml +68 -68
  16. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_name_locator.yml +58 -58
  17. data/spec/cassettes/TeamcityRuby_Project/lists_all_projects_including_root_built_in_on_TeamCity_.yml +70 -70
  18. data/spec/cassettes/TeamcityRuby_VcsRoot/lists_all_vcs_roots.yml +118 -44
  19. data/spec/teamcity_ruby/agent_pool_spec.rb +1 -1
  20. data/spec/teamcity_ruby/vcs_root_spec.rb +1 -0
  21. metadata +3 -3
@@ -6,67 +6,67 @@ http_interactions:
6
6
  body:
7
7
  string: ""
8
8
  headers:
9
- Accept:
10
- - application/json
11
9
  Content-Type:
12
10
  - application/json
11
+ Accept:
12
+ - application/json
13
13
  response:
14
14
  status:
15
15
  code: 200
16
16
  message: OK
17
17
  headers:
18
- Set-Cookie:
19
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
20
- - TCSESSIONID=41DCA49EB71F1B76870ECDA1AD79FA9E; Path=/; HttpOnly
21
- Pragma:
22
- - no-cache
23
18
  Content-Type:
24
19
  - application/json
25
- Server:
26
- - Apache-Coyote/1.1
27
- Date:
28
- - Fri, 23 May 2014 07:28:37 GMT
29
20
  Expires:
30
21
  - Thu, 01 Jan 1970 00:00:00 GMT
22
+ Pragma:
23
+ - no-cache
24
+ Date:
25
+ - Fri, 23 May 2014 15:05:36 GMT
26
+ Set-Cookie:
27
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
28
+ - TCSESSIONID=B596AA8B326F084D487F4E5F131DC6DB; Path=/; HttpOnly
31
29
  Transfer-Encoding:
32
30
  - chunked
31
+ Server:
32
+ - Apache-Coyote/1.1
33
33
  Cache-Control:
34
34
  - no-cache
35
35
  - no-store
36
36
  body:
37
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\"}]}"
38
38
  http_version:
39
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
39
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
40
40
  - request:
41
41
  method: delete
42
42
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:_Root
43
43
  body:
44
44
  string: ""
45
45
  headers:
46
- Accept:
47
- - application/json
48
46
  Content-Type:
49
47
  - application/json
48
+ Accept:
49
+ - application/json
50
50
  response:
51
51
  status:
52
52
  code: 403
53
53
  message: Forbidden
54
54
  headers:
55
- Set-Cookie:
56
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
57
- - TCSESSIONID=879A382E37A44DAAC0A3851B3E2610B1; Path=/; HttpOnly
58
- Pragma:
59
- - no-cache
60
55
  Content-Type:
61
56
  - text/plain
62
- Server:
63
- - Apache-Coyote/1.1
64
- Date:
65
- - Fri, 23 May 2014 07:28:37 GMT
66
57
  Expires:
67
58
  - Thu, 01 Jan 1970 00:00:00 GMT
59
+ Pragma:
60
+ - no-cache
61
+ Date:
62
+ - Fri, 23 May 2014 15:05:36 GMT
63
+ Set-Cookie:
64
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
65
+ - TCSESSIONID=6BA7F541E2F65F61F460A8BC68A8F968; Path=/; HttpOnly
68
66
  Transfer-Encoding:
69
67
  - chunked
68
+ Server:
69
+ - Apache-Coyote/1.1
70
70
  Cache-Control:
71
71
  - no-cache
72
72
  - no-store
@@ -76,151 +76,151 @@ http_interactions:
76
76
  Error: jetbrains.buildServer.serverSide.auth.AccessDeniedException: Root project cannot be removed
77
77
  Access denied. Check the user has enough permissions to perform the operation.
78
78
  http_version:
79
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
79
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
80
80
  - request:
81
81
  method: delete
82
82
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject
83
83
  body:
84
84
  string: ""
85
85
  headers:
86
- Accept:
87
- - application/json
88
86
  Content-Type:
89
87
  - application/json
88
+ Accept:
89
+ - application/json
90
90
  response:
91
91
  status:
92
92
  code: 204
93
93
  message: No Content
94
94
  headers:
95
- Set-Cookie:
96
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
97
- - TCSESSIONID=4F01E6F9C0FD2E295DE9F65707B8E122; Path=/; HttpOnly
95
+ Expires:
96
+ - Thu, 01 Jan 1970 00:00:00 GMT
98
97
  Pragma:
99
98
  - no-cache
99
+ Date:
100
+ - Fri, 23 May 2014 15:05:36 GMT
101
+ Set-Cookie:
102
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
103
+ - TCSESSIONID=CC4B130A35C4C464C4A7DB1376FA258D; Path=/; HttpOnly
100
104
  Server:
101
105
  - Apache-Coyote/1.1
102
- Date:
103
- - Fri, 23 May 2014 07:28:37 GMT
104
- Expires:
105
- - Thu, 01 Jan 1970 00:00:00 GMT
106
106
  Cache-Control:
107
107
  - no-cache
108
108
  - no-store
109
109
  body:
110
110
  string: ""
111
111
  http_version:
112
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
112
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
113
113
  - request:
114
114
  method: get
115
115
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
116
116
  body:
117
117
  string: ""
118
118
  headers:
119
- Accept:
120
- - application/json
121
119
  Content-Type:
122
120
  - application/json
121
+ Accept:
122
+ - application/json
123
123
  response:
124
124
  status:
125
125
  code: 200
126
126
  message: OK
127
127
  headers:
128
- Set-Cookie:
129
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
130
- - TCSESSIONID=90CFC9B6BC41352219E3200973B38CF3; Path=/; HttpOnly
131
- Pragma:
132
- - no-cache
133
128
  Content-Type:
134
129
  - application/json
135
- Server:
136
- - Apache-Coyote/1.1
137
- Date:
138
- - Fri, 23 May 2014 07:28:37 GMT
139
130
  Expires:
140
131
  - Thu, 01 Jan 1970 00:00:00 GMT
132
+ Pragma:
133
+ - no-cache
134
+ Date:
135
+ - Fri, 23 May 2014 15:05:36 GMT
136
+ Set-Cookie:
137
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
138
+ - TCSESSIONID=7005D429EDE5C895F92E2EE946D26E8D; Path=/; HttpOnly
141
139
  Transfer-Encoding:
142
140
  - chunked
141
+ Server:
142
+ - Apache-Coyote/1.1
143
143
  Cache-Control:
144
144
  - no-cache
145
145
  - no-store
146
146
  body:
147
147
  string: "{\"count\":0,\"vcs-root\":[]}"
148
148
  http_version:
149
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
149
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
150
150
  - request:
151
151
  method: post
152
152
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
153
153
  body:
154
154
  string: "{\"name\":\"Sample Project\"}"
155
155
  headers:
156
- Accept:
157
- - application/json
158
156
  Content-Type:
159
157
  - application/json
158
+ Accept:
159
+ - application/json
160
160
  response:
161
161
  status:
162
162
  code: 200
163
163
  message: OK
164
164
  headers:
165
- Set-Cookie:
166
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
167
- - TCSESSIONID=0C78273C8ED75C5BF1CD008DB81300F5; Path=/; HttpOnly
168
- Pragma:
169
- - no-cache
170
165
  Content-Type:
171
166
  - application/json
172
- Server:
173
- - Apache-Coyote/1.1
174
- Date:
175
- - Fri, 23 May 2014 07:28:37 GMT
176
167
  Expires:
177
168
  - Thu, 01 Jan 1970 00:00:00 GMT
169
+ Pragma:
170
+ - no-cache
171
+ Date:
172
+ - Fri, 23 May 2014 15:05:36 GMT
173
+ Set-Cookie:
174
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
175
+ - TCSESSIONID=CE139BFD7DEEBAAC8E197A4EF8DC1BC2; Path=/; HttpOnly
178
176
  Transfer-Encoding:
179
177
  - chunked
178
+ Server:
179
+ - Apache-Coyote/1.1
180
180
  Cache-Control:
181
181
  - no-cache
182
182
  - no-store
183
183
  body:
184
184
  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\"}"
185
185
  http_version:
186
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
186
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
187
187
  - request:
188
188
  method: post
189
189
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
190
190
  body:
191
191
  string: "{\"name\":\"Sample Build Configuration\"}"
192
192
  headers:
193
- Accept:
194
- - application/json
195
193
  Content-Type:
196
194
  - application/json
195
+ Accept:
196
+ - application/json
197
197
  response:
198
198
  status:
199
199
  code: 200
200
200
  message: OK
201
201
  headers:
202
- Set-Cookie:
203
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
204
- - TCSESSIONID=EE00708D9F61A258BE9462D59FBD5880; Path=/; HttpOnly
205
- Pragma:
206
- - no-cache
207
202
  Content-Type:
208
203
  - application/json
209
- Server:
210
- - Apache-Coyote/1.1
211
- Date:
212
- - Fri, 23 May 2014 07:28:37 GMT
213
204
  Expires:
214
205
  - Thu, 01 Jan 1970 00:00:00 GMT
206
+ Pragma:
207
+ - no-cache
208
+ Date:
209
+ - Fri, 23 May 2014 15:05:36 GMT
210
+ Set-Cookie:
211
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
212
+ - TCSESSIONID=075D496327403C88531E8635C0F32864; Path=/; HttpOnly
215
213
  Transfer-Encoding:
216
214
  - chunked
215
+ Server:
216
+ - Apache-Coyote/1.1
217
217
  Cache-Control:
218
218
  - no-cache
219
219
  - no-store
220
220
  body:
221
221
  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\":[]}}"
222
222
  http_version:
223
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
223
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
224
224
  - request:
225
225
  method: put
226
226
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/SampleProject_SampleBuildConfiguration/settings/checkoutMode
@@ -234,100 +234,100 @@ http_interactions:
234
234
  code: 200
235
235
  message: OK
236
236
  headers:
237
- Set-Cookie:
238
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
239
- - TCSESSIONID=ECB83AE0489428E84B0DC47AF0998D01; Path=/; HttpOnly
240
- Pragma:
241
- - no-cache
242
237
  Content-Type:
243
238
  - text/plain
244
- Server:
245
- - Apache-Coyote/1.1
246
- Date:
247
- - Fri, 23 May 2014 07:28:37 GMT
248
239
  Expires:
249
240
  - Thu, 01 Jan 1970 00:00:00 GMT
241
+ Pragma:
242
+ - no-cache
243
+ Date:
244
+ - Fri, 23 May 2014 15:05:36 GMT
245
+ Set-Cookie:
246
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
247
+ - TCSESSIONID=5B401DB394E9E884725E35AAA142735C; Path=/; HttpOnly
250
248
  Transfer-Encoding:
251
249
  - chunked
250
+ Server:
251
+ - Apache-Coyote/1.1
252
252
  Cache-Control:
253
253
  - no-cache
254
254
  - no-store
255
255
  body:
256
256
  string: ON_AGENT
257
257
  http_version:
258
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
258
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
259
259
  - request:
260
260
  method: get
261
261
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/settings
262
262
  body:
263
263
  string: ""
264
264
  headers:
265
- Accept:
266
- - application/json
267
265
  Content-Type:
268
266
  - application/json
267
+ Accept:
268
+ - application/json
269
269
  response:
270
270
  status:
271
271
  code: 200
272
272
  message: OK
273
273
  headers:
274
- Set-Cookie:
275
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
276
- - TCSESSIONID=3CC5CC006EF1490EAD4D1E3EB4F6F8FD; Path=/; HttpOnly
277
- Pragma:
278
- - no-cache
279
274
  Content-Type:
280
275
  - application/json
281
- Server:
282
- - Apache-Coyote/1.1
283
- Date:
284
- - Fri, 23 May 2014 07:28:37 GMT
285
276
  Expires:
286
277
  - Thu, 01 Jan 1970 00:00:00 GMT
278
+ Pragma:
279
+ - no-cache
280
+ Date:
281
+ - Fri, 23 May 2014 15:05:36 GMT
282
+ Set-Cookie:
283
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
284
+ - TCSESSIONID=9287BD444C9011C8516BB4E6EB1FD966; Path=/; HttpOnly
287
285
  Transfer-Encoding:
288
286
  - chunked
287
+ Server:
288
+ - Apache-Coyote/1.1
289
289
  Cache-Control:
290
290
  - no-cache
291
291
  - no-store
292
292
  body:
293
293
  string: "{\"property\":[{\"name\":\"allowExternalStatus\",\"value\":\"false\"},{\"name\":\"artifactRules\",\"value\":\"\"},{\"name\":\"buildNumberCounter\",\"value\":\"1\"},{\"name\":\"buildNumberPattern\",\"value\":\"%build.counter%\"},{\"name\":\"checkoutDirectory\"},{\"name\":\"checkoutMode\",\"value\":\"ON_AGENT\"},{\"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>\"}]}"
294
294
  http_version:
295
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
295
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
296
296
  - request:
297
297
  method: get
298
298
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/settings
299
299
  body:
300
300
  string: ""
301
301
  headers:
302
- Accept:
303
- - application/json
304
302
  Content-Type:
305
303
  - application/json
304
+ Accept:
305
+ - application/json
306
306
  response:
307
307
  status:
308
308
  code: 200
309
309
  message: OK
310
310
  headers:
311
- Set-Cookie:
312
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
313
- - TCSESSIONID=FD0330F142A200041072740B40E206F9; Path=/; HttpOnly
314
- Pragma:
315
- - no-cache
316
311
  Content-Type:
317
312
  - application/json
318
- Server:
319
- - Apache-Coyote/1.1
320
- Date:
321
- - Fri, 23 May 2014 07:28:37 GMT
322
313
  Expires:
323
314
  - Thu, 01 Jan 1970 00:00:00 GMT
315
+ Pragma:
316
+ - no-cache
317
+ Date:
318
+ - Fri, 23 May 2014 15:05:36 GMT
319
+ Set-Cookie:
320
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
321
+ - TCSESSIONID=A765D8EC0CC099417F394C507696BD21; Path=/; HttpOnly
324
322
  Transfer-Encoding:
325
323
  - chunked
324
+ Server:
325
+ - Apache-Coyote/1.1
326
326
  Cache-Control:
327
327
  - no-cache
328
328
  - no-store
329
329
  body:
330
330
  string: "{\"property\":[{\"name\":\"allowExternalStatus\",\"value\":\"false\"},{\"name\":\"artifactRules\",\"value\":\"\"},{\"name\":\"buildNumberCounter\",\"value\":\"1\"},{\"name\":\"buildNumberPattern\",\"value\":\"%build.counter%\"},{\"name\":\"checkoutDirectory\"},{\"name\":\"checkoutMode\",\"value\":\"ON_AGENT\"},{\"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>\"}]}"
331
331
  http_version:
332
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
332
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
333
333
  recorded_with: VCR 2.4.0
@@ -6,67 +6,67 @@ http_interactions:
6
6
  body:
7
7
  string: ""
8
8
  headers:
9
- Accept:
10
- - application/json
11
9
  Content-Type:
12
10
  - application/json
11
+ Accept:
12
+ - application/json
13
13
  response:
14
14
  status:
15
15
  code: 200
16
16
  message: OK
17
17
  headers:
18
- Set-Cookie:
19
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
20
- - TCSESSIONID=44F8D35368FFF5ECE09BDF60FC90DC3E; Path=/; HttpOnly
21
- Pragma:
22
- - no-cache
23
18
  Content-Type:
24
19
  - application/json
25
- Server:
26
- - Apache-Coyote/1.1
27
- Date:
28
- - Fri, 23 May 2014 07:28:36 GMT
29
20
  Expires:
30
21
  - Thu, 01 Jan 1970 00:00:00 GMT
22
+ Pragma:
23
+ - no-cache
24
+ Date:
25
+ - Fri, 23 May 2014 15:05:35 GMT
26
+ Set-Cookie:
27
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
28
+ - TCSESSIONID=1427C1E4427D14AD284C1E3FD8D67678; Path=/; HttpOnly
31
29
  Transfer-Encoding:
32
30
  - chunked
31
+ Server:
32
+ - Apache-Coyote/1.1
33
33
  Cache-Control:
34
34
  - no-cache
35
35
  - no-store
36
36
  body:
37
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\"}]}"
38
38
  http_version:
39
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
39
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
40
40
  - request:
41
41
  method: delete
42
42
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:_Root
43
43
  body:
44
44
  string: ""
45
45
  headers:
46
- Accept:
47
- - application/json
48
46
  Content-Type:
49
47
  - application/json
48
+ Accept:
49
+ - application/json
50
50
  response:
51
51
  status:
52
52
  code: 403
53
53
  message: Forbidden
54
54
  headers:
55
- Set-Cookie:
56
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
57
- - TCSESSIONID=E6F5E8C58F877839B706087281291E44; Path=/; HttpOnly
58
- Pragma:
59
- - no-cache
60
55
  Content-Type:
61
56
  - text/plain
62
- Server:
63
- - Apache-Coyote/1.1
64
- Date:
65
- - Fri, 23 May 2014 07:28:36 GMT
66
57
  Expires:
67
58
  - Thu, 01 Jan 1970 00:00:00 GMT
59
+ Pragma:
60
+ - no-cache
61
+ Date:
62
+ - Fri, 23 May 2014 15:05:35 GMT
63
+ Set-Cookie:
64
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
65
+ - TCSESSIONID=7AE8BA1FB6DA4B1962FC7CE346680956; Path=/; HttpOnly
68
66
  Transfer-Encoding:
69
67
  - chunked
68
+ Server:
69
+ - Apache-Coyote/1.1
70
70
  Cache-Control:
71
71
  - no-cache
72
72
  - no-store
@@ -76,186 +76,186 @@ http_interactions:
76
76
  Error: jetbrains.buildServer.serverSide.auth.AccessDeniedException: Root project cannot be removed
77
77
  Access denied. Check the user has enough permissions to perform the operation.
78
78
  http_version:
79
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
79
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
80
80
  - request:
81
81
  method: delete
82
82
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject
83
83
  body:
84
84
  string: ""
85
85
  headers:
86
- Accept:
87
- - application/json
88
86
  Content-Type:
89
87
  - application/json
88
+ Accept:
89
+ - application/json
90
90
  response:
91
91
  status:
92
92
  code: 204
93
93
  message: No Content
94
94
  headers:
95
- Set-Cookie:
96
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
97
- - TCSESSIONID=B45B59284AA1945CCCCE15E03DAE02C4; Path=/; HttpOnly
95
+ Expires:
96
+ - Thu, 01 Jan 1970 00:00:00 GMT
98
97
  Pragma:
99
98
  - no-cache
99
+ Date:
100
+ - Fri, 23 May 2014 15:05:35 GMT
101
+ Set-Cookie:
102
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
103
+ - TCSESSIONID=30CAD454DD9A2D4F576E463CB8F5E90F; Path=/; HttpOnly
100
104
  Server:
101
105
  - Apache-Coyote/1.1
102
- Date:
103
- - Fri, 23 May 2014 07:28:36 GMT
104
- Expires:
105
- - Thu, 01 Jan 1970 00:00:00 GMT
106
106
  Cache-Control:
107
107
  - no-cache
108
108
  - no-store
109
109
  body:
110
110
  string: ""
111
111
  http_version:
112
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
112
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
113
113
  - request:
114
114
  method: get
115
115
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
116
116
  body:
117
117
  string: ""
118
118
  headers:
119
- Accept:
120
- - application/json
121
119
  Content-Type:
122
120
  - application/json
121
+ Accept:
122
+ - application/json
123
123
  response:
124
124
  status:
125
125
  code: 200
126
126
  message: OK
127
127
  headers:
128
- Set-Cookie:
129
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
130
- - TCSESSIONID=9A355FA74592FD670AC2D2FAE43872D3; Path=/; HttpOnly
131
- Pragma:
132
- - no-cache
133
128
  Content-Type:
134
129
  - application/json
135
- Server:
136
- - Apache-Coyote/1.1
137
- Date:
138
- - Fri, 23 May 2014 07:28:36 GMT
139
130
  Expires:
140
131
  - Thu, 01 Jan 1970 00:00:00 GMT
132
+ Pragma:
133
+ - no-cache
134
+ Date:
135
+ - Fri, 23 May 2014 15:05:35 GMT
136
+ Set-Cookie:
137
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
138
+ - TCSESSIONID=BFBE7BC87B97C9199DB9E7070CD3B495; Path=/; HttpOnly
141
139
  Transfer-Encoding:
142
140
  - chunked
141
+ Server:
142
+ - Apache-Coyote/1.1
143
143
  Cache-Control:
144
144
  - no-cache
145
145
  - no-store
146
146
  body:
147
147
  string: "{\"count\":0,\"vcs-root\":[]}"
148
148
  http_version:
149
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
149
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
150
150
  - request:
151
151
  method: post
152
152
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
153
153
  body:
154
154
  string: "{\"name\":\"Sample Project\"}"
155
155
  headers:
156
- Accept:
157
- - application/json
158
156
  Content-Type:
159
157
  - application/json
158
+ Accept:
159
+ - application/json
160
160
  response:
161
161
  status:
162
162
  code: 200
163
163
  message: OK
164
164
  headers:
165
- Set-Cookie:
166
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
167
- - TCSESSIONID=3AB0619EDB796D21F6166DACD023B123; Path=/; HttpOnly
168
- Pragma:
169
- - no-cache
170
165
  Content-Type:
171
166
  - application/json
172
- Server:
173
- - Apache-Coyote/1.1
174
- Date:
175
- - Fri, 23 May 2014 07:28:36 GMT
176
167
  Expires:
177
168
  - Thu, 01 Jan 1970 00:00:00 GMT
169
+ Pragma:
170
+ - no-cache
171
+ Date:
172
+ - Fri, 23 May 2014 15:05:35 GMT
173
+ Set-Cookie:
174
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
175
+ - TCSESSIONID=E4C485DD5C35FDFF7A338B2D6D32460B; Path=/; HttpOnly
178
176
  Transfer-Encoding:
179
177
  - chunked
178
+ Server:
179
+ - Apache-Coyote/1.1
180
180
  Cache-Control:
181
181
  - no-cache
182
182
  - no-store
183
183
  body:
184
184
  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\"}"
185
185
  http_version:
186
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
186
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
187
187
  - request:
188
188
  method: post
189
189
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
190
190
  body:
191
191
  string: "{\"name\":\"Sample Build Configuration\"}"
192
192
  headers:
193
- Accept:
194
- - application/json
195
193
  Content-Type:
196
194
  - application/json
195
+ Accept:
196
+ - application/json
197
197
  response:
198
198
  status:
199
199
  code: 200
200
200
  message: OK
201
201
  headers:
202
- Set-Cookie:
203
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
204
- - TCSESSIONID=AAACBF92824E929970BEB44E898223C8; Path=/; HttpOnly
205
- Pragma:
206
- - no-cache
207
202
  Content-Type:
208
203
  - application/json
209
- Server:
210
- - Apache-Coyote/1.1
211
- Date:
212
- - Fri, 23 May 2014 07:28:36 GMT
213
204
  Expires:
214
205
  - Thu, 01 Jan 1970 00:00:00 GMT
206
+ Pragma:
207
+ - no-cache
208
+ Date:
209
+ - Fri, 23 May 2014 15:05:35 GMT
210
+ Set-Cookie:
211
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
212
+ - TCSESSIONID=31D157F4013ADB8DD5101C2F20C33654; Path=/; HttpOnly
215
213
  Transfer-Encoding:
216
214
  - chunked
215
+ Server:
216
+ - Apache-Coyote/1.1
217
217
  Cache-Control:
218
218
  - no-cache
219
219
  - no-store
220
220
  body:
221
221
  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\":[]}}"
222
222
  http_version:
223
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
223
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
224
224
  - request:
225
225
  method: get
226
226
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration
227
227
  body:
228
228
  string: ""
229
229
  headers:
230
- Accept:
231
- - application/json
232
230
  Content-Type:
233
231
  - application/json
232
+ Accept:
233
+ - application/json
234
234
  response:
235
235
  status:
236
236
  code: 200
237
237
  message: OK
238
238
  headers:
239
- Set-Cookie:
240
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
241
- - TCSESSIONID=74C3772B4BB45BE9AC85C9D742BFDEE9; Path=/; HttpOnly
242
- Pragma:
243
- - no-cache
244
239
  Content-Type:
245
240
  - application/json
246
- Server:
247
- - Apache-Coyote/1.1
248
- Date:
249
- - Fri, 23 May 2014 07:28:36 GMT
250
241
  Expires:
251
242
  - Thu, 01 Jan 1970 00:00:00 GMT
243
+ Pragma:
244
+ - no-cache
245
+ Date:
246
+ - Fri, 23 May 2014 15:05:35 GMT
247
+ Set-Cookie:
248
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
249
+ - TCSESSIONID=6E999D127280B1D7BDD8AA1BAF78EC7E; Path=/; HttpOnly
252
250
  Transfer-Encoding:
253
251
  - chunked
252
+ Server:
253
+ - Apache-Coyote/1.1
254
254
  Cache-Control:
255
255
  - no-cache
256
256
  - no-store
257
257
  body:
258
258
  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\":[]}}"
259
259
  http_version:
260
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
260
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
261
261
  recorded_with: VCR 2.4.0