teamcity_ruby 0.0.4 → 0.0.5
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.
- data/lib/teamcity_ruby/agent_pool.rb +39 -0
- data/lib/teamcity_ruby/version.rb +1 -1
- data/lib/teamcity_ruby.rb +1 -0
- data/spec/cassettes/TeamcityRuby_AgentPool/creates_an_agent_pool.yml +299 -0
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_step_added_to_it.yml +107 -107
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_trigger_added_to_it.yml +95 -95
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_vcs_root_attached_to_it_with_specific_checkout_rules.yml +109 -109
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_settings_definitions.yml +107 -107
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml +83 -83
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml +103 -169
- data/spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml +96 -96
- data/spec/cassettes/TeamcityRuby_Project/creates_a_project_with_a_parent_project.yml +49 -49
- data/spec/cassettes/TeamcityRuby_Project/destroys_a_specific_project.yml +69 -69
- data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_id_locator.yml +69 -69
- data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_name_locator.yml +59 -59
- data/spec/cassettes/TeamcityRuby_Project/lists_all_projects_including_root_built_in_on_TeamCity_.yml +71 -71
- data/spec/cassettes/TeamcityRuby_VcsRoot/lists_all_vcs_roots.yml +51 -51
- data/spec/spec_helper.rb +6 -0
- data/spec/teamcity_ruby/agent_pool_spec.rb +25 -0
- metadata +8 -3
@@ -1,5 +1,4 @@
|
|
1
1
|
---
|
2
|
-
recorded_with: VCR 2.4.0
|
3
2
|
http_interactions:
|
4
3
|
- request:
|
5
4
|
method: get
|
@@ -16,28 +15,28 @@ http_interactions:
|
|
16
15
|
code: 200
|
17
16
|
message: OK
|
18
17
|
headers:
|
19
|
-
Cache-Control:
|
20
|
-
- no-cache
|
21
|
-
- no-store
|
22
18
|
Set-Cookie:
|
23
19
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
24
|
-
- TCSESSIONID=
|
20
|
+
- TCSESSIONID=41DCA49EB71F1B76870ECDA1AD79FA9E; Path=/; HttpOnly
|
21
|
+
Pragma:
|
22
|
+
- no-cache
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Server:
|
26
|
+
- Apache-Coyote/1.1
|
27
|
+
Date:
|
28
|
+
- Fri, 23 May 2014 07:28:37 GMT
|
25
29
|
Expires:
|
26
30
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
27
31
|
Transfer-Encoding:
|
28
32
|
- chunked
|
29
|
-
|
30
|
-
- Apache-Coyote/1.1
|
31
|
-
Pragma:
|
33
|
+
Cache-Control:
|
32
34
|
- no-cache
|
33
|
-
|
34
|
-
- Fri, 23 May 2014 05:17:09 GMT
|
35
|
-
Content-Type:
|
36
|
-
- application/json
|
35
|
+
- no-store
|
37
36
|
body:
|
38
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\"}]}"
|
39
38
|
http_version:
|
40
|
-
recorded_at: Fri, 23 May 2014
|
39
|
+
recorded_at: Fri, 23 May 2014 07:28:37 GMT
|
41
40
|
- request:
|
42
41
|
method: delete
|
43
42
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:_Root
|
@@ -53,31 +52,31 @@ http_interactions:
|
|
53
52
|
code: 403
|
54
53
|
message: Forbidden
|
55
54
|
headers:
|
56
|
-
Cache-Control:
|
57
|
-
- no-cache
|
58
|
-
- no-store
|
59
55
|
Set-Cookie:
|
60
56
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
61
|
-
- TCSESSIONID=
|
57
|
+
- TCSESSIONID=879A382E37A44DAAC0A3851B3E2610B1; Path=/; HttpOnly
|
58
|
+
Pragma:
|
59
|
+
- no-cache
|
60
|
+
Content-Type:
|
61
|
+
- text/plain
|
62
|
+
Server:
|
63
|
+
- Apache-Coyote/1.1
|
64
|
+
Date:
|
65
|
+
- Fri, 23 May 2014 07:28:37 GMT
|
62
66
|
Expires:
|
63
67
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
64
68
|
Transfer-Encoding:
|
65
69
|
- chunked
|
66
|
-
|
67
|
-
- Apache-Coyote/1.1
|
68
|
-
Pragma:
|
70
|
+
Cache-Control:
|
69
71
|
- no-cache
|
70
|
-
|
71
|
-
- Fri, 23 May 2014 05:17:09 GMT
|
72
|
-
Content-Type:
|
73
|
-
- text/plain
|
72
|
+
- no-store
|
74
73
|
body:
|
75
74
|
string: |-
|
76
75
|
Error has occurred during request processing (Forbidden).
|
77
76
|
Error: jetbrains.buildServer.serverSide.auth.AccessDeniedException: Root project cannot be removed
|
78
77
|
Access denied. Check the user has enough permissions to perform the operation.
|
79
78
|
http_version:
|
80
|
-
recorded_at: Fri, 23 May 2014
|
79
|
+
recorded_at: Fri, 23 May 2014 07:28:37 GMT
|
81
80
|
- request:
|
82
81
|
method: delete
|
83
82
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject
|
@@ -93,24 +92,24 @@ http_interactions:
|
|
93
92
|
code: 204
|
94
93
|
message: No Content
|
95
94
|
headers:
|
96
|
-
Cache-Control:
|
97
|
-
- no-cache
|
98
|
-
- no-store
|
99
95
|
Set-Cookie:
|
100
96
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
101
|
-
- TCSESSIONID=
|
102
|
-
Expires:
|
103
|
-
- Thu, 01 Jan 1970 00:00:00 GMT
|
104
|
-
Server:
|
105
|
-
- Apache-Coyote/1.1
|
97
|
+
- TCSESSIONID=4F01E6F9C0FD2E295DE9F65707B8E122; Path=/; HttpOnly
|
106
98
|
Pragma:
|
107
99
|
- no-cache
|
100
|
+
Server:
|
101
|
+
- Apache-Coyote/1.1
|
108
102
|
Date:
|
109
|
-
- Fri, 23 May 2014
|
103
|
+
- Fri, 23 May 2014 07:28:37 GMT
|
104
|
+
Expires:
|
105
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
106
|
+
Cache-Control:
|
107
|
+
- no-cache
|
108
|
+
- no-store
|
110
109
|
body:
|
111
110
|
string: ""
|
112
111
|
http_version:
|
113
|
-
recorded_at: Fri, 23 May 2014
|
112
|
+
recorded_at: Fri, 23 May 2014 07:28:37 GMT
|
114
113
|
- request:
|
115
114
|
method: get
|
116
115
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
|
@@ -126,28 +125,28 @@ http_interactions:
|
|
126
125
|
code: 200
|
127
126
|
message: OK
|
128
127
|
headers:
|
129
|
-
Cache-Control:
|
130
|
-
- no-cache
|
131
|
-
- no-store
|
132
128
|
Set-Cookie:
|
133
129
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
134
|
-
- TCSESSIONID=
|
130
|
+
- TCSESSIONID=90CFC9B6BC41352219E3200973B38CF3; Path=/; HttpOnly
|
131
|
+
Pragma:
|
132
|
+
- no-cache
|
133
|
+
Content-Type:
|
134
|
+
- application/json
|
135
|
+
Server:
|
136
|
+
- Apache-Coyote/1.1
|
137
|
+
Date:
|
138
|
+
- Fri, 23 May 2014 07:28:37 GMT
|
135
139
|
Expires:
|
136
140
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
137
141
|
Transfer-Encoding:
|
138
142
|
- chunked
|
139
|
-
|
140
|
-
- Apache-Coyote/1.1
|
141
|
-
Pragma:
|
143
|
+
Cache-Control:
|
142
144
|
- no-cache
|
143
|
-
|
144
|
-
- Fri, 23 May 2014 05:17:09 GMT
|
145
|
-
Content-Type:
|
146
|
-
- application/json
|
145
|
+
- no-store
|
147
146
|
body:
|
148
147
|
string: "{\"count\":0,\"vcs-root\":[]}"
|
149
148
|
http_version:
|
150
|
-
recorded_at: Fri, 23 May 2014
|
149
|
+
recorded_at: Fri, 23 May 2014 07:28:37 GMT
|
151
150
|
- request:
|
152
151
|
method: post
|
153
152
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
|
@@ -163,28 +162,28 @@ http_interactions:
|
|
163
162
|
code: 200
|
164
163
|
message: OK
|
165
164
|
headers:
|
166
|
-
Cache-Control:
|
167
|
-
- no-cache
|
168
|
-
- no-store
|
169
165
|
Set-Cookie:
|
170
166
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
171
|
-
- TCSESSIONID=
|
167
|
+
- TCSESSIONID=0C78273C8ED75C5BF1CD008DB81300F5; Path=/; HttpOnly
|
168
|
+
Pragma:
|
169
|
+
- no-cache
|
170
|
+
Content-Type:
|
171
|
+
- application/json
|
172
|
+
Server:
|
173
|
+
- Apache-Coyote/1.1
|
174
|
+
Date:
|
175
|
+
- Fri, 23 May 2014 07:28:37 GMT
|
172
176
|
Expires:
|
173
177
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
174
178
|
Transfer-Encoding:
|
175
179
|
- chunked
|
176
|
-
|
177
|
-
- Apache-Coyote/1.1
|
178
|
-
Pragma:
|
180
|
+
Cache-Control:
|
179
181
|
- no-cache
|
180
|
-
|
181
|
-
- Fri, 23 May 2014 05:17:09 GMT
|
182
|
-
Content-Type:
|
183
|
-
- application/json
|
182
|
+
- no-store
|
184
183
|
body:
|
185
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\"}"
|
186
185
|
http_version:
|
187
|
-
recorded_at: Fri, 23 May 2014
|
186
|
+
recorded_at: Fri, 23 May 2014 07:28:37 GMT
|
188
187
|
- request:
|
189
188
|
method: post
|
190
189
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
|
@@ -200,28 +199,28 @@ http_interactions:
|
|
200
199
|
code: 200
|
201
200
|
message: OK
|
202
201
|
headers:
|
203
|
-
Cache-Control:
|
204
|
-
- no-cache
|
205
|
-
- no-store
|
206
202
|
Set-Cookie:
|
207
203
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
208
|
-
- TCSESSIONID=
|
204
|
+
- TCSESSIONID=EE00708D9F61A258BE9462D59FBD5880; Path=/; HttpOnly
|
205
|
+
Pragma:
|
206
|
+
- no-cache
|
207
|
+
Content-Type:
|
208
|
+
- application/json
|
209
|
+
Server:
|
210
|
+
- Apache-Coyote/1.1
|
211
|
+
Date:
|
212
|
+
- Fri, 23 May 2014 07:28:37 GMT
|
209
213
|
Expires:
|
210
214
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
211
215
|
Transfer-Encoding:
|
212
216
|
- chunked
|
213
|
-
|
214
|
-
- Apache-Coyote/1.1
|
215
|
-
Pragma:
|
217
|
+
Cache-Control:
|
216
218
|
- no-cache
|
217
|
-
|
218
|
-
- Fri, 23 May 2014 05:17:09 GMT
|
219
|
-
Content-Type:
|
220
|
-
- application/json
|
219
|
+
- no-store
|
221
220
|
body:
|
222
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\":[]}}"
|
223
222
|
http_version:
|
224
|
-
recorded_at: Fri, 23 May 2014
|
223
|
+
recorded_at: Fri, 23 May 2014 07:28:37 GMT
|
225
224
|
- request:
|
226
225
|
method: put
|
227
226
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/SampleProject_SampleBuildConfiguration/settings/checkoutMode
|
@@ -235,28 +234,28 @@ http_interactions:
|
|
235
234
|
code: 200
|
236
235
|
message: OK
|
237
236
|
headers:
|
238
|
-
Cache-Control:
|
239
|
-
- no-cache
|
240
|
-
- no-store
|
241
237
|
Set-Cookie:
|
242
238
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
243
|
-
- TCSESSIONID=
|
239
|
+
- TCSESSIONID=ECB83AE0489428E84B0DC47AF0998D01; Path=/; HttpOnly
|
240
|
+
Pragma:
|
241
|
+
- no-cache
|
242
|
+
Content-Type:
|
243
|
+
- text/plain
|
244
|
+
Server:
|
245
|
+
- Apache-Coyote/1.1
|
246
|
+
Date:
|
247
|
+
- Fri, 23 May 2014 07:28:37 GMT
|
244
248
|
Expires:
|
245
249
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
246
250
|
Transfer-Encoding:
|
247
251
|
- chunked
|
248
|
-
|
249
|
-
- Apache-Coyote/1.1
|
250
|
-
Pragma:
|
252
|
+
Cache-Control:
|
251
253
|
- no-cache
|
252
|
-
|
253
|
-
- Fri, 23 May 2014 05:17:09 GMT
|
254
|
-
Content-Type:
|
255
|
-
- text/plain
|
254
|
+
- no-store
|
256
255
|
body:
|
257
256
|
string: ON_AGENT
|
258
257
|
http_version:
|
259
|
-
recorded_at: Fri, 23 May 2014
|
258
|
+
recorded_at: Fri, 23 May 2014 07:28:37 GMT
|
260
259
|
- request:
|
261
260
|
method: get
|
262
261
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/settings
|
@@ -272,28 +271,28 @@ http_interactions:
|
|
272
271
|
code: 200
|
273
272
|
message: OK
|
274
273
|
headers:
|
275
|
-
Cache-Control:
|
276
|
-
- no-cache
|
277
|
-
- no-store
|
278
274
|
Set-Cookie:
|
279
275
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
280
|
-
- TCSESSIONID=
|
276
|
+
- TCSESSIONID=3CC5CC006EF1490EAD4D1E3EB4F6F8FD; Path=/; HttpOnly
|
277
|
+
Pragma:
|
278
|
+
- no-cache
|
279
|
+
Content-Type:
|
280
|
+
- application/json
|
281
|
+
Server:
|
282
|
+
- Apache-Coyote/1.1
|
283
|
+
Date:
|
284
|
+
- Fri, 23 May 2014 07:28:37 GMT
|
281
285
|
Expires:
|
282
286
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
283
287
|
Transfer-Encoding:
|
284
288
|
- chunked
|
285
|
-
|
286
|
-
- Apache-Coyote/1.1
|
287
|
-
Pragma:
|
289
|
+
Cache-Control:
|
288
290
|
- no-cache
|
289
|
-
|
290
|
-
- Fri, 23 May 2014 05:17:09 GMT
|
291
|
-
Content-Type:
|
292
|
-
- application/json
|
291
|
+
- no-store
|
293
292
|
body:
|
294
293
|
string: "{\"property\":[{\"name\":\"allowExternalStatus\",\"value\":\"false\"},{\"name\":\"artifactRules\",\"value\":\"\"},{\"name\":\"buildNumberCounter\",\"value\":\"1\"},{\"name\":\"buildNumberPattern\",\"value\":\"%build.counter%\"},{\"name\":\"checkoutDirectory\"},{\"name\":\"checkoutMode\",\"value\":\"ON_AGENT\"},{\"name\":\"cleanBuild\",\"value\":\"false\"},{\"name\":\"enableHangingBuildsDetection\",\"value\":\"true\"},{\"name\":\"executionTimeoutMin\",\"value\":\"0\"},{\"name\":\"maximumNumberOfBuilds\",\"value\":\"0\"},{\"name\":\"shouldFailBuildIfTestsFailed\",\"value\":\"true\"},{\"name\":\"shouldFailBuildOnAnyErrorMessage\",\"value\":\"false\"},{\"name\":\"shouldFailBuildOnBadExitCode\",\"value\":\"true\"},{\"name\":\"shouldFailBuildOnOOMEOrCrash\",\"value\":\"true\"},{\"name\":\"showDependenciesChanges\",\"value\":\"false\"},{\"name\":\"vcsLabelingBranchFilter\",\"value\":\"+:<default>\"}]}"
|
295
294
|
http_version:
|
296
|
-
recorded_at: Fri, 23 May 2014
|
295
|
+
recorded_at: Fri, 23 May 2014 07:28:37 GMT
|
297
296
|
- request:
|
298
297
|
method: get
|
299
298
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/settings
|
@@ -309,25 +308,26 @@ http_interactions:
|
|
309
308
|
code: 200
|
310
309
|
message: OK
|
311
310
|
headers:
|
312
|
-
Cache-Control:
|
313
|
-
- no-cache
|
314
|
-
- no-store
|
315
311
|
Set-Cookie:
|
316
312
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
317
|
-
- TCSESSIONID=
|
313
|
+
- TCSESSIONID=FD0330F142A200041072740B40E206F9; Path=/; HttpOnly
|
314
|
+
Pragma:
|
315
|
+
- no-cache
|
316
|
+
Content-Type:
|
317
|
+
- application/json
|
318
|
+
Server:
|
319
|
+
- Apache-Coyote/1.1
|
320
|
+
Date:
|
321
|
+
- Fri, 23 May 2014 07:28:37 GMT
|
318
322
|
Expires:
|
319
323
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
320
324
|
Transfer-Encoding:
|
321
325
|
- chunked
|
322
|
-
|
323
|
-
- Apache-Coyote/1.1
|
324
|
-
Pragma:
|
326
|
+
Cache-Control:
|
325
327
|
- no-cache
|
326
|
-
|
327
|
-
- Fri, 23 May 2014 05:17:09 GMT
|
328
|
-
Content-Type:
|
329
|
-
- application/json
|
328
|
+
- no-store
|
330
329
|
body:
|
331
330
|
string: "{\"property\":[{\"name\":\"allowExternalStatus\",\"value\":\"false\"},{\"name\":\"artifactRules\",\"value\":\"\"},{\"name\":\"buildNumberCounter\",\"value\":\"1\"},{\"name\":\"buildNumberPattern\",\"value\":\"%build.counter%\"},{\"name\":\"checkoutDirectory\"},{\"name\":\"checkoutMode\",\"value\":\"ON_AGENT\"},{\"name\":\"cleanBuild\",\"value\":\"false\"},{\"name\":\"enableHangingBuildsDetection\",\"value\":\"true\"},{\"name\":\"executionTimeoutMin\",\"value\":\"0\"},{\"name\":\"maximumNumberOfBuilds\",\"value\":\"0\"},{\"name\":\"shouldFailBuildIfTestsFailed\",\"value\":\"true\"},{\"name\":\"shouldFailBuildOnAnyErrorMessage\",\"value\":\"false\"},{\"name\":\"shouldFailBuildOnBadExitCode\",\"value\":\"true\"},{\"name\":\"shouldFailBuildOnOOMEOrCrash\",\"value\":\"true\"},{\"name\":\"showDependenciesChanges\",\"value\":\"false\"},{\"name\":\"vcsLabelingBranchFilter\",\"value\":\"+:<default>\"}]}"
|
332
331
|
http_version:
|
333
|
-
recorded_at: Fri, 23 May 2014
|
332
|
+
recorded_at: Fri, 23 May 2014 07:28:37 GMT
|
333
|
+
recorded_with: VCR 2.4.0
|
data/spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
---
|
2
|
-
recorded_with: VCR 2.4.0
|
3
2
|
http_interactions:
|
4
3
|
- request:
|
5
4
|
method: get
|
@@ -16,28 +15,28 @@ http_interactions:
|
|
16
15
|
code: 200
|
17
16
|
message: OK
|
18
17
|
headers:
|
19
|
-
Cache-Control:
|
20
|
-
- no-cache
|
21
|
-
- no-store
|
22
18
|
Set-Cookie:
|
23
19
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
24
|
-
- TCSESSIONID=
|
20
|
+
- TCSESSIONID=44F8D35368FFF5ECE09BDF60FC90DC3E; Path=/; HttpOnly
|
21
|
+
Pragma:
|
22
|
+
- no-cache
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Server:
|
26
|
+
- Apache-Coyote/1.1
|
27
|
+
Date:
|
28
|
+
- Fri, 23 May 2014 07:28:36 GMT
|
25
29
|
Expires:
|
26
30
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
27
31
|
Transfer-Encoding:
|
28
32
|
- chunked
|
29
|
-
|
30
|
-
- Apache-Coyote/1.1
|
31
|
-
Pragma:
|
33
|
+
Cache-Control:
|
32
34
|
- no-cache
|
33
|
-
|
34
|
-
- Fri, 23 May 2014 05:17:08 GMT
|
35
|
-
Content-Type:
|
36
|
-
- application/json
|
35
|
+
- no-store
|
37
36
|
body:
|
38
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\"}]}"
|
39
38
|
http_version:
|
40
|
-
recorded_at: Fri, 23 May 2014
|
39
|
+
recorded_at: Fri, 23 May 2014 07:28:36 GMT
|
41
40
|
- request:
|
42
41
|
method: delete
|
43
42
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:_Root
|
@@ -53,31 +52,31 @@ http_interactions:
|
|
53
52
|
code: 403
|
54
53
|
message: Forbidden
|
55
54
|
headers:
|
56
|
-
Cache-Control:
|
57
|
-
- no-cache
|
58
|
-
- no-store
|
59
55
|
Set-Cookie:
|
60
56
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
61
|
-
- TCSESSIONID=
|
57
|
+
- TCSESSIONID=E6F5E8C58F877839B706087281291E44; Path=/; HttpOnly
|
58
|
+
Pragma:
|
59
|
+
- no-cache
|
60
|
+
Content-Type:
|
61
|
+
- text/plain
|
62
|
+
Server:
|
63
|
+
- Apache-Coyote/1.1
|
64
|
+
Date:
|
65
|
+
- Fri, 23 May 2014 07:28:36 GMT
|
62
66
|
Expires:
|
63
67
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
64
68
|
Transfer-Encoding:
|
65
69
|
- chunked
|
66
|
-
|
67
|
-
- Apache-Coyote/1.1
|
68
|
-
Pragma:
|
70
|
+
Cache-Control:
|
69
71
|
- no-cache
|
70
|
-
|
71
|
-
- Fri, 23 May 2014 05:17:08 GMT
|
72
|
-
Content-Type:
|
73
|
-
- text/plain
|
72
|
+
- no-store
|
74
73
|
body:
|
75
74
|
string: |-
|
76
75
|
Error has occurred during request processing (Forbidden).
|
77
76
|
Error: jetbrains.buildServer.serverSide.auth.AccessDeniedException: Root project cannot be removed
|
78
77
|
Access denied. Check the user has enough permissions to perform the operation.
|
79
78
|
http_version:
|
80
|
-
recorded_at: Fri, 23 May 2014
|
79
|
+
recorded_at: Fri, 23 May 2014 07:28:36 GMT
|
81
80
|
- request:
|
82
81
|
method: delete
|
83
82
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject
|
@@ -93,24 +92,24 @@ http_interactions:
|
|
93
92
|
code: 204
|
94
93
|
message: No Content
|
95
94
|
headers:
|
96
|
-
Cache-Control:
|
97
|
-
- no-cache
|
98
|
-
- no-store
|
99
95
|
Set-Cookie:
|
100
96
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
101
|
-
- TCSESSIONID=
|
102
|
-
Expires:
|
103
|
-
- Thu, 01 Jan 1970 00:00:00 GMT
|
104
|
-
Server:
|
105
|
-
- Apache-Coyote/1.1
|
97
|
+
- TCSESSIONID=B45B59284AA1945CCCCE15E03DAE02C4; Path=/; HttpOnly
|
106
98
|
Pragma:
|
107
99
|
- no-cache
|
100
|
+
Server:
|
101
|
+
- Apache-Coyote/1.1
|
108
102
|
Date:
|
109
|
-
- Fri, 23 May 2014
|
103
|
+
- Fri, 23 May 2014 07:28:36 GMT
|
104
|
+
Expires:
|
105
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
106
|
+
Cache-Control:
|
107
|
+
- no-cache
|
108
|
+
- no-store
|
110
109
|
body:
|
111
110
|
string: ""
|
112
111
|
http_version:
|
113
|
-
recorded_at: Fri, 23 May 2014
|
112
|
+
recorded_at: Fri, 23 May 2014 07:28:36 GMT
|
114
113
|
- request:
|
115
114
|
method: get
|
116
115
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
|
@@ -126,28 +125,28 @@ http_interactions:
|
|
126
125
|
code: 200
|
127
126
|
message: OK
|
128
127
|
headers:
|
129
|
-
Cache-Control:
|
130
|
-
- no-cache
|
131
|
-
- no-store
|
132
128
|
Set-Cookie:
|
133
129
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
134
|
-
- TCSESSIONID=
|
130
|
+
- TCSESSIONID=9A355FA74592FD670AC2D2FAE43872D3; Path=/; HttpOnly
|
131
|
+
Pragma:
|
132
|
+
- no-cache
|
133
|
+
Content-Type:
|
134
|
+
- application/json
|
135
|
+
Server:
|
136
|
+
- Apache-Coyote/1.1
|
137
|
+
Date:
|
138
|
+
- Fri, 23 May 2014 07:28:36 GMT
|
135
139
|
Expires:
|
136
140
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
137
141
|
Transfer-Encoding:
|
138
142
|
- chunked
|
139
|
-
|
140
|
-
- Apache-Coyote/1.1
|
141
|
-
Pragma:
|
143
|
+
Cache-Control:
|
142
144
|
- no-cache
|
143
|
-
|
144
|
-
- Fri, 23 May 2014 05:17:08 GMT
|
145
|
-
Content-Type:
|
146
|
-
- application/json
|
145
|
+
- no-store
|
147
146
|
body:
|
148
147
|
string: "{\"count\":0,\"vcs-root\":[]}"
|
149
148
|
http_version:
|
150
|
-
recorded_at: Fri, 23 May 2014
|
149
|
+
recorded_at: Fri, 23 May 2014 07:28:36 GMT
|
151
150
|
- request:
|
152
151
|
method: post
|
153
152
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
|
@@ -163,28 +162,28 @@ http_interactions:
|
|
163
162
|
code: 200
|
164
163
|
message: OK
|
165
164
|
headers:
|
166
|
-
Cache-Control:
|
167
|
-
- no-cache
|
168
|
-
- no-store
|
169
165
|
Set-Cookie:
|
170
166
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
171
|
-
- TCSESSIONID=
|
167
|
+
- TCSESSIONID=3AB0619EDB796D21F6166DACD023B123; Path=/; HttpOnly
|
168
|
+
Pragma:
|
169
|
+
- no-cache
|
170
|
+
Content-Type:
|
171
|
+
- application/json
|
172
|
+
Server:
|
173
|
+
- Apache-Coyote/1.1
|
174
|
+
Date:
|
175
|
+
- Fri, 23 May 2014 07:28:36 GMT
|
172
176
|
Expires:
|
173
177
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
174
178
|
Transfer-Encoding:
|
175
179
|
- chunked
|
176
|
-
|
177
|
-
- Apache-Coyote/1.1
|
178
|
-
Pragma:
|
180
|
+
Cache-Control:
|
179
181
|
- no-cache
|
180
|
-
|
181
|
-
- Fri, 23 May 2014 05:17:08 GMT
|
182
|
-
Content-Type:
|
183
|
-
- application/json
|
182
|
+
- no-store
|
184
183
|
body:
|
185
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\"}"
|
186
185
|
http_version:
|
187
|
-
recorded_at: Fri, 23 May 2014
|
186
|
+
recorded_at: Fri, 23 May 2014 07:28:36 GMT
|
188
187
|
- request:
|
189
188
|
method: post
|
190
189
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
|
@@ -200,28 +199,28 @@ http_interactions:
|
|
200
199
|
code: 200
|
201
200
|
message: OK
|
202
201
|
headers:
|
203
|
-
Cache-Control:
|
204
|
-
- no-cache
|
205
|
-
- no-store
|
206
202
|
Set-Cookie:
|
207
203
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
208
|
-
- TCSESSIONID=
|
204
|
+
- TCSESSIONID=AAACBF92824E929970BEB44E898223C8; Path=/; HttpOnly
|
205
|
+
Pragma:
|
206
|
+
- no-cache
|
207
|
+
Content-Type:
|
208
|
+
- application/json
|
209
|
+
Server:
|
210
|
+
- Apache-Coyote/1.1
|
211
|
+
Date:
|
212
|
+
- Fri, 23 May 2014 07:28:36 GMT
|
209
213
|
Expires:
|
210
214
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
211
215
|
Transfer-Encoding:
|
212
216
|
- chunked
|
213
|
-
|
214
|
-
- Apache-Coyote/1.1
|
215
|
-
Pragma:
|
217
|
+
Cache-Control:
|
216
218
|
- no-cache
|
217
|
-
|
218
|
-
- Fri, 23 May 2014 05:17:08 GMT
|
219
|
-
Content-Type:
|
220
|
-
- application/json
|
219
|
+
- no-store
|
221
220
|
body:
|
222
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\":[]}}"
|
223
222
|
http_version:
|
224
|
-
recorded_at: Fri, 23 May 2014
|
223
|
+
recorded_at: Fri, 23 May 2014 07:28:36 GMT
|
225
224
|
- request:
|
226
225
|
method: get
|
227
226
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration
|
@@ -237,25 +236,26 @@ http_interactions:
|
|
237
236
|
code: 200
|
238
237
|
message: OK
|
239
238
|
headers:
|
240
|
-
Cache-Control:
|
241
|
-
- no-cache
|
242
|
-
- no-store
|
243
239
|
Set-Cookie:
|
244
240
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
245
|
-
- TCSESSIONID=
|
241
|
+
- TCSESSIONID=74C3772B4BB45BE9AC85C9D742BFDEE9; Path=/; HttpOnly
|
242
|
+
Pragma:
|
243
|
+
- no-cache
|
244
|
+
Content-Type:
|
245
|
+
- application/json
|
246
|
+
Server:
|
247
|
+
- Apache-Coyote/1.1
|
248
|
+
Date:
|
249
|
+
- Fri, 23 May 2014 07:28:36 GMT
|
246
250
|
Expires:
|
247
251
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
248
252
|
Transfer-Encoding:
|
249
253
|
- chunked
|
250
|
-
|
251
|
-
- Apache-Coyote/1.1
|
252
|
-
Pragma:
|
254
|
+
Cache-Control:
|
253
255
|
- no-cache
|
254
|
-
|
255
|
-
- Fri, 23 May 2014 05:17:08 GMT
|
256
|
-
Content-Type:
|
257
|
-
- application/json
|
256
|
+
- no-store
|
258
257
|
body:
|
259
258
|
string: "{\"id\":\"SampleProject_SampleBuildConfiguration\",\"name\":\"Sample Build Configuration\",\"href\":\"/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration\",\"webUrl\":\"http://localhost:8111/viewType.html?buildTypeId=SampleProject_SampleBuildConfiguration\",\"paused\":false,\"project\":{\"id\":\"SampleProject\",\"name\":\"Sample Project\",\"href\":\"/httpAuth/app/rest/projects/id:SampleProject\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=SampleProject\",\"parentProjectId\":\"_Root\"},\"builds\":{\"href\":\"/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/builds/\"},\"vcs-root-entries\":{\"vcs-root-entry\":[]},\"settings\":{\"property\":[{\"name\":\"allowExternalStatus\",\"value\":\"false\"},{\"name\":\"artifactRules\",\"value\":\"\"},{\"name\":\"buildNumberCounter\",\"value\":\"1\"},{\"name\":\"buildNumberPattern\",\"value\":\"%build.counter%\"},{\"name\":\"checkoutDirectory\"},{\"name\":\"checkoutMode\",\"value\":\"ON_SERVER\"},{\"name\":\"cleanBuild\",\"value\":\"false\"},{\"name\":\"enableHangingBuildsDetection\",\"value\":\"true\"},{\"name\":\"executionTimeoutMin\",\"value\":\"0\"},{\"name\":\"maximumNumberOfBuilds\",\"value\":\"0\"},{\"name\":\"shouldFailBuildIfTestsFailed\",\"value\":\"true\"},{\"name\":\"shouldFailBuildOnAnyErrorMessage\",\"value\":\"false\"},{\"name\":\"shouldFailBuildOnBadExitCode\",\"value\":\"true\"},{\"name\":\"shouldFailBuildOnOOMEOrCrash\",\"value\":\"true\"},{\"name\":\"showDependenciesChanges\",\"value\":\"false\"},{\"name\":\"vcsLabelingBranchFilter\",\"value\":\"+:<default>\"}]},\"parameters\":{\"property\":[]},\"steps\":{\"step\":[]},\"features\":{\"feature\":[]},\"triggers\":{\"trigger\":[]},\"snapshot-dependencies\":{\"snapshot-dependency\":[]},\"artifact-dependencies\":{\"artifact-dependency\":[]},\"agent-requirements\":{\"agent-requirement\":[]}}"
|
260
259
|
http_version:
|
261
|
-
recorded_at: Fri, 23 May 2014
|
260
|
+
recorded_at: Fri, 23 May 2014 07:28:36 GMT
|
261
|
+
recorded_with: VCR 2.4.0
|