teamcity_ruby 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. data/lib/teamcity_ruby/agent_pool.rb +1 -1
  2. data/lib/teamcity_ruby/resource.rb +3 -1
  3. data/lib/teamcity_ruby/vcs_root.rb +10 -3
  4. data/lib/teamcity_ruby/version.rb +1 -1
  5. data/spec/cassettes/TeamcityRuby_AgentPool/creates_an_agent_pool.yml +99 -99
  6. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_step_added_to_it.yml +107 -107
  7. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_trigger_added_to_it.yml +95 -95
  8. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_vcs_root_attached_to_it_with_specific_checkout_rules.yml +142 -105
  9. data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_settings_definitions.yml +104 -104
  10. data/spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml +82 -82
  11. data/spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml +104 -104
  12. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml +94 -94
  13. data/spec/cassettes/TeamcityRuby_Project/creates_a_project_with_a_parent_project.yml +49 -49
  14. data/spec/cassettes/TeamcityRuby_Project/destroys_a_specific_project.yml +68 -68
  15. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_id_locator.yml +68 -68
  16. data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_name_locator.yml +58 -58
  17. data/spec/cassettes/TeamcityRuby_Project/lists_all_projects_including_root_built_in_on_TeamCity_.yml +70 -70
  18. data/spec/cassettes/TeamcityRuby_VcsRoot/lists_all_vcs_roots.yml +118 -44
  19. data/spec/teamcity_ruby/agent_pool_spec.rb +1 -1
  20. data/spec/teamcity_ruby/vcs_root_spec.rb +1 -0
  21. metadata +3 -3
@@ -6,67 +6,67 @@ http_interactions:
6
6
  body:
7
7
  string: ""
8
8
  headers:
9
- Accept:
10
- - application/json
11
9
  Content-Type:
12
10
  - application/json
11
+ Accept:
12
+ - application/json
13
13
  response:
14
14
  status:
15
15
  code: 200
16
16
  message: OK
17
17
  headers:
18
- Set-Cookie:
19
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
20
- - TCSESSIONID=BF77A4FE5FF9AED2BA0EC811E6D653EB; Path=/; HttpOnly
21
- Pragma:
22
- - no-cache
23
18
  Content-Type:
24
19
  - application/json
25
- Server:
26
- - Apache-Coyote/1.1
27
- Date:
28
- - Fri, 23 May 2014 07:28:37 GMT
29
20
  Expires:
30
21
  - Thu, 01 Jan 1970 00:00:00 GMT
22
+ Pragma:
23
+ - no-cache
24
+ Date:
25
+ - Fri, 23 May 2014 15:05:36 GMT
26
+ Set-Cookie:
27
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
28
+ - TCSESSIONID=5B14EC250A579589E12B0775D11F6E13; Path=/; HttpOnly
31
29
  Transfer-Encoding:
32
30
  - chunked
31
+ Server:
32
+ - Apache-Coyote/1.1
33
33
  Cache-Control:
34
34
  - no-cache
35
35
  - no-store
36
36
  body:
37
37
  string: "{\"project\":[{\"id\":\"_Root\",\"name\":\"<Root project>\",\"href\":\"/httpAuth/app/rest/projects/id:_Root\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=_Root\"},{\"id\":\"SampleProject\",\"name\":\"Sample Project\",\"href\":\"/httpAuth/app/rest/projects/id:SampleProject\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=SampleProject\",\"parentProjectId\":\"_Root\"}]}"
38
38
  http_version:
39
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
39
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
40
40
  - request:
41
41
  method: delete
42
42
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:_Root
43
43
  body:
44
44
  string: ""
45
45
  headers:
46
- Accept:
47
- - application/json
48
46
  Content-Type:
49
47
  - application/json
48
+ Accept:
49
+ - application/json
50
50
  response:
51
51
  status:
52
52
  code: 403
53
53
  message: Forbidden
54
54
  headers:
55
- Set-Cookie:
56
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
57
- - TCSESSIONID=0A1A59FFE4A172FF87429038FDA2A637; Path=/; HttpOnly
58
- Pragma:
59
- - no-cache
60
55
  Content-Type:
61
56
  - text/plain
62
- Server:
63
- - Apache-Coyote/1.1
64
- Date:
65
- - Fri, 23 May 2014 07:28:37 GMT
66
57
  Expires:
67
58
  - Thu, 01 Jan 1970 00:00:00 GMT
59
+ Pragma:
60
+ - no-cache
61
+ Date:
62
+ - Fri, 23 May 2014 15:05:36 GMT
63
+ Set-Cookie:
64
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
65
+ - TCSESSIONID=16FDD35628FD216F0F3A61659E06AD43; Path=/; HttpOnly
68
66
  Transfer-Encoding:
69
67
  - chunked
68
+ Server:
69
+ - Apache-Coyote/1.1
70
70
  Cache-Control:
71
71
  - no-cache
72
72
  - no-store
@@ -76,149 +76,149 @@ http_interactions:
76
76
  Error: jetbrains.buildServer.serverSide.auth.AccessDeniedException: Root project cannot be removed
77
77
  Access denied. Check the user has enough permissions to perform the operation.
78
78
  http_version:
79
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
79
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
80
80
  - request:
81
81
  method: delete
82
82
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject
83
83
  body:
84
84
  string: ""
85
85
  headers:
86
- Accept:
87
- - application/json
88
86
  Content-Type:
89
87
  - application/json
88
+ Accept:
89
+ - application/json
90
90
  response:
91
91
  status:
92
92
  code: 204
93
93
  message: No Content
94
94
  headers:
95
- Set-Cookie:
96
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
97
- - TCSESSIONID=69D48F18BC2DC0A6980A2F1AF4C71770; Path=/; HttpOnly
95
+ Expires:
96
+ - Thu, 01 Jan 1970 00:00:00 GMT
98
97
  Pragma:
99
98
  - no-cache
99
+ Date:
100
+ - Fri, 23 May 2014 15:05:36 GMT
101
+ Set-Cookie:
102
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
103
+ - TCSESSIONID=DA775C1F301EA189E7D88467C435A456; Path=/; HttpOnly
100
104
  Server:
101
105
  - Apache-Coyote/1.1
102
- Date:
103
- - Fri, 23 May 2014 07:28:37 GMT
104
- Expires:
105
- - Thu, 01 Jan 1970 00:00:00 GMT
106
106
  Cache-Control:
107
107
  - no-cache
108
108
  - no-store
109
109
  body:
110
110
  string: ""
111
111
  http_version:
112
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
112
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
113
113
  - request:
114
114
  method: post
115
115
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
116
116
  body:
117
117
  string: "{\"name\":\"Project 1\"}"
118
118
  headers:
119
- Accept:
120
- - application/json
121
119
  Content-Type:
122
120
  - application/json
121
+ Accept:
122
+ - application/json
123
123
  response:
124
124
  status:
125
125
  code: 200
126
126
  message: OK
127
127
  headers:
128
- Set-Cookie:
129
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
130
- - TCSESSIONID=1A415E1F63B0868154CBB5B9F7C9BADE; Path=/; HttpOnly
131
- Pragma:
132
- - no-cache
133
128
  Content-Type:
134
129
  - application/json
135
- Server:
136
- - Apache-Coyote/1.1
137
- Date:
138
- - Fri, 23 May 2014 07:28:37 GMT
139
130
  Expires:
140
131
  - Thu, 01 Jan 1970 00:00:00 GMT
132
+ Pragma:
133
+ - no-cache
134
+ Date:
135
+ - Fri, 23 May 2014 15:05:36 GMT
136
+ Set-Cookie:
137
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
138
+ - TCSESSIONID=D9B14C558376E21A235B97983451BE58; Path=/; HttpOnly
141
139
  Transfer-Encoding:
142
140
  - chunked
141
+ Server:
142
+ - Apache-Coyote/1.1
143
143
  Cache-Control:
144
144
  - no-cache
145
145
  - no-store
146
146
  body:
147
147
  string: "{\"id\":\"Project1\",\"name\":\"Project 1\",\"href\":\"/httpAuth/app/rest/projects/id:Project1\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=Project1\",\"parentProjectId\":\"_Root\"}"
148
148
  http_version:
149
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
149
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
150
150
  - request:
151
151
  method: post
152
152
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
153
153
  body:
154
154
  string: "{\"name\":\"Project 2\"}"
155
155
  headers:
156
- Accept:
157
- - application/json
158
156
  Content-Type:
159
157
  - application/json
158
+ Accept:
159
+ - application/json
160
160
  response:
161
161
  status:
162
162
  code: 200
163
163
  message: OK
164
164
  headers:
165
- Set-Cookie:
166
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
167
- - TCSESSIONID=28BDD3EB153B415B471240D5A2931B1F; Path=/; HttpOnly
168
- Pragma:
169
- - no-cache
170
165
  Content-Type:
171
166
  - application/json
172
- Server:
173
- - Apache-Coyote/1.1
174
- Date:
175
- - Fri, 23 May 2014 07:28:37 GMT
176
167
  Expires:
177
168
  - Thu, 01 Jan 1970 00:00:00 GMT
169
+ Pragma:
170
+ - no-cache
171
+ Date:
172
+ - Fri, 23 May 2014 15:05:36 GMT
173
+ Set-Cookie:
174
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
175
+ - TCSESSIONID=150813BB865A345786D302A785475326; Path=/; HttpOnly
178
176
  Transfer-Encoding:
179
177
  - chunked
178
+ Server:
179
+ - Apache-Coyote/1.1
180
180
  Cache-Control:
181
181
  - no-cache
182
182
  - no-store
183
183
  body:
184
184
  string: "{\"id\":\"Project2\",\"name\":\"Project 2\",\"href\":\"/httpAuth/app/rest/projects/id:Project2\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=Project2\",\"parentProjectId\":\"_Root\"}"
185
185
  http_version:
186
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
186
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
187
187
  - request:
188
188
  method: get
189
189
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
190
190
  body:
191
191
  string: ""
192
192
  headers:
193
- Accept:
194
- - application/json
195
193
  Content-Type:
196
194
  - application/json
195
+ Accept:
196
+ - application/json
197
197
  response:
198
198
  status:
199
199
  code: 200
200
200
  message: OK
201
201
  headers:
202
- Set-Cookie:
203
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
204
- - TCSESSIONID=483855FF5233D24DE382C6DC7946A044; Path=/; HttpOnly
205
- Pragma:
206
- - no-cache
207
202
  Content-Type:
208
203
  - application/json
209
- Server:
210
- - Apache-Coyote/1.1
211
- Date:
212
- - Fri, 23 May 2014 07:28:37 GMT
213
204
  Expires:
214
205
  - Thu, 01 Jan 1970 00:00:00 GMT
206
+ Pragma:
207
+ - no-cache
208
+ Date:
209
+ - Fri, 23 May 2014 15:05:36 GMT
210
+ Set-Cookie:
211
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
212
+ - TCSESSIONID=845360B90D2BEDA7A5A713DBE9B627FE; Path=/; HttpOnly
215
213
  Transfer-Encoding:
216
214
  - chunked
215
+ Server:
216
+ - Apache-Coyote/1.1
217
217
  Cache-Control:
218
218
  - no-cache
219
219
  - no-store
220
220
  body:
221
221
  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\":\"Project1\",\"name\":\"Project 1\",\"href\":\"/httpAuth/app/rest/projects/id:Project1\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=Project1\",\"parentProjectId\":\"_Root\"},{\"id\":\"Project2\",\"name\":\"Project 2\",\"href\":\"/httpAuth/app/rest/projects/id:Project2\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=Project2\",\"parentProjectId\":\"_Root\"}]}"
222
222
  http_version:
223
- recorded_at: Fri, 23 May 2014 07:28:37 GMT
223
+ recorded_at: Fri, 23 May 2014 15:05:37 GMT
224
224
  recorded_with: VCR 2.4.0
@@ -6,146 +6,220 @@ http_interactions:
6
6
  body:
7
7
  string: ""
8
8
  headers:
9
- Accept:
10
- - application/json
11
9
  Content-Type:
12
10
  - application/json
11
+ Accept:
12
+ - application/json
13
13
  response:
14
14
  status:
15
15
  code: 200
16
16
  message: OK
17
17
  headers:
18
- Set-Cookie:
19
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
20
- - TCSESSIONID=8863CEC1CD1A4A2348B2053AA7637528; Path=/; HttpOnly
21
- Pragma:
22
- - no-cache
23
18
  Content-Type:
24
19
  - application/json
25
- Server:
26
- - Apache-Coyote/1.1
27
- Date:
28
- - Fri, 23 May 2014 07:28:38 GMT
29
20
  Expires:
30
21
  - Thu, 01 Jan 1970 00:00:00 GMT
22
+ Pragma:
23
+ - no-cache
24
+ Date:
25
+ - Fri, 23 May 2014 15:05:38 GMT
26
+ Set-Cookie:
27
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
28
+ - TCSESSIONID=884CB65D85CBEE3D511869E0EFF23391; Path=/; HttpOnly
31
29
  Transfer-Encoding:
32
30
  - chunked
31
+ Server:
32
+ - Apache-Coyote/1.1
33
33
  Cache-Control:
34
34
  - no-cache
35
35
  - no-store
36
36
  body:
37
37
  string: "{\"count\":0,\"vcs-root\":[]}"
38
38
  http_version:
39
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
39
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
40
40
  - request:
41
41
  method: post
42
42
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
43
43
  body:
44
- string: "{\"projectLocator\":\"id:_Root\",\"vcsName\":\"jetbrains.git\",\"name\":\"VCS Root 1\",\"properties\":{\"property\":[{\"value\":\"git@example.com/repo.git\",\"name\":\"url\"}]}}"
44
+ string: "{\"projectLocator\":\"id:_Root\",\"name\":\"VCS Root 1\",\"properties\":{\"property\":[{\"value\":\"git@example.com/repo.git\",\"name\":\"url\"}]},\"vcsName\":\"jetbrains.git\"}"
45
45
  headers:
46
- Accept:
47
- - application/json
48
46
  Content-Type:
49
47
  - application/json
48
+ Accept:
49
+ - application/json
50
50
  response:
51
51
  status:
52
52
  code: 200
53
53
  message: OK
54
54
  headers:
55
+ Content-Type:
56
+ - application/json
57
+ Expires:
58
+ - Thu, 01 Jan 1970 00:00:00 GMT
59
+ Pragma:
60
+ - no-cache
61
+ Date:
62
+ - Fri, 23 May 2014 15:05:38 GMT
55
63
  Set-Cookie:
56
64
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
57
- - TCSESSIONID=CEAF2B8B3148AD5C269D36BFD2D95421; Path=/; HttpOnly
58
- Pragma:
65
+ - TCSESSIONID=CFCB58C7343E2FFE73B4D052A0095D14; Path=/; HttpOnly
66
+ Transfer-Encoding:
67
+ - chunked
68
+ Server:
69
+ - Apache-Coyote/1.1
70
+ Cache-Control:
59
71
  - no-cache
72
+ - no-store
73
+ body:
74
+ string: "{\"id\":\"Root_VcsRoot1\",\"name\":\"VCS Root 1\",\"vcsName\":\"jetbrains.git\",\"status\":\"NOT_MONITORED\",\"lastChecked\":\"20140523T040300+0000\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot1\",\"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\":[{\"name\":\"url\",\"value\":\"git@example.com/repo.git\"}]},\"vcsRootInstances\":{\"href\":\"/httpAuth/app/rest/vcs-root-instances?locator=vcsRoot:(id:Root_VcsRoot1)\"}}"
75
+ http_version:
76
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
77
+ - request:
78
+ method: get
79
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot1
80
+ body:
81
+ string: ""
82
+ headers:
83
+ Content-Type:
84
+ - application/json
85
+ Accept:
86
+ - application/json
87
+ response:
88
+ status:
89
+ code: 200
90
+ message: OK
91
+ headers:
60
92
  Content-Type:
61
93
  - application/json
62
- Server:
63
- - Apache-Coyote/1.1
64
- Date:
65
- - Fri, 23 May 2014 07:28:38 GMT
66
94
  Expires:
67
95
  - Thu, 01 Jan 1970 00:00:00 GMT
96
+ Pragma:
97
+ - no-cache
98
+ Date:
99
+ - Fri, 23 May 2014 15:05:38 GMT
100
+ Set-Cookie:
101
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
102
+ - TCSESSIONID=9CB6AFC98267396EC5E00E51AD6492B2; Path=/; HttpOnly
68
103
  Transfer-Encoding:
69
104
  - chunked
105
+ Server:
106
+ - Apache-Coyote/1.1
70
107
  Cache-Control:
71
108
  - no-cache
72
109
  - no-store
73
110
  body:
74
111
  string: "{\"id\":\"Root_VcsRoot1\",\"name\":\"VCS Root 1\",\"vcsName\":\"jetbrains.git\",\"status\":\"NOT_MONITORED\",\"lastChecked\":\"20140523T040300+0000\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot1\",\"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\":[{\"name\":\"url\",\"value\":\"git@example.com/repo.git\"}]},\"vcsRootInstances\":{\"href\":\"/httpAuth/app/rest/vcs-root-instances?locator=vcsRoot:(id:Root_VcsRoot1)\"}}"
75
112
  http_version:
76
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
113
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
77
114
  - request:
78
115
  method: post
79
116
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
80
117
  body:
81
- string: "{\"projectLocator\":\"id:_Root\",\"vcsName\":\"jetbrains.git\",\"name\":\"VCS Root 2\",\"properties\":{\"property\":[{\"value\":\"git@example.com/repo.git\",\"name\":\"url\"}]}}"
118
+ string: "{\"projectLocator\":\"id:_Root\",\"name\":\"VCS Root 2\",\"properties\":{\"property\":[{\"value\":\"git@example.com/repo.git\",\"name\":\"url\"}]},\"vcsName\":\"jetbrains.git\"}"
82
119
  headers:
83
- Accept:
84
- - application/json
85
120
  Content-Type:
86
121
  - application/json
122
+ Accept:
123
+ - application/json
87
124
  response:
88
125
  status:
89
126
  code: 200
90
127
  message: OK
91
128
  headers:
129
+ Content-Type:
130
+ - application/json
131
+ Expires:
132
+ - Thu, 01 Jan 1970 00:00:00 GMT
133
+ Pragma:
134
+ - no-cache
135
+ Date:
136
+ - Fri, 23 May 2014 15:05:38 GMT
92
137
  Set-Cookie:
93
138
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
94
- - TCSESSIONID=F17D6707D409A0F68DD9CA9F2D966876; Path=/; HttpOnly
95
- Pragma:
139
+ - TCSESSIONID=22CA22B10739C92EB975701B013A2A9F; Path=/; HttpOnly
140
+ Transfer-Encoding:
141
+ - chunked
142
+ Server:
143
+ - Apache-Coyote/1.1
144
+ Cache-Control:
96
145
  - no-cache
146
+ - no-store
147
+ body:
148
+ string: "{\"id\":\"Root_VcsRoot2\",\"name\":\"VCS Root 2\",\"vcsName\":\"jetbrains.git\",\"status\":\"NOT_MONITORED\",\"lastChecked\":\"20140523T040300+0000\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot2\",\"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\":[{\"name\":\"url\",\"value\":\"git@example.com/repo.git\"}]},\"vcsRootInstances\":{\"href\":\"/httpAuth/app/rest/vcs-root-instances?locator=vcsRoot:(id:Root_VcsRoot2)\"}}"
149
+ http_version:
150
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
151
+ - request:
152
+ method: get
153
+ uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot2
154
+ body:
155
+ string: ""
156
+ headers:
157
+ Content-Type:
158
+ - application/json
159
+ Accept:
160
+ - application/json
161
+ response:
162
+ status:
163
+ code: 200
164
+ message: OK
165
+ headers:
97
166
  Content-Type:
98
167
  - application/json
99
- Server:
100
- - Apache-Coyote/1.1
101
- Date:
102
- - Fri, 23 May 2014 07:28:38 GMT
103
168
  Expires:
104
169
  - Thu, 01 Jan 1970 00:00:00 GMT
170
+ Pragma:
171
+ - no-cache
172
+ Date:
173
+ - Fri, 23 May 2014 15:05:38 GMT
174
+ Set-Cookie:
175
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
176
+ - TCSESSIONID=E0E0FB6E5E5EC72A49BEEB5D018D1EDA; Path=/; HttpOnly
105
177
  Transfer-Encoding:
106
178
  - chunked
179
+ Server:
180
+ - Apache-Coyote/1.1
107
181
  Cache-Control:
108
182
  - no-cache
109
183
  - no-store
110
184
  body:
111
185
  string: "{\"id\":\"Root_VcsRoot2\",\"name\":\"VCS Root 2\",\"vcsName\":\"jetbrains.git\",\"status\":\"NOT_MONITORED\",\"lastChecked\":\"20140523T040300+0000\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot2\",\"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\":[{\"name\":\"url\",\"value\":\"git@example.com/repo.git\"}]},\"vcsRootInstances\":{\"href\":\"/httpAuth/app/rest/vcs-root-instances?locator=vcsRoot:(id:Root_VcsRoot2)\"}}"
112
186
  http_version:
113
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
187
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
114
188
  - request:
115
189
  method: get
116
190
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
117
191
  body:
118
192
  string: ""
119
193
  headers:
120
- Accept:
121
- - application/json
122
194
  Content-Type:
123
195
  - application/json
196
+ Accept:
197
+ - application/json
124
198
  response:
125
199
  status:
126
200
  code: 200
127
201
  message: OK
128
202
  headers:
129
- Set-Cookie:
130
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
131
- - TCSESSIONID=413E56C743F0A189E8635F1ADB69299B; Path=/; HttpOnly
132
- Pragma:
133
- - no-cache
134
203
  Content-Type:
135
204
  - application/json
136
- Server:
137
- - Apache-Coyote/1.1
138
- Date:
139
- - Fri, 23 May 2014 07:28:38 GMT
140
205
  Expires:
141
206
  - Thu, 01 Jan 1970 00:00:00 GMT
207
+ Pragma:
208
+ - no-cache
209
+ Date:
210
+ - Fri, 23 May 2014 15:05:38 GMT
211
+ Set-Cookie:
212
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
213
+ - TCSESSIONID=B641C942A310E23DA0AEDA01C9F02D11; Path=/; HttpOnly
142
214
  Transfer-Encoding:
143
215
  - chunked
216
+ Server:
217
+ - Apache-Coyote/1.1
144
218
  Cache-Control:
145
219
  - no-cache
146
220
  - no-store
147
221
  body:
148
222
  string: "{\"count\":2,\"vcs-root\":[{\"id\":\"Root_VcsRoot1\",\"name\":\"VCS Root 1\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot1\"},{\"id\":\"Root_VcsRoot2\",\"name\":\"VCS Root 2\",\"href\":\"/httpAuth/app/rest/vcs-roots/id:Root_VcsRoot2\"}]}"
149
223
  http_version:
150
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
224
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
151
225
  recorded_with: VCR 2.4.0