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=31CFDA3B3F28A10CE3ACA0DFD50A6B9E; 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=874AA392ECFDFADF74FBAC1E78A2C914; 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=8C6D1F3A6CEFF9C2C16B56E19FF94616; 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=C842E54C7535F1C0CD740B578EB476DB; 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,256 +76,256 @@ 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=2759A68973402B893D9B800FF64BD42E; 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=C7B409B3CD74FA2E63735754D17072B7; 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=7C9872B01D38E79F53B66E7ECB5F7768; 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=807058AF101C74235B59022168D550FF; 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\":1,\"vcs-root\":[{\"id\":\"Root_Sample\",\"name\":\"Sample\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_Sample\"}]}"
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: delete
152
152
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots/id:Root_Sample
153
153
  body:
154
154
  string: ""
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: 204
163
163
  message: No Content
164
164
  headers:
165
- Set-Cookie:
166
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
167
- - TCSESSIONID=029B9284460234639334F0CC7528D8B9; Path=/; HttpOnly
165
+ Expires:
166
+ - Thu, 01 Jan 1970 00:00:00 GMT
168
167
  Pragma:
169
168
  - no-cache
169
+ Date:
170
+ - Fri, 23 May 2014 15:05:35 GMT
171
+ Set-Cookie:
172
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
173
+ - TCSESSIONID=D60C8AFF8215B72EA38D450423B4A1F4; Path=/; HttpOnly
170
174
  Server:
171
175
  - Apache-Coyote/1.1
172
- Date:
173
- - Fri, 23 May 2014 07:28:36 GMT
174
- Expires:
175
- - Thu, 01 Jan 1970 00:00:00 GMT
176
176
  Cache-Control:
177
177
  - no-cache
178
178
  - no-store
179
179
  body:
180
180
  string: ""
181
181
  http_version:
182
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
182
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
183
183
  - request:
184
184
  method: post
185
185
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
186
186
  body:
187
187
  string: "{\"name\":\"Sample Project\"}"
188
188
  headers:
189
- Accept:
190
- - application/json
191
189
  Content-Type:
192
190
  - application/json
191
+ Accept:
192
+ - application/json
193
193
  response:
194
194
  status:
195
195
  code: 200
196
196
  message: OK
197
197
  headers:
198
- Set-Cookie:
199
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
200
- - TCSESSIONID=FE8CB7FCDDBC7C7783361A9744B6ECAA; Path=/; HttpOnly
201
- Pragma:
202
- - no-cache
203
198
  Content-Type:
204
199
  - application/json
205
- Server:
206
- - Apache-Coyote/1.1
207
- Date:
208
- - Fri, 23 May 2014 07:28:36 GMT
209
200
  Expires:
210
201
  - Thu, 01 Jan 1970 00:00:00 GMT
202
+ Pragma:
203
+ - no-cache
204
+ Date:
205
+ - Fri, 23 May 2014 15:05:35 GMT
206
+ Set-Cookie:
207
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
208
+ - TCSESSIONID=741AB34481AE9F7564D401CD844026B5; Path=/; HttpOnly
211
209
  Transfer-Encoding:
212
210
  - chunked
211
+ Server:
212
+ - Apache-Coyote/1.1
213
213
  Cache-Control:
214
214
  - no-cache
215
215
  - no-store
216
216
  body:
217
217
  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\"}"
218
218
  http_version:
219
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
219
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
220
220
  - request:
221
221
  method: post
222
222
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
223
223
  body:
224
224
  string: "{\"name\":\"Build Configuration 1\"}"
225
225
  headers:
226
- Accept:
227
- - application/json
228
226
  Content-Type:
229
227
  - application/json
228
+ Accept:
229
+ - application/json
230
230
  response:
231
231
  status:
232
232
  code: 200
233
233
  message: OK
234
234
  headers:
235
- Set-Cookie:
236
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
237
- - TCSESSIONID=E21B75298C05509CF64F3036545E8013; Path=/; HttpOnly
238
- Pragma:
239
- - no-cache
240
235
  Content-Type:
241
236
  - application/json
242
- Server:
243
- - Apache-Coyote/1.1
244
- Date:
245
- - Fri, 23 May 2014 07:28:36 GMT
246
237
  Expires:
247
238
  - Thu, 01 Jan 1970 00:00:00 GMT
239
+ Pragma:
240
+ - no-cache
241
+ Date:
242
+ - Fri, 23 May 2014 15:05:35 GMT
243
+ Set-Cookie:
244
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
245
+ - TCSESSIONID=AE529F351FC7FD6471494EE5BCE6E105; Path=/; HttpOnly
248
246
  Transfer-Encoding:
249
247
  - chunked
248
+ Server:
249
+ - Apache-Coyote/1.1
250
250
  Cache-Control:
251
251
  - no-cache
252
252
  - no-store
253
253
  body:
254
254
  string: "{\"id\":\"SampleProject_BuildConfiguration1\",\"name\":\"Build Configuration 1\",\"href\":\"/httpAuth/app/rest/buildTypes/id:SampleProject_BuildConfiguration1\",\"webUrl\":\"http://localhost:8111/viewType.html?buildTypeId=SampleProject_BuildConfiguration1\",\"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_BuildConfiguration1/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\":[]}}"
255
255
  http_version:
256
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
256
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
257
257
  - request:
258
258
  method: post
259
259
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
260
260
  body:
261
261
  string: "{\"name\":\"Build Configuration 2\"}"
262
262
  headers:
263
- Accept:
264
- - application/json
265
263
  Content-Type:
266
264
  - application/json
265
+ Accept:
266
+ - application/json
267
267
  response:
268
268
  status:
269
269
  code: 200
270
270
  message: OK
271
271
  headers:
272
- Set-Cookie:
273
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
274
- - TCSESSIONID=7D646DFB160C724B9BC3496CF6EC3051; Path=/; HttpOnly
275
- Pragma:
276
- - no-cache
277
272
  Content-Type:
278
273
  - application/json
279
- Server:
280
- - Apache-Coyote/1.1
281
- Date:
282
- - Fri, 23 May 2014 07:28:36 GMT
283
274
  Expires:
284
275
  - Thu, 01 Jan 1970 00:00:00 GMT
276
+ Pragma:
277
+ - no-cache
278
+ Date:
279
+ - Fri, 23 May 2014 15:05:35 GMT
280
+ Set-Cookie:
281
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
282
+ - TCSESSIONID=E51AC99445415ED2BFFC1D40BD698644; Path=/; HttpOnly
285
283
  Transfer-Encoding:
286
284
  - chunked
285
+ Server:
286
+ - Apache-Coyote/1.1
287
287
  Cache-Control:
288
288
  - no-cache
289
289
  - no-store
290
290
  body:
291
291
  string: "{\"id\":\"SampleProject_BuildConfiguration2\",\"name\":\"Build Configuration 2\",\"href\":\"/httpAuth/app/rest/buildTypes/id:SampleProject_BuildConfiguration2\",\"webUrl\":\"http://localhost:8111/viewType.html?buildTypeId=SampleProject_BuildConfiguration2\",\"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_BuildConfiguration2/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\":[]}}"
292
292
  http_version:
293
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
293
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
294
294
  - request:
295
295
  method: get
296
296
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes
297
297
  body:
298
298
  string: ""
299
299
  headers:
300
- Accept:
301
- - application/json
302
300
  Content-Type:
303
301
  - application/json
302
+ Accept:
303
+ - application/json
304
304
  response:
305
305
  status:
306
306
  code: 200
307
307
  message: OK
308
308
  headers:
309
- Set-Cookie:
310
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
311
- - TCSESSIONID=FA334E073D23B02DD389BAEB5AE2A741; Path=/; HttpOnly
312
- Pragma:
313
- - no-cache
314
309
  Content-Type:
315
310
  - application/json
316
- Server:
317
- - Apache-Coyote/1.1
318
- Date:
319
- - Fri, 23 May 2014 07:28:36 GMT
320
311
  Expires:
321
312
  - Thu, 01 Jan 1970 00:00:00 GMT
313
+ Pragma:
314
+ - no-cache
315
+ Date:
316
+ - Fri, 23 May 2014 15:05:35 GMT
317
+ Set-Cookie:
318
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
319
+ - TCSESSIONID=F4A7131FE311DBB18A8815967CAB1921; Path=/; HttpOnly
322
320
  Transfer-Encoding:
323
321
  - chunked
322
+ Server:
323
+ - Apache-Coyote/1.1
324
324
  Cache-Control:
325
325
  - no-cache
326
326
  - no-store
327
327
  body:
328
328
  string: "{\"buildType\":[{\"id\":\"SampleProject_BuildConfiguration1\",\"name\":\"Build Configuration 1\",\"href\":\"/httpAuth/app/rest/buildTypes/id:SampleProject_BuildConfiguration1\",\"projectName\":\"Sample Project\",\"projectId\":\"SampleProject\",\"webUrl\":\"http://localhost:8111/viewType.html?buildTypeId=SampleProject_BuildConfiguration1\"},{\"id\":\"SampleProject_BuildConfiguration2\",\"name\":\"Build Configuration 2\",\"href\":\"/httpAuth/app/rest/buildTypes/id:SampleProject_BuildConfiguration2\",\"projectName\":\"Sample Project\",\"projectId\":\"SampleProject\",\"webUrl\":\"http://localhost:8111/viewType.html?buildTypeId=SampleProject_BuildConfiguration2\"}]}"
329
329
  http_version:
330
- recorded_at: Fri, 23 May 2014 07:28:36 GMT
330
+ recorded_at: Fri, 23 May 2014 15:05:36 GMT
331
331
  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=68D856D7F22AB83369C1DA1D47DF18D9; 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:38 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:38 GMT
26
+ Set-Cookie:
27
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
28
+ - TCSESSIONID=8E8C6D5A173A00F530800CABEBE50479; 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\":\"PetshopGroup\",\"name\":\"Petshop Group\",\"href\":\"/httpAuth/app/rest/projects/id:PetshopGroup\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=PetshopGroup\",\"parentProjectId\":\"_Root\"},{\"id\":\"PetshopGroup_SampleProject\",\"name\":\"Sample Project\",\"href\":\"/httpAuth/app/rest/projects/id:PetshopGroup_SampleProject\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=PetshopGroup_SampleProject\",\"parentProjectId\":\"PetshopGroup\"}]}"
38
38
  http_version:
39
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
39
+ recorded_at: Fri, 23 May 2014 15:05:38 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=0286748F6223CA3927C525157F45C3A9; 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:38 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:38 GMT
63
+ Set-Cookie:
64
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
65
+ - TCSESSIONID=94943F6F9D668BB9A21F734A802D2923; 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,70 +76,70 @@ 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:38 GMT
79
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
80
80
  - request:
81
81
  method: delete
82
82
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:PetshopGroup
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=DB23F978203DABFBCA6AF17220A84FD6; 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:38 GMT
101
+ Set-Cookie:
102
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
103
+ - TCSESSIONID=53AC5B829CC4A82B6F4B4F7A62001F7C; Path=/; HttpOnly
100
104
  Server:
101
105
  - Apache-Coyote/1.1
102
- Date:
103
- - Fri, 23 May 2014 07:28:38 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:38 GMT
112
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
113
113
  - request:
114
114
  method: delete
115
115
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:PetshopGroup_SampleProject
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: 404
126
126
  message: Not Found
127
127
  headers:
128
- Set-Cookie:
129
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
130
- - TCSESSIONID=87F4A45DF1D38A74594271F34D0490BC; Path=/; HttpOnly
131
- Pragma:
132
- - no-cache
133
128
  Content-Type:
134
129
  - text/plain
135
- Server:
136
- - Apache-Coyote/1.1
137
- Date:
138
- - Fri, 23 May 2014 07:28:38 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:38 GMT
136
+ Set-Cookie:
137
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
138
+ - TCSESSIONID=4934ED0CD676E435A1374A3C507DF40B; 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
@@ -149,153 +149,153 @@ http_interactions:
149
149
  Error: jetbrains.buildServer.server.rest.errors.NotFoundException: No project found by locator 'id:PetshopGroup_SampleProject'. Project cannot be found by external id 'PetshopGroup_SampleProject'.
150
150
  Could not find the entity requested. Check the reference is correct and the user has permissions to access the entity.
151
151
  http_version:
152
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
152
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
153
153
  - request:
154
154
  method: post
155
155
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
156
156
  body:
157
157
  string: "{\"name\":\"Base Project\"}"
158
158
  headers:
159
- Accept:
160
- - application/json
161
159
  Content-Type:
162
160
  - application/json
161
+ Accept:
162
+ - application/json
163
163
  response:
164
164
  status:
165
165
  code: 200
166
166
  message: OK
167
167
  headers:
168
- Set-Cookie:
169
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
170
- - TCSESSIONID=41D8B1143D0876077B56B2F62B48167B; Path=/; HttpOnly
171
- Pragma:
172
- - no-cache
173
168
  Content-Type:
174
169
  - application/json
175
- Server:
176
- - Apache-Coyote/1.1
177
- Date:
178
- - Fri, 23 May 2014 07:28:38 GMT
179
170
  Expires:
180
171
  - Thu, 01 Jan 1970 00:00:00 GMT
172
+ Pragma:
173
+ - no-cache
174
+ Date:
175
+ - Fri, 23 May 2014 15:05:38 GMT
176
+ Set-Cookie:
177
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
178
+ - TCSESSIONID=864CAEE166C34DC4463A32529A436E19; Path=/; HttpOnly
181
179
  Transfer-Encoding:
182
180
  - chunked
181
+ Server:
182
+ - Apache-Coyote/1.1
183
183
  Cache-Control:
184
184
  - no-cache
185
185
  - no-store
186
186
  body:
187
187
  string: "{\"id\":\"BaseProject\",\"name\":\"Base Project\",\"href\":\"/httpAuth/app/rest/projects/id:BaseProject\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=BaseProject\",\"parentProjectId\":\"_Root\"}"
188
188
  http_version:
189
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
189
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
190
190
  - request:
191
191
  method: put
192
192
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:BaseProject/description
193
193
  body:
194
194
  string: Base Project Description
195
195
  headers:
196
- Accept:
197
- - text/plain
198
196
  Content-Type:
199
197
  - text/plain
198
+ Accept:
199
+ - text/plain
200
200
  response:
201
201
  status:
202
202
  code: 200
203
203
  message: OK
204
204
  headers:
205
- Set-Cookie:
206
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
207
- - TCSESSIONID=5C32DA15D15B9D4729C0A70CA56159C2; Path=/; HttpOnly
208
- Pragma:
209
- - no-cache
210
205
  Content-Type:
211
206
  - text/plain
212
- Server:
213
- - Apache-Coyote/1.1
214
- Date:
215
- - Fri, 23 May 2014 07:28:38 GMT
216
207
  Expires:
217
208
  - Thu, 01 Jan 1970 00:00:00 GMT
209
+ Pragma:
210
+ - no-cache
211
+ Date:
212
+ - Fri, 23 May 2014 15:05:38 GMT
213
+ Set-Cookie:
214
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
215
+ - TCSESSIONID=F0C77EF9EBFB278639348FCF5792E924; Path=/; HttpOnly
218
216
  Transfer-Encoding:
219
217
  - chunked
218
+ Server:
219
+ - Apache-Coyote/1.1
220
220
  Cache-Control:
221
221
  - no-cache
222
222
  - no-store
223
223
  body:
224
224
  string: Base Project Description
225
225
  http_version:
226
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
226
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
227
227
  - request:
228
228
  method: post
229
229
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
230
230
  body:
231
231
  string: "{\"sourceProject\":{\"id\":\"BaseProject\"},\"name\":\"Project Copy\",\"copyAllAssociatedSettings\":\"true\"}"
232
232
  headers:
233
- Accept:
234
- - application/json
235
233
  Content-Type:
236
234
  - application/json
235
+ Accept:
236
+ - application/json
237
237
  response:
238
238
  status:
239
239
  code: 200
240
240
  message: OK
241
241
  headers:
242
- Set-Cookie:
243
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
244
- - TCSESSIONID=3BBFAB18DBAC517C76D8C46B247F257F; Path=/; HttpOnly
245
- Pragma:
246
- - no-cache
247
242
  Content-Type:
248
243
  - application/json
249
- Server:
250
- - Apache-Coyote/1.1
251
- Date:
252
- - Fri, 23 May 2014 07:28:38 GMT
253
244
  Expires:
254
245
  - Thu, 01 Jan 1970 00:00:00 GMT
246
+ Pragma:
247
+ - no-cache
248
+ Date:
249
+ - Fri, 23 May 2014 15:05:38 GMT
250
+ Set-Cookie:
251
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
252
+ - TCSESSIONID=B49D66C96FF3C26F214A79D32C5314C6; Path=/; HttpOnly
255
253
  Transfer-Encoding:
256
254
  - chunked
255
+ Server:
256
+ - Apache-Coyote/1.1
257
257
  Cache-Control:
258
258
  - no-cache
259
259
  - no-store
260
260
  body:
261
261
  string: "{\"id\":\"ProjectCopy_2\",\"name\":\"Project Copy\",\"href\":\"/httpAuth/app/rest/projects/id:ProjectCopy_2\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=ProjectCopy_2\",\"parentProjectId\":\"_Root\"}"
262
262
  http_version:
263
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
263
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
264
264
  - request:
265
265
  method: get
266
266
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:ProjectCopy_2/description
267
267
  body:
268
268
  string: ""
269
269
  headers:
270
- Accept:
271
- - text/plain
272
270
  Content-Type:
273
271
  - text/plain
272
+ Accept:
273
+ - text/plain
274
274
  response:
275
275
  status:
276
276
  code: 200
277
277
  message: OK
278
278
  headers:
279
- Set-Cookie:
280
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
281
- - TCSESSIONID=B92D3BD297FFB90EB214F4766DE0A384; Path=/; HttpOnly
282
- Pragma:
283
- - no-cache
284
279
  Content-Type:
285
280
  - text/plain
286
- Server:
287
- - Apache-Coyote/1.1
288
- Date:
289
- - Fri, 23 May 2014 07:28:38 GMT
290
281
  Expires:
291
282
  - Thu, 01 Jan 1970 00:00:00 GMT
283
+ Pragma:
284
+ - no-cache
285
+ Date:
286
+ - Fri, 23 May 2014 15:05:38 GMT
287
+ Set-Cookie:
288
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
289
+ - TCSESSIONID=53B75DFB1594682839B4A5461EBE0C21; Path=/; HttpOnly
292
290
  Transfer-Encoding:
293
291
  - chunked
292
+ Server:
293
+ - Apache-Coyote/1.1
294
294
  Cache-Control:
295
295
  - no-cache
296
296
  - no-store
297
297
  body:
298
298
  string: Base Project Description
299
299
  http_version:
300
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
300
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
301
301
  recorded_with: VCR 2.4.0