teamcity_ruby 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. data/.gitignore +17 -0
  2. data/.ruby-version +1 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +42 -0
  6. data/Rakefile +5 -0
  7. data/lib/teamcity_ruby/build_configuration.rb +86 -0
  8. data/lib/teamcity_ruby/element_builder.rb +27 -0
  9. data/lib/teamcity_ruby/project.rb +52 -0
  10. data/lib/teamcity_ruby/resource.rb +26 -0
  11. data/lib/teamcity_ruby/vcs_root.rb +49 -0
  12. data/lib/teamcity_ruby/version.rb +3 -0
  13. data/lib/teamcity_ruby.rb +28 -0
  14. data/spec/cassettes/TeamcityRuby_BuildConfiguration/a_existing_build_configuration/can_get_a_build_step_added_to_it.yml +331 -0
  15. data/spec/cassettes/TeamcityRuby_BuildConfiguration/a_existing_build_configuration/can_get_a_build_trigger_added_to_it.yml +298 -0
  16. data/spec/cassettes/TeamcityRuby_BuildConfiguration/a_existing_build_configuration/can_get_a_vcs_root_attached_with_specific_checkout_rules.yml +335 -0
  17. data/spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml +261 -0
  18. data/spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml +397 -0
  19. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml +301 -0
  20. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_with_a_parent_project.yml +154 -0
  21. data/spec/cassettes/TeamcityRuby_Project/destroys_a_specific_project.yml +223 -0
  22. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_id_locator.yml +220 -0
  23. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_name_locator.yml +187 -0
  24. data/spec/cassettes/TeamcityRuby_Project/lists_all_projects_including_root_built_in_on_TeamCity_.yml +224 -0
  25. data/spec/cassettes/TeamcityRuby_VcsRoot/lists_all_vcs_roots.yml +151 -0
  26. data/spec/spec_helper.rb +32 -0
  27. data/spec/teamcity_ruby/build_configuration_spec.rb +59 -0
  28. data/spec/teamcity_ruby/element_builder_spec.rb +29 -0
  29. data/spec/teamcity_ruby/project_spec.rb +59 -0
  30. data/spec/teamcity_ruby/vcs_root_spec.rb +21 -0
  31. data/teamcity_ruby.gemspec +31 -0
  32. metadata +242 -0
@@ -0,0 +1,335 @@
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
+ - Sat, 19 Apr 2014 18:41:00 GMT
21
+ Transfer-Encoding:
22
+ - chunked
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ Set-Cookie:
26
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
27
+ - TCSESSIONID=E8EE014814C072ED3FCB9ADEB6ED63A9; Path=/; HttpOnly
28
+ Content-Type:
29
+ - application/json
30
+ Pragma:
31
+ - no-cache
32
+ Expires:
33
+ - Thu, 01 Jan 1970 00:00:00 GMT
34
+ Cache-Control:
35
+ - no-cache
36
+ - no-store
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: Sat, 19 Apr 2014 18:38:15 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
+ - Sat, 19 Apr 2014 18:41:00 GMT
58
+ Transfer-Encoding:
59
+ - chunked
60
+ Server:
61
+ - Apache-Coyote/1.1
62
+ Set-Cookie:
63
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
64
+ - TCSESSIONID=08E004B6DA4FA00A41A3DB43AC1B9603; Path=/; HttpOnly
65
+ Content-Type:
66
+ - text/plain
67
+ Pragma:
68
+ - no-cache
69
+ Expires:
70
+ - Thu, 01 Jan 1970 00:00:00 GMT
71
+ Cache-Control:
72
+ - no-cache
73
+ - no-store
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: Sat, 19 Apr 2014 18:38:15 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
+ - Sat, 19 Apr 2014 18:41:00 GMT
98
+ Server:
99
+ - Apache-Coyote/1.1
100
+ Set-Cookie:
101
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
102
+ - TCSESSIONID=BF5A2EA5B92248AF3D7DBD8F27F42390; Path=/; HttpOnly
103
+ Pragma:
104
+ - no-cache
105
+ Expires:
106
+ - Thu, 01 Jan 1970 00:00:00 GMT
107
+ Cache-Control:
108
+ - no-cache
109
+ - no-store
110
+ body:
111
+ string: ""
112
+ http_version:
113
+ recorded_at: Sat, 19 Apr 2014 18:38:15 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
+ - Sat, 19 Apr 2014 18:41:00 GMT
131
+ Transfer-Encoding:
132
+ - chunked
133
+ Server:
134
+ - Apache-Coyote/1.1
135
+ Set-Cookie:
136
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
137
+ - TCSESSIONID=2D0D4CEE351A71D1F54A8B9BA03FF383; Path=/; HttpOnly
138
+ Content-Type:
139
+ - application/json
140
+ Pragma:
141
+ - no-cache
142
+ Expires:
143
+ - Thu, 01 Jan 1970 00:00:00 GMT
144
+ Cache-Control:
145
+ - no-cache
146
+ - no-store
147
+ body:
148
+ string: "{\"count\":0,\"vcs-root\":[]}"
149
+ http_version:
150
+ recorded_at: Sat, 19 Apr 2014 18:38:15 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
+ - Sat, 19 Apr 2014 18:41:00 GMT
168
+ Transfer-Encoding:
169
+ - chunked
170
+ Server:
171
+ - Apache-Coyote/1.1
172
+ Set-Cookie:
173
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
174
+ - TCSESSIONID=2D30507F7FC256266F0D403216151F58; Path=/; HttpOnly
175
+ Content-Type:
176
+ - application/json
177
+ Pragma:
178
+ - no-cache
179
+ Expires:
180
+ - Thu, 01 Jan 1970 00:00:00 GMT
181
+ Cache-Control:
182
+ - no-cache
183
+ - no-store
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: Sat, 19 Apr 2014 18:38:15 GMT
188
+ - request:
189
+ method: post
190
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
191
+ body:
192
+ string: "{\"name\":\"Sample VCS Root\",\"properties\":{\"property\":[]},\"projectLocator\":\"id:_Root\",\"vcsName\":\"jetbrains.git\"}"
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
+ - Sat, 19 Apr 2014 18:41:00 GMT
205
+ Transfer-Encoding:
206
+ - chunked
207
+ Server:
208
+ - Apache-Coyote/1.1
209
+ Set-Cookie:
210
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
211
+ - TCSESSIONID=DF482D553549308F6595FB1F6E095CC7; Path=/; HttpOnly
212
+ Content-Type:
213
+ - application/json
214
+ Pragma:
215
+ - no-cache
216
+ Expires:
217
+ - Thu, 01 Jan 1970 00:00:00 GMT
218
+ Cache-Control:
219
+ - no-cache
220
+ - no-store
221
+ body:
222
+ string: "{\"id\":\"Root_SampleVcsRoot\",\"name\":\"Sample VCS Root\",\"vcsName\":\"jetbrains.git\",\"status\":\"NOT_MONITORED\",\"lastChecked\":\"20140419T173243+0000\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_SampleVcsRoot\",\"project\":{\"id\":\"_Root\",\"name\":\"<Root project>\",\"href\":\"/httpAuth/app/rest/projects/id:_Root\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=_Root\"},\"properties\":{\"property\":[]},\"vcsRootInstances\":{\"href\":\"/httpAuth/app/rest/vcs-root-instances?locator=vcsRoot:(id:Root_SampleVcsRoot)\"}}"
223
+ http_version:
224
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
225
+ - request:
226
+ method: post
227
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
228
+ body:
229
+ string: "{\"name\":\"Sample Build Configuration\"}"
230
+ headers:
231
+ Accept:
232
+ - application/json
233
+ Content-Type:
234
+ - application/json
235
+ response:
236
+ status:
237
+ code: 200
238
+ message: OK
239
+ headers:
240
+ Date:
241
+ - Sat, 19 Apr 2014 18:41:00 GMT
242
+ Transfer-Encoding:
243
+ - chunked
244
+ Server:
245
+ - Apache-Coyote/1.1
246
+ Set-Cookie:
247
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
248
+ - TCSESSIONID=F2B898692AA1EC3BE998245A1F49FB4A; Path=/; HttpOnly
249
+ Content-Type:
250
+ - application/json
251
+ Pragma:
252
+ - no-cache
253
+ Expires:
254
+ - Thu, 01 Jan 1970 00:00:00 GMT
255
+ Cache-Control:
256
+ - no-cache
257
+ - no-store
258
+ body:
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
+ http_version:
261
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
262
+ - request:
263
+ method: post
264
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/vcs-root-entries
265
+ body:
266
+ string: "{\"vcs-root\":{\"id\":\"Root_SampleVcsRoot\"},\"checkout-rules\":\"+:trunk => .\"}"
267
+ headers:
268
+ Accept:
269
+ - application/json
270
+ Content-Type:
271
+ - application/json
272
+ response:
273
+ status:
274
+ code: 200
275
+ message: OK
276
+ headers:
277
+ Date:
278
+ - Sat, 19 Apr 2014 18:41:00 GMT
279
+ Transfer-Encoding:
280
+ - chunked
281
+ Server:
282
+ - Apache-Coyote/1.1
283
+ Set-Cookie:
284
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
285
+ - TCSESSIONID=27F45AEB3DE9FF7873A7410C77ED1521; Path=/; HttpOnly
286
+ Content-Type:
287
+ - application/json
288
+ Pragma:
289
+ - no-cache
290
+ Expires:
291
+ - Thu, 01 Jan 1970 00:00:00 GMT
292
+ Cache-Control:
293
+ - no-cache
294
+ - no-store
295
+ body:
296
+ string: "{\"id\":\"Root_SampleVcsRoot\",\"vcs-root\":{\"id\":\"Root_SampleVcsRoot\",\"name\":\"Sample VCS Root\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_SampleVcsRoot\"},\"checkout-rules\":\"+:trunk => .\"}"
297
+ http_version:
298
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
299
+ - request:
300
+ method: get
301
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/vcs-root-entries
302
+ body:
303
+ string: ""
304
+ headers:
305
+ Accept:
306
+ - application/json
307
+ Content-Type:
308
+ - application/json
309
+ response:
310
+ status:
311
+ code: 200
312
+ message: OK
313
+ headers:
314
+ Date:
315
+ - Sat, 19 Apr 2014 18:41:00 GMT
316
+ Transfer-Encoding:
317
+ - chunked
318
+ Server:
319
+ - Apache-Coyote/1.1
320
+ Set-Cookie:
321
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
322
+ - TCSESSIONID=6B7B50B2D55A1456B3BCF7BD44E9B98B; Path=/; HttpOnly
323
+ Content-Type:
324
+ - application/json
325
+ Pragma:
326
+ - no-cache
327
+ Expires:
328
+ - Thu, 01 Jan 1970 00:00:00 GMT
329
+ Cache-Control:
330
+ - no-cache
331
+ - no-store
332
+ body:
333
+ string: "{\"vcs-root-entry\":[{\"id\":\"Root_SampleVcsRoot\",\"vcs-root\":{\"id\":\"Root_SampleVcsRoot\",\"name\":\"Sample VCS Root\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_SampleVcsRoot\"},\"checkout-rules\":\"+:trunk => .\"}]}"
334
+ http_version:
335
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
@@ -0,0 +1,261 @@
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
+ - Sat, 19 Apr 2014 18:41:00 GMT
21
+ Transfer-Encoding:
22
+ - chunked
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ Set-Cookie:
26
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
27
+ - TCSESSIONID=880B1BF1416E0B5A6277C2AC2ACD1379; Path=/; HttpOnly
28
+ Content-Type:
29
+ - application/json
30
+ Pragma:
31
+ - no-cache
32
+ Expires:
33
+ - Thu, 01 Jan 1970 00:00:00 GMT
34
+ Cache-Control:
35
+ - no-cache
36
+ - no-store
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: Sat, 19 Apr 2014 18:38:15 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
+ - Sat, 19 Apr 2014 18:41:00 GMT
58
+ Transfer-Encoding:
59
+ - chunked
60
+ Server:
61
+ - Apache-Coyote/1.1
62
+ Set-Cookie:
63
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
64
+ - TCSESSIONID=870A668028D0A6989135E240421A2C4C; Path=/; HttpOnly
65
+ Content-Type:
66
+ - text/plain
67
+ Pragma:
68
+ - no-cache
69
+ Expires:
70
+ - Thu, 01 Jan 1970 00:00:00 GMT
71
+ Cache-Control:
72
+ - no-cache
73
+ - no-store
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: Sat, 19 Apr 2014 18:38:15 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
+ - Sat, 19 Apr 2014 18:41:00 GMT
98
+ Server:
99
+ - Apache-Coyote/1.1
100
+ Set-Cookie:
101
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
102
+ - TCSESSIONID=07911734A42EB1366A86243526EBA2CA; Path=/; HttpOnly
103
+ Pragma:
104
+ - no-cache
105
+ Expires:
106
+ - Thu, 01 Jan 1970 00:00:00 GMT
107
+ Cache-Control:
108
+ - no-cache
109
+ - no-store
110
+ body:
111
+ string: ""
112
+ http_version:
113
+ recorded_at: Sat, 19 Apr 2014 18:38:15 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
+ - Sat, 19 Apr 2014 18:41:00 GMT
131
+ Transfer-Encoding:
132
+ - chunked
133
+ Server:
134
+ - Apache-Coyote/1.1
135
+ Set-Cookie:
136
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
137
+ - TCSESSIONID=0DEF7D5631AC2D66B1FCDEEC1872222B; Path=/; HttpOnly
138
+ Content-Type:
139
+ - application/json
140
+ Pragma:
141
+ - no-cache
142
+ Expires:
143
+ - Thu, 01 Jan 1970 00:00:00 GMT
144
+ Cache-Control:
145
+ - no-cache
146
+ - no-store
147
+ body:
148
+ string: "{\"count\":0,\"vcs-root\":[]}"
149
+ http_version:
150
+ recorded_at: Sat, 19 Apr 2014 18:38:15 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
+ - Sat, 19 Apr 2014 18:41:00 GMT
168
+ Transfer-Encoding:
169
+ - chunked
170
+ Server:
171
+ - Apache-Coyote/1.1
172
+ Set-Cookie:
173
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
174
+ - TCSESSIONID=BB00DDC02A8F96896FAA486ADD478A7E; Path=/; HttpOnly
175
+ Content-Type:
176
+ - application/json
177
+ Pragma:
178
+ - no-cache
179
+ Expires:
180
+ - Thu, 01 Jan 1970 00:00:00 GMT
181
+ Cache-Control:
182
+ - no-cache
183
+ - no-store
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: Sat, 19 Apr 2014 18:38:15 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
+ - Sat, 19 Apr 2014 18:41:00 GMT
205
+ Transfer-Encoding:
206
+ - chunked
207
+ Server:
208
+ - Apache-Coyote/1.1
209
+ Set-Cookie:
210
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
211
+ - TCSESSIONID=5A815ED0420F71974219C1AC1D95694D; Path=/; HttpOnly
212
+ Content-Type:
213
+ - application/json
214
+ Pragma:
215
+ - no-cache
216
+ Expires:
217
+ - Thu, 01 Jan 1970 00:00:00 GMT
218
+ Cache-Control:
219
+ - no-cache
220
+ - no-store
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: Sat, 19 Apr 2014 18:38:15 GMT
225
+ - request:
226
+ method: get
227
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration
228
+ body:
229
+ string: ""
230
+ headers:
231
+ Accept:
232
+ - application/json
233
+ Content-Type:
234
+ - application/json
235
+ response:
236
+ status:
237
+ code: 200
238
+ message: OK
239
+ headers:
240
+ Date:
241
+ - Sat, 19 Apr 2014 18:41:00 GMT
242
+ Transfer-Encoding:
243
+ - chunked
244
+ Server:
245
+ - Apache-Coyote/1.1
246
+ Set-Cookie:
247
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
248
+ - TCSESSIONID=A42B2D05347D901B33F212C8344D7432; Path=/; HttpOnly
249
+ Content-Type:
250
+ - application/json
251
+ Pragma:
252
+ - no-cache
253
+ Expires:
254
+ - Thu, 01 Jan 1970 00:00:00 GMT
255
+ Cache-Control:
256
+ - no-cache
257
+ - no-store
258
+ body:
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
+ http_version:
261
+ recorded_at: Sat, 19 Apr 2014 18:38:15 GMT