teamcity_ruby 0.0.5 → 0.0.6

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 (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=3D329DADB5B211B08CDBB25710F461CC; 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:36 GMT
26
+ Set-Cookie:
27
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
28
+ - TCSESSIONID=F0A33285BAE34AFB0E4FD7816A904833; 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=F9A699ECA97D455DE382C394DB399E7D; 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:36 GMT
63
+ Set-Cookie:
64
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
65
+ - TCSESSIONID=DD7D30C6D208EC043135941A24749062; 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,223 +76,223 @@ 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=46258DAEBF9160A6038EA386310EF5A8; 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=79C37C68C7F2D4907271F6644AE89CBB; 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=D4DE53C435800D35F70C4312D8201AD8; 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=1C6946F741B877DE9ABCCF239A82BF1A; 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=F18F2199D496CF754FFB25998DCD7B5A; 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=AD4C05984F464D25F679FCC54883E2D4; 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=F800529A778CA8089CB893C6824049CF; 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=1D2FCB4AFBE042A797E793D29D2313FD; 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: post
226
226
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/triggers
227
227
  body:
228
- string: "{\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"value\":\"true\",\"name\":\"perCheckinTriggering\"}]}}"
228
+ string: "{\"properties\":{\"property\":[{\"value\":\"true\",\"name\":\"perCheckinTriggering\"}]},\"type\":\"vcsTrigger\"}"
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=DDB9536A14C6366D4BD1369BE2A925D0; 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:37 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:36 GMT
247
+ Set-Cookie:
248
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
249
+ - TCSESSIONID=102D3638B3D9B32C5FABB17F56A90715; 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\":\"vcsTrigger\",\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"name\":\"perCheckinTriggering\",\"value\":\"true\"}]}}"
259
259
  http_version:
260
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
260
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
261
261
  - request:
262
262
  method: get
263
263
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/triggers
264
264
  body:
265
265
  string: ""
266
266
  headers:
267
- Accept:
268
- - application/json
269
267
  Content-Type:
270
268
  - application/json
269
+ Accept:
270
+ - application/json
271
271
  response:
272
272
  status:
273
273
  code: 200
274
274
  message: OK
275
275
  headers:
276
- Set-Cookie:
277
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
278
- - TCSESSIONID=3E3F12BF509396E5FCE6B4C38D3975EE; Path=/; HttpOnly
279
- Pragma:
280
- - no-cache
281
276
  Content-Type:
282
277
  - application/json
283
- Server:
284
- - Apache-Coyote/1.1
285
- Date:
286
- - Fri, 23 May 2014 07:28:37 GMT
287
278
  Expires:
288
279
  - Thu, 01 Jan 1970 00:00:00 GMT
280
+ Pragma:
281
+ - no-cache
282
+ Date:
283
+ - Fri, 23 May 2014 15:05:36 GMT
284
+ Set-Cookie:
285
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
286
+ - TCSESSIONID=366590185AB1713D30F4900265B82680; Path=/; HttpOnly
289
287
  Transfer-Encoding:
290
288
  - chunked
289
+ Server:
290
+ - Apache-Coyote/1.1
291
291
  Cache-Control:
292
292
  - no-cache
293
293
  - no-store
294
294
  body:
295
295
  string: "{\"trigger\":[{\"id\":\"vcsTrigger\",\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"name\":\"perCheckinTriggering\",\"value\":\"true\"}]}}]}"
296
296
  http_version:
297
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
297
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
298
298
  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=6264841749C6CF2E1CF9E7237B6962AD; 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=3B08D4EB6B21DFF17474A4F8387E31BF; 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=A73B0280D96247113DEDB57AFE7BCAC5; 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=A17D90120C021644AE195FB48F87B287; 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,260 +76,297 @@ 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=011B9AFE40A73B26B48512DD82E17EED; 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=198CE57F208566D145EF12A3EDB0C20C; 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=6DE693E59BCEE03E2108E7333D43EB1E; 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=6A7F2DB5743D6B3E9891BADB40C7844C; 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=77488D99C0F6EADBE3F937E0E021CF0B; 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=17AFC359C7F259128786F780C5A2AD89; 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/vcs-roots
190
190
  body:
191
- string: "{\"projectLocator\":\"id:_Root\",\"vcsName\":\"jetbrains.git\",\"name\":\"Sample VCS Root\",\"properties\":{\"property\":[]}}"
191
+ string: "{\"projectLocator\":\"id:_Root\",\"name\":\"Sample VCS Root\",\"properties\":{\"property\":[]},\"vcsName\":\"jetbrains.git\"}"
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
+ Content-Type:
203
+ - application/json
204
+ Expires:
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
202
210
  Set-Cookie:
203
211
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
204
- - TCSESSIONID=2F921649892A339D8AE7804761A628EA; Path=/; HttpOnly
205
- Pragma:
212
+ - TCSESSIONID=B5DBCD9EC639071468EB070947B6EC54; Path=/; HttpOnly
213
+ Transfer-Encoding:
214
+ - chunked
215
+ Server:
216
+ - Apache-Coyote/1.1
217
+ Cache-Control:
206
218
  - no-cache
219
+ - no-store
220
+ body:
221
+ 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)\"}}"
222
+ http_version:
223
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
224
+ - request:
225
+ method: get
226
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots/id:Root_SampleVcsRoot
227
+ body:
228
+ string: ""
229
+ headers:
230
+ Content-Type:
231
+ - application/json
232
+ Accept:
233
+ - application/json
234
+ response:
235
+ status:
236
+ code: 200
237
+ message: OK
238
+ headers:
207
239
  Content-Type:
208
240
  - application/json
209
- Server:
210
- - Apache-Coyote/1.1
211
- Date:
212
- - Fri, 23 May 2014 07:28:36 GMT
213
241
  Expires:
214
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=180C67A187A0AA4A67F5B3178E1EDC61; Path=/; HttpOnly
215
250
  Transfer-Encoding:
216
251
  - chunked
252
+ Server:
253
+ - Apache-Coyote/1.1
217
254
  Cache-Control:
218
255
  - no-cache
219
256
  - no-store
220
257
  body:
221
258
  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)\"}}"
222
259
  http_version:
223
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
260
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
224
261
  - request:
225
262
  method: post
226
263
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
227
264
  body:
228
265
  string: "{\"name\":\"Sample Build Configuration\"}"
229
266
  headers:
230
- Accept:
231
- - application/json
232
267
  Content-Type:
233
268
  - application/json
269
+ Accept:
270
+ - application/json
234
271
  response:
235
272
  status:
236
273
  code: 200
237
274
  message: OK
238
275
  headers:
239
- Set-Cookie:
240
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
241
- - TCSESSIONID=ED6278B2871CF800A5A0D0AB489AADF2; Path=/; HttpOnly
242
- Pragma:
243
- - no-cache
244
276
  Content-Type:
245
277
  - application/json
246
- Server:
247
- - Apache-Coyote/1.1
248
- Date:
249
- - Fri, 23 May 2014 07:28:36 GMT
250
278
  Expires:
251
279
  - Thu, 01 Jan 1970 00:00:00 GMT
280
+ Pragma:
281
+ - no-cache
282
+ Date:
283
+ - Fri, 23 May 2014 15:05:35 GMT
284
+ Set-Cookie:
285
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
286
+ - TCSESSIONID=3159705AF13E55BC91BAB524E91A5F8C; Path=/; HttpOnly
252
287
  Transfer-Encoding:
253
288
  - chunked
289
+ Server:
290
+ - Apache-Coyote/1.1
254
291
  Cache-Control:
255
292
  - no-cache
256
293
  - no-store
257
294
  body:
258
295
  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
296
  http_version:
260
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
297
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
261
298
  - request:
262
299
  method: post
263
300
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/vcs-root-entries
264
301
  body:
265
- string: "{\"vcs-root\":{\"id\":\"Root_SampleVcsRoot\"},\"checkout-rules\":\"+:trunk => .\"}"
302
+ string: "{\"checkout-rules\":\"+:trunk => .\",\"vcs-root\":{\"id\":\"Root_SampleVcsRoot\"}}"
266
303
  headers:
267
- Accept:
268
- - application/json
269
304
  Content-Type:
270
305
  - application/json
306
+ Accept:
307
+ - application/json
271
308
  response:
272
309
  status:
273
310
  code: 200
274
311
  message: OK
275
312
  headers:
276
- Set-Cookie:
277
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
278
- - TCSESSIONID=266533D9F9497A8FE5AD48F1FFD15384; Path=/; HttpOnly
279
- Pragma:
280
- - no-cache
281
313
  Content-Type:
282
314
  - application/json
283
- Server:
284
- - Apache-Coyote/1.1
285
- Date:
286
- - Fri, 23 May 2014 07:28:36 GMT
287
315
  Expires:
288
316
  - Thu, 01 Jan 1970 00:00:00 GMT
317
+ Pragma:
318
+ - no-cache
319
+ Date:
320
+ - Fri, 23 May 2014 15:05:35 GMT
321
+ Set-Cookie:
322
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
323
+ - TCSESSIONID=62E0361A4430452968B6018B1CD91D77; Path=/; HttpOnly
289
324
  Transfer-Encoding:
290
325
  - chunked
326
+ Server:
327
+ - Apache-Coyote/1.1
291
328
  Cache-Control:
292
329
  - no-cache
293
330
  - no-store
294
331
  body:
295
332
  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 => .\"}"
296
333
  http_version:
297
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
334
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
298
335
  - request:
299
336
  method: get
300
337
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/vcs-root-entries
301
338
  body:
302
339
  string: ""
303
340
  headers:
304
- Accept:
305
- - application/json
306
341
  Content-Type:
307
342
  - application/json
343
+ Accept:
344
+ - application/json
308
345
  response:
309
346
  status:
310
347
  code: 200
311
348
  message: OK
312
349
  headers:
313
- Set-Cookie:
314
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
315
- - TCSESSIONID=184E06B4EB558410996160574B923D5A; Path=/; HttpOnly
316
- Pragma:
317
- - no-cache
318
350
  Content-Type:
319
351
  - application/json
320
- Server:
321
- - Apache-Coyote/1.1
322
- Date:
323
- - Fri, 23 May 2014 07:28:36 GMT
324
352
  Expires:
325
353
  - Thu, 01 Jan 1970 00:00:00 GMT
354
+ Pragma:
355
+ - no-cache
356
+ Date:
357
+ - Fri, 23 May 2014 15:05:35 GMT
358
+ Set-Cookie:
359
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
360
+ - TCSESSIONID=3C4C26FD8461361070A495DF5ADF6CE4; Path=/; HttpOnly
326
361
  Transfer-Encoding:
327
362
  - chunked
363
+ Server:
364
+ - Apache-Coyote/1.1
328
365
  Cache-Control:
329
366
  - no-cache
330
367
  - no-store
331
368
  body:
332
369
  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 => .\"}]}"
333
370
  http_version:
334
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
371
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
335
372
  recorded_with: VCR 2.4.0