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,331 @@
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=93D400E7EA6009AC8E9FAECC552737B6; 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:16 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:01 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=A0BBFB28C79A6AD53AAB5E8E444AAD7C; 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:16 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:01 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=FD3C05EA3F9289A54CB4F0D05AAD57CE; 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:16 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:01 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=F43631682537BDA77AEE8BFBF6E99EE3; 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\":1,\"vcs-root\":[{\"id\":\"Root_SampleVcsRoot\",\"name\":\"Sample VCS Root\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_SampleVcsRoot\"}]}"
149
+ http_version:
150
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
151
+ - request:
152
+ method: delete
153
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots/id:Root_SampleVcsRoot
154
+ body:
155
+ string: ""
156
+ headers:
157
+ Accept:
158
+ - application/json
159
+ Content-Type:
160
+ - application/json
161
+ response:
162
+ status:
163
+ code: 204
164
+ message: No Content
165
+ headers:
166
+ Date:
167
+ - Sat, 19 Apr 2014 18:41:01 GMT
168
+ Server:
169
+ - Apache-Coyote/1.1
170
+ Set-Cookie:
171
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
172
+ - TCSESSIONID=1C4DB66D5CEE56B3632C9FF06672BDBF; Path=/; HttpOnly
173
+ Pragma:
174
+ - no-cache
175
+ Expires:
176
+ - Thu, 01 Jan 1970 00:00:00 GMT
177
+ Cache-Control:
178
+ - no-cache
179
+ - no-store
180
+ body:
181
+ string: ""
182
+ http_version:
183
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
184
+ - request:
185
+ method: post
186
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
187
+ body:
188
+ string: "{\"name\":\"Sample Project\"}"
189
+ headers:
190
+ Accept:
191
+ - application/json
192
+ Content-Type:
193
+ - application/json
194
+ response:
195
+ status:
196
+ code: 200
197
+ message: OK
198
+ headers:
199
+ Date:
200
+ - Sat, 19 Apr 2014 18:41:01 GMT
201
+ Transfer-Encoding:
202
+ - chunked
203
+ Server:
204
+ - Apache-Coyote/1.1
205
+ Set-Cookie:
206
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
207
+ - TCSESSIONID=6081BA606A34E6ED00C9BDBC9B511B9E; Path=/; HttpOnly
208
+ Content-Type:
209
+ - application/json
210
+ Pragma:
211
+ - no-cache
212
+ Expires:
213
+ - Thu, 01 Jan 1970 00:00:00 GMT
214
+ Cache-Control:
215
+ - no-cache
216
+ - no-store
217
+ body:
218
+ 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\"}"
219
+ http_version:
220
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
221
+ - request:
222
+ method: post
223
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject/buildTypes
224
+ body:
225
+ string: "{\"name\":\"Sample Build Configuration\"}"
226
+ headers:
227
+ Accept:
228
+ - application/json
229
+ Content-Type:
230
+ - application/json
231
+ response:
232
+ status:
233
+ code: 200
234
+ message: OK
235
+ headers:
236
+ Date:
237
+ - Sat, 19 Apr 2014 18:41:01 GMT
238
+ Transfer-Encoding:
239
+ - chunked
240
+ Server:
241
+ - Apache-Coyote/1.1
242
+ Set-Cookie:
243
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
244
+ - TCSESSIONID=FF4F050B07A9F32FA38B6AF493DA28C0; Path=/; HttpOnly
245
+ Content-Type:
246
+ - application/json
247
+ Pragma:
248
+ - no-cache
249
+ Expires:
250
+ - Thu, 01 Jan 1970 00:00:00 GMT
251
+ Cache-Control:
252
+ - no-cache
253
+ - no-store
254
+ body:
255
+ 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\":[]}}"
256
+ http_version:
257
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
258
+ - request:
259
+ method: post
260
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/steps
261
+ body:
262
+ string: "{\"type\":\"Maven\",\"name\":\"Sample Step\",\"properties\":{\"property\":[{\"value\":\"verify\",\"name\":\"goals\"}]}}"
263
+ headers:
264
+ Accept:
265
+ - application/json
266
+ Content-Type:
267
+ - application/json
268
+ response:
269
+ status:
270
+ code: 200
271
+ message: OK
272
+ headers:
273
+ Date:
274
+ - Sat, 19 Apr 2014 18:41:01 GMT
275
+ Transfer-Encoding:
276
+ - chunked
277
+ Server:
278
+ - Apache-Coyote/1.1
279
+ Set-Cookie:
280
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
281
+ - TCSESSIONID=2997F3ABCCF5466ADC508F54988D0AC2; Path=/; HttpOnly
282
+ Content-Type:
283
+ - application/json
284
+ Pragma:
285
+ - no-cache
286
+ Expires:
287
+ - Thu, 01 Jan 1970 00:00:00 GMT
288
+ Cache-Control:
289
+ - no-cache
290
+ - no-store
291
+ body:
292
+ string: "{\"id\":\"RUNNER_3\",\"name\":\"Sample Step\",\"type\":\"Maven\",\"properties\":{\"property\":[{\"name\":\"goals\",\"value\":\"verify\"}]}}"
293
+ http_version:
294
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
295
+ - request:
296
+ method: get
297
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/steps
298
+ body:
299
+ string: ""
300
+ headers:
301
+ Accept:
302
+ - application/json
303
+ Content-Type:
304
+ - application/json
305
+ response:
306
+ status:
307
+ code: 200
308
+ message: OK
309
+ headers:
310
+ Date:
311
+ - Sat, 19 Apr 2014 18:41:01 GMT
312
+ Transfer-Encoding:
313
+ - chunked
314
+ Server:
315
+ - Apache-Coyote/1.1
316
+ Set-Cookie:
317
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
318
+ - TCSESSIONID=02A5C9C49A6801D0337D184F8785DB7B; Path=/; HttpOnly
319
+ Content-Type:
320
+ - application/json
321
+ Pragma:
322
+ - no-cache
323
+ Expires:
324
+ - Thu, 01 Jan 1970 00:00:00 GMT
325
+ Cache-Control:
326
+ - no-cache
327
+ - no-store
328
+ body:
329
+ string: "{\"step\":[{\"id\":\"RUNNER_3\",\"name\":\"Sample Step\",\"type\":\"Maven\",\"properties\":{\"property\":[{\"name\":\"goals\",\"value\":\"verify\"}]}}]}"
330
+ http_version:
331
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
@@ -0,0 +1,298 @@
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:01 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=80389BCDF18A95F8B82DA116AB9940D0; 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:16 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:01 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=06AD4FB476087862E5AF36FE5577835F; 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:16 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:01 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=07AC623313A166A5CAB8DFDBE60DC745; 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:16 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:01 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=ADD4B852AFF09E6BF3032EF9D9526A3C; 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:16 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:01 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=24F133BF859DE7B24F6592699051262E; 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:16 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:01 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=BE3DA1EDAB3679DF91C85289300D8F16; 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:16 GMT
225
+ - request:
226
+ method: post
227
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/triggers
228
+ body:
229
+ string: "{\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"value\":\"true\",\"name\":\"perCheckinTriggering\"}]}}"
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:01 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=356ED2788567ACEC62D68181A236AA30; 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\":\"vcsTrigger\",\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"name\":\"perCheckinTriggering\",\"value\":\"true\"}]}}"
260
+ http_version:
261
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
262
+ - request:
263
+ method: get
264
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/id:SampleProject_SampleBuildConfiguration/triggers
265
+ body:
266
+ string: ""
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:01 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=74240B1852A10E8DBB0E7D28776EF479; 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: "{\"trigger\":[{\"id\":\"vcsTrigger\",\"type\":\"vcsTrigger\",\"properties\":{\"property\":[{\"name\":\"perCheckinTriggering\",\"value\":\"true\"}]}}]}"
297
+ http_version:
298
+ recorded_at: Sat, 19 Apr 2014 18:38:16 GMT