teamcity_ruby 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
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=BE499E20C3E3056E75F2165675C36B65; 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:38 GMT
26
+ Set-Cookie:
27
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
28
+ - TCSESSIONID=490B98DD1B491E340E80509E9BCD4FB1; 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\"}]}"
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: 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=F55D14B84901B6404B08534CD0993C4F; 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:38 GMT
63
+ Set-Cookie:
64
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
65
+ - TCSESSIONID=AAB88B73981049B10180AB7A920AE6FD; 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,79 +76,79 @@ 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:38 GMT
79
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
80
80
  - request:
81
81
  method: post
82
82
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
83
83
  body:
84
84
  string: "{\"name\":\"Petshop Group\"}"
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: 200
93
93
  message: OK
94
94
  headers:
95
- Set-Cookie:
96
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
97
- - TCSESSIONID=412DAD591781513F4CBE61E39C6C190A; Path=/; HttpOnly
98
- Pragma:
99
- - no-cache
100
95
  Content-Type:
101
96
  - application/json
102
- Server:
103
- - Apache-Coyote/1.1
104
- Date:
105
- - Fri, 23 May 2014 07:28:37 GMT
106
97
  Expires:
107
98
  - Thu, 01 Jan 1970 00:00:00 GMT
99
+ Pragma:
100
+ - no-cache
101
+ Date:
102
+ - Fri, 23 May 2014 15:05:38 GMT
103
+ Set-Cookie:
104
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
105
+ - TCSESSIONID=368123E1B099763B0557EFCD3357B803; Path=/; HttpOnly
108
106
  Transfer-Encoding:
109
107
  - chunked
108
+ Server:
109
+ - Apache-Coyote/1.1
110
110
  Cache-Control:
111
111
  - no-cache
112
112
  - no-store
113
113
  body:
114
114
  string: "{\"id\":\"PetshopGroup\",\"name\":\"Petshop Group\",\"href\":\"/httpAuth/app/rest/projects/id:PetshopGroup\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=PetshopGroup\",\"parentProjectId\":\"_Root\"}"
115
115
  http_version:
116
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
116
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
117
117
  - request:
118
118
  method: post
119
119
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
120
120
  body:
121
- string: "{\"parentProject\":{\"id\":\"PetshopGroup\"},\"name\":\"Sample Project\"}"
121
+ string: "{\"name\":\"Sample Project\",\"parentProject\":{\"id\":\"PetshopGroup\"}}"
122
122
  headers:
123
- Accept:
124
- - application/json
125
123
  Content-Type:
126
124
  - application/json
125
+ Accept:
126
+ - application/json
127
127
  response:
128
128
  status:
129
129
  code: 200
130
130
  message: OK
131
131
  headers:
132
- Set-Cookie:
133
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
134
- - TCSESSIONID=5B579A363E832852DD49777ED2141FA4; Path=/; HttpOnly
135
- Pragma:
136
- - no-cache
137
132
  Content-Type:
138
133
  - application/json
139
- Server:
140
- - Apache-Coyote/1.1
141
- Date:
142
- - Fri, 23 May 2014 07:28:38 GMT
143
134
  Expires:
144
135
  - Thu, 01 Jan 1970 00:00:00 GMT
136
+ Pragma:
137
+ - no-cache
138
+ Date:
139
+ - Fri, 23 May 2014 15:05:38 GMT
140
+ Set-Cookie:
141
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
142
+ - TCSESSIONID=677A31DF3ECA7871A2BA4CBE2ADE7F23; Path=/; HttpOnly
145
143
  Transfer-Encoding:
146
144
  - chunked
145
+ Server:
146
+ - Apache-Coyote/1.1
147
147
  Cache-Control:
148
148
  - no-cache
149
149
  - no-store
150
150
  body:
151
151
  string: "{\"id\":\"PetshopGroup_SampleProject\",\"name\":\"Sample Project\",\"href\":\"/httpAuth/app/rest/projects/id:PetshopGroup_SampleProject\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=PetshopGroup_SampleProject\",\"parentProjectId\":\"PetshopGroup\"}"
152
152
  http_version:
153
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
153
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
154
154
  recorded_with: VCR 2.4.0
@@ -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=6EACA4C702E2F412162E613022D40183; 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:38 GMT
26
+ Set-Cookie:
27
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
28
+ - TCSESSIONID=D7E52E042A6FA806B257BC04529BC200; 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\":\"PetshopApp\",\"name\":\"Petshop App\",\"href\":\"/httpAuth/app/rest/projects/id:PetshopApp\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=PetshopApp\",\"parentProjectId\":\"_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: 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=9479C221CB96EB3C8C56C22FAD84A3FA; 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:38 GMT
63
+ Set-Cookie:
64
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
65
+ - TCSESSIONID=A6895ED579A7F7E4329FE365B0E4FA16; 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,140 +76,140 @@ 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:38 GMT
79
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
80
80
  - request:
81
81
  method: delete
82
82
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:PetshopApp
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=4A920328AA90F10D4D35BFCCBC292F45; 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:38 GMT
101
+ Set-Cookie:
102
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
103
+ - TCSESSIONID=1C7FFA9B3986FEFA6DE9163E7CB8DF95; 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:38 GMT
112
+ recorded_at: Fri, 23 May 2014 15:05:38 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\":\"Petshop App\"}"
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=F0381218AB1AAC8ED8CA81B5C6AC9E59; 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:38 GMT
136
+ Set-Cookie:
137
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
138
+ - TCSESSIONID=FB96E152546A498AFA1F069688EBA81B; 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\":\"PetshopApp\",\"name\":\"Petshop App\",\"href\":\"/httpAuth/app/rest/projects/id:PetshopApp\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=PetshopApp\",\"parentProjectId\":\"_Root\"}"
148
148
  http_version:
149
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
149
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
150
150
  - request:
151
151
  method: delete
152
152
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:PetshopApp
153
153
  body:
154
154
  string: ""
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: 204
163
163
  message: No Content
164
164
  headers:
165
- Set-Cookie:
166
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
167
- - TCSESSIONID=07E70FAFD5FD976399DBA190927D9167; Path=/; HttpOnly
165
+ Expires:
166
+ - Thu, 01 Jan 1970 00:00:00 GMT
168
167
  Pragma:
169
168
  - no-cache
169
+ Date:
170
+ - Fri, 23 May 2014 15:05:38 GMT
171
+ Set-Cookie:
172
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
173
+ - TCSESSIONID=33368642FD1D0964B79CF57E5DBDA74E; Path=/; HttpOnly
170
174
  Server:
171
175
  - Apache-Coyote/1.1
172
- Date:
173
- - Fri, 23 May 2014 07:28:37 GMT
174
- Expires:
175
- - Thu, 01 Jan 1970 00:00:00 GMT
176
176
  Cache-Control:
177
177
  - no-cache
178
178
  - no-store
179
179
  body:
180
180
  string: ""
181
181
  http_version:
182
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
182
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
183
183
  - request:
184
184
  method: get
185
185
  uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:PetshopApp
186
186
  body:
187
187
  string: ""
188
188
  headers:
189
- Accept:
190
- - application/json
191
189
  Content-Type:
192
190
  - application/json
191
+ Accept:
192
+ - application/json
193
193
  response:
194
194
  status:
195
195
  code: 404
196
196
  message: Not Found
197
197
  headers:
198
- Set-Cookie:
199
- - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
200
- - TCSESSIONID=A029FC7FEA3A381E1818C6E07E62D8CF; Path=/; HttpOnly
201
- Pragma:
202
- - no-cache
203
198
  Content-Type:
204
199
  - text/plain
205
- Server:
206
- - Apache-Coyote/1.1
207
- Date:
208
- - Fri, 23 May 2014 07:28:37 GMT
209
200
  Expires:
210
201
  - Thu, 01 Jan 1970 00:00:00 GMT
202
+ Pragma:
203
+ - no-cache
204
+ Date:
205
+ - Fri, 23 May 2014 15:05:38 GMT
206
+ Set-Cookie:
207
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
208
+ - TCSESSIONID=09A974CCFAC634A3E37F71D93EC4048C; Path=/; HttpOnly
211
209
  Transfer-Encoding:
212
210
  - chunked
211
+ Server:
212
+ - Apache-Coyote/1.1
213
213
  Cache-Control:
214
214
  - no-cache
215
215
  - no-store
@@ -219,5 +219,5 @@ http_interactions:
219
219
  Error: jetbrains.buildServer.server.rest.errors.NotFoundException: No project found by locator 'id:PetshopApp'. Project cannot be found by external id 'PetshopApp'.
220
220
  Could not find the entity requested. Check the reference is correct and the user has permissions to access the entity.
221
221
  http_version:
222
- recorded_at: Fri, 23 May 2014 07:28:38 GMT
222
+ recorded_at: Fri, 23 May 2014 15:05:38 GMT
223
223
  recorded_with: VCR 2.4.0