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