teamcity_ruby 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +42 -0
- data/Rakefile +5 -0
- data/lib/teamcity_ruby/build_configuration.rb +86 -0
- data/lib/teamcity_ruby/element_builder.rb +27 -0
- data/lib/teamcity_ruby/project.rb +52 -0
- data/lib/teamcity_ruby/resource.rb +26 -0
- data/lib/teamcity_ruby/vcs_root.rb +49 -0
- data/lib/teamcity_ruby/version.rb +3 -0
- data/lib/teamcity_ruby.rb +28 -0
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/a_existing_build_configuration/can_get_a_build_step_added_to_it.yml +331 -0
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/a_existing_build_configuration/can_get_a_build_trigger_added_to_it.yml +298 -0
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/a_existing_build_configuration/can_get_a_vcs_root_attached_with_specific_checkout_rules.yml +335 -0
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml +261 -0
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml +397 -0
- data/spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml +301 -0
- data/spec/cassettes/TeamcityRuby_Project/creates_a_project_with_a_parent_project.yml +154 -0
- data/spec/cassettes/TeamcityRuby_Project/destroys_a_specific_project.yml +223 -0
- data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_id_locator.yml +220 -0
- data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_name_locator.yml +187 -0
- data/spec/cassettes/TeamcityRuby_Project/lists_all_projects_including_root_built_in_on_TeamCity_.yml +224 -0
- data/spec/cassettes/TeamcityRuby_VcsRoot/lists_all_vcs_roots.yml +151 -0
- data/spec/spec_helper.rb +32 -0
- data/spec/teamcity_ruby/build_configuration_spec.rb +59 -0
- data/spec/teamcity_ruby/element_builder_spec.rb +29 -0
- data/spec/teamcity_ruby/project_spec.rb +59 -0
- data/spec/teamcity_ruby/vcs_root_spec.rb +21 -0
- data/teamcity_ruby.gemspec +31 -0
- metadata +242 -0
@@ -0,0 +1,154 @@
|
|
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:02 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=7F757D1E24E4C426DE18A50EFF9364A7; 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\"}]}"
|
39
|
+
http_version:
|
40
|
+
recorded_at: Sat, 19 Apr 2014 18:38:17 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:02 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=1B04D7AB5FB60504B3F37946B17AA724; 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:17 GMT
|
81
|
+
- request:
|
82
|
+
method: post
|
83
|
+
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
|
84
|
+
body:
|
85
|
+
string: "{\"name\":\"Petshop Group\"}"
|
86
|
+
headers:
|
87
|
+
Accept:
|
88
|
+
- application/json
|
89
|
+
Content-Type:
|
90
|
+
- application/json
|
91
|
+
response:
|
92
|
+
status:
|
93
|
+
code: 200
|
94
|
+
message: OK
|
95
|
+
headers:
|
96
|
+
Date:
|
97
|
+
- Sat, 19 Apr 2014 18:41:02 GMT
|
98
|
+
Transfer-Encoding:
|
99
|
+
- chunked
|
100
|
+
Server:
|
101
|
+
- Apache-Coyote/1.1
|
102
|
+
Set-Cookie:
|
103
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
104
|
+
- TCSESSIONID=402457D5EC25E4E675FDAAC1D25B8609; Path=/; HttpOnly
|
105
|
+
Content-Type:
|
106
|
+
- application/json
|
107
|
+
Pragma:
|
108
|
+
- no-cache
|
109
|
+
Expires:
|
110
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
111
|
+
Cache-Control:
|
112
|
+
- no-cache
|
113
|
+
- no-store
|
114
|
+
body:
|
115
|
+
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\"}"
|
116
|
+
http_version:
|
117
|
+
recorded_at: Sat, 19 Apr 2014 18:38:17 GMT
|
118
|
+
- request:
|
119
|
+
method: post
|
120
|
+
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
|
121
|
+
body:
|
122
|
+
string: "{\"parentProject\":{\"id\":\"PetshopGroup\"},\"name\":\"Sample Project\"}"
|
123
|
+
headers:
|
124
|
+
Accept:
|
125
|
+
- application/json
|
126
|
+
Content-Type:
|
127
|
+
- application/json
|
128
|
+
response:
|
129
|
+
status:
|
130
|
+
code: 200
|
131
|
+
message: OK
|
132
|
+
headers:
|
133
|
+
Date:
|
134
|
+
- Sat, 19 Apr 2014 18:41:02 GMT
|
135
|
+
Transfer-Encoding:
|
136
|
+
- chunked
|
137
|
+
Server:
|
138
|
+
- Apache-Coyote/1.1
|
139
|
+
Set-Cookie:
|
140
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
141
|
+
- TCSESSIONID=3E5EFD46972DACCB361A5C04ED6DA3B4; Path=/; HttpOnly
|
142
|
+
Content-Type:
|
143
|
+
- application/json
|
144
|
+
Pragma:
|
145
|
+
- no-cache
|
146
|
+
Expires:
|
147
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
148
|
+
Cache-Control:
|
149
|
+
- no-cache
|
150
|
+
- no-store
|
151
|
+
body:
|
152
|
+
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\"}"
|
153
|
+
http_version:
|
154
|
+
recorded_at: Sat, 19 Apr 2014 18:38:17 GMT
|
@@ -0,0 +1,223 @@
|
|
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:02 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=1B3B925D6D32A708BE066BBAA6F7B853; 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\":\"PetshopApp\",\"name\":\"Petshop App\",\"href\":\"/httpAuth/app/rest/projects/id:PetshopApp\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=PetshopApp\",\"parentProjectId\":\"_Root\"}]}"
|
39
|
+
http_version:
|
40
|
+
recorded_at: Sat, 19 Apr 2014 18:38:17 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:02 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=FC137A7C3F7A9A79078E29A20C66DBA1; 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:17 GMT
|
81
|
+
- request:
|
82
|
+
method: delete
|
83
|
+
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:PetshopApp
|
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:02 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=1C8418D16A20EA8084F31E6A563E1AFA; 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:17 GMT
|
114
|
+
- request:
|
115
|
+
method: post
|
116
|
+
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
|
117
|
+
body:
|
118
|
+
string: "{\"name\":\"Petshop App\"}"
|
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:02 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=65A7B50AD87E2FACE04575F7F49AB5BE; 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: "{\"id\":\"PetshopApp\",\"name\":\"Petshop App\",\"href\":\"/httpAuth/app/rest/projects/id:PetshopApp\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=PetshopApp\",\"parentProjectId\":\"_Root\"}"
|
149
|
+
http_version:
|
150
|
+
recorded_at: Sat, 19 Apr 2014 18:38:17 GMT
|
151
|
+
- request:
|
152
|
+
method: delete
|
153
|
+
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:PetshopApp
|
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:02 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=73CD4ACFAFE8BB6A7BF809BE0DBB2AEF; 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:17 GMT
|
184
|
+
- request:
|
185
|
+
method: get
|
186
|
+
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:PetshopApp
|
187
|
+
body:
|
188
|
+
string: ""
|
189
|
+
headers:
|
190
|
+
Accept:
|
191
|
+
- application/json
|
192
|
+
Content-Type:
|
193
|
+
- application/json
|
194
|
+
response:
|
195
|
+
status:
|
196
|
+
code: 404
|
197
|
+
message: Not Found
|
198
|
+
headers:
|
199
|
+
Date:
|
200
|
+
- Sat, 19 Apr 2014 18:41:02 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=F109DE117C9E668ED44A01250289B169; Path=/; HttpOnly
|
208
|
+
Content-Type:
|
209
|
+
- text/plain
|
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: |-
|
219
|
+
Error has occurred during request processing (Not Found).
|
220
|
+
Error: jetbrains.buildServer.server.rest.errors.NotFoundException: No project found by locator 'id:PetshopApp'. Project cannot be found by external id 'PetshopApp'.
|
221
|
+
Could not find the entity requested. Check the reference is correct and the user has permissions to access the entity.
|
222
|
+
http_version:
|
223
|
+
recorded_at: Sat, 19 Apr 2014 18:38:17 GMT
|
@@ -0,0 +1,220 @@
|
|
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=C2E615700B13C9F17B09450104BE5BE3; 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\":\"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\"}]}"
|
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=A4C6E9B4A671B381ADD083AB2DF883E1; 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:Project1
|
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=398B9394ECA4CA05554F4B8F80722482; 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: delete
|
116
|
+
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:Project2
|
117
|
+
body:
|
118
|
+
string: ""
|
119
|
+
headers:
|
120
|
+
Accept:
|
121
|
+
- application/json
|
122
|
+
Content-Type:
|
123
|
+
- application/json
|
124
|
+
response:
|
125
|
+
status:
|
126
|
+
code: 204
|
127
|
+
message: No Content
|
128
|
+
headers:
|
129
|
+
Date:
|
130
|
+
- Sat, 19 Apr 2014 18:41:01 GMT
|
131
|
+
Server:
|
132
|
+
- Apache-Coyote/1.1
|
133
|
+
Set-Cookie:
|
134
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
135
|
+
- TCSESSIONID=938B9B495B15FDA7CE219624D5934585; Path=/; HttpOnly
|
136
|
+
Pragma:
|
137
|
+
- no-cache
|
138
|
+
Expires:
|
139
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
140
|
+
Cache-Control:
|
141
|
+
- no-cache
|
142
|
+
- no-store
|
143
|
+
body:
|
144
|
+
string: ""
|
145
|
+
http_version:
|
146
|
+
recorded_at: Sat, 19 Apr 2014 18:38:16 GMT
|
147
|
+
- request:
|
148
|
+
method: post
|
149
|
+
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
|
150
|
+
body:
|
151
|
+
string: "{\"name\":\"Petshop App\"}"
|
152
|
+
headers:
|
153
|
+
Accept:
|
154
|
+
- application/json
|
155
|
+
Content-Type:
|
156
|
+
- application/json
|
157
|
+
response:
|
158
|
+
status:
|
159
|
+
code: 200
|
160
|
+
message: OK
|
161
|
+
headers:
|
162
|
+
Date:
|
163
|
+
- Sat, 19 Apr 2014 18:41:01 GMT
|
164
|
+
Transfer-Encoding:
|
165
|
+
- chunked
|
166
|
+
Server:
|
167
|
+
- Apache-Coyote/1.1
|
168
|
+
Set-Cookie:
|
169
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
170
|
+
- TCSESSIONID=438C61BA1E43C719B94DEE13EC20F85F; Path=/; HttpOnly
|
171
|
+
Content-Type:
|
172
|
+
- application/json
|
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: "{\"id\":\"PetshopApp\",\"name\":\"Petshop App\",\"href\":\"/httpAuth/app/rest/projects/id:PetshopApp\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=PetshopApp\",\"parentProjectId\":\"_Root\"}"
|
182
|
+
http_version:
|
183
|
+
recorded_at: Sat, 19 Apr 2014 18:38:17 GMT
|
184
|
+
- request:
|
185
|
+
method: get
|
186
|
+
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:PetshopApp
|
187
|
+
body:
|
188
|
+
string: ""
|
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=9E38059C9FF222156BF0A742B7ED95FF; 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\":\"PetshopApp\",\"name\":\"Petshop App\",\"href\":\"/httpAuth/app/rest/projects/id:PetshopApp\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=PetshopApp\",\"parentProjectId\":\"_Root\"}"
|
219
|
+
http_version:
|
220
|
+
recorded_at: Sat, 19 Apr 2014 18:38:17 GMT
|