teamcity_ruby 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/teamcity_ruby/build_configuration.rb +38 -15
- data/lib/teamcity_ruby/version.rb +1 -1
- data/lib/teamcity_ruby.rb +2 -0
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/{a_existing_build_configuration/can_get_a_build_step_added_to_it.yml → an_existing_build_configuration/has_a_build_step_added_to_it.yml} +103 -103
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/{a_existing_build_configuration/can_get_a_build_trigger_added_to_it.yml → an_existing_build_configuration/has_a_build_trigger_added_to_it.yml} +93 -93
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/{a_existing_build_configuration/can_get_a_vcs_root_attached_with_specific_checkout_rules.yml → an_existing_build_configuration/has_a_vcs_root_attached_to_it_with_specific_checkout_rules.yml} +106 -106
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_settings_definitions.yml +333 -0
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml +80 -80
- data/spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml +116 -116
- data/spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml +93 -93
- data/spec/cassettes/TeamcityRuby_Project/creates_a_project_with_a_parent_project.yml +48 -48
- data/spec/cassettes/TeamcityRuby_Project/destroys_a_specific_project.yml +64 -64
- data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_id_locator.yml +64 -64
- data/spec/cassettes/TeamcityRuby_Project/fetches_a_specific_project_by_name_locator.yml +56 -56
- data/spec/cassettes/TeamcityRuby_Project/lists_all_projects_including_root_built_in_on_TeamCity_.yml +68 -68
- data/spec/cassettes/TeamcityRuby_VcsRoot/lists_all_vcs_roots.yml +52 -52
- data/spec/spec_helper.rb +1 -0
- data/spec/teamcity_ruby/build_configuration_spec.rb +12 -4
- metadata +12 -10
data/spec/cassettes/TeamcityRuby_Project/lists_all_projects_including_root_built_in_on_TeamCity_.yml
CHANGED
@@ -17,27 +17,27 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
21
|
-
Transfer-Encoding:
|
22
|
-
- chunked
|
20
|
+
- Fri, 23 May 2014 04:53:06 GMT
|
23
21
|
Server:
|
24
22
|
- Apache-Coyote/1.1
|
25
|
-
|
26
|
-
-
|
27
|
-
-
|
28
|
-
Content-Type:
|
29
|
-
- application/json
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
- no-store
|
30
26
|
Pragma:
|
31
27
|
- no-cache
|
28
|
+
Transfer-Encoding:
|
29
|
+
- chunked
|
30
|
+
Content-Type:
|
31
|
+
- application/json
|
32
|
+
Set-Cookie:
|
33
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
34
|
+
- TCSESSIONID=2997C1402B294F3F584186A786BFDB56; Path=/; HttpOnly
|
32
35
|
Expires:
|
33
36
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
34
|
-
Cache-Control:
|
35
|
-
- no-cache
|
36
|
-
- no-store
|
37
37
|
body:
|
38
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
39
|
http_version:
|
40
|
-
recorded_at:
|
40
|
+
recorded_at: Fri, 23 May 2014 04:53:07 GMT
|
41
41
|
- request:
|
42
42
|
method: delete
|
43
43
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:_Root
|
@@ -54,30 +54,30 @@ http_interactions:
|
|
54
54
|
message: Forbidden
|
55
55
|
headers:
|
56
56
|
Date:
|
57
|
-
-
|
58
|
-
Transfer-Encoding:
|
59
|
-
- chunked
|
57
|
+
- Fri, 23 May 2014 04:53:06 GMT
|
60
58
|
Server:
|
61
59
|
- Apache-Coyote/1.1
|
62
|
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
Content-Type:
|
66
|
-
- text/plain
|
60
|
+
Cache-Control:
|
61
|
+
- no-cache
|
62
|
+
- no-store
|
67
63
|
Pragma:
|
68
64
|
- no-cache
|
65
|
+
Transfer-Encoding:
|
66
|
+
- chunked
|
67
|
+
Content-Type:
|
68
|
+
- text/plain
|
69
|
+
Set-Cookie:
|
70
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
71
|
+
- TCSESSIONID=50177E4D648333B40333ACB3FED2D542; Path=/; HttpOnly
|
69
72
|
Expires:
|
70
73
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
71
|
-
Cache-Control:
|
72
|
-
- no-cache
|
73
|
-
- no-store
|
74
74
|
body:
|
75
75
|
string: |-
|
76
76
|
Error has occurred during request processing (Forbidden).
|
77
77
|
Error: jetbrains.buildServer.serverSide.auth.AccessDeniedException: Root project cannot be removed
|
78
78
|
Access denied. Check the user has enough permissions to perform the operation.
|
79
79
|
http_version:
|
80
|
-
recorded_at:
|
80
|
+
recorded_at: Fri, 23 May 2014 04:53:07 GMT
|
81
81
|
- request:
|
82
82
|
method: delete
|
83
83
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject
|
@@ -94,23 +94,23 @@ http_interactions:
|
|
94
94
|
message: No Content
|
95
95
|
headers:
|
96
96
|
Date:
|
97
|
-
-
|
97
|
+
- Fri, 23 May 2014 04:53:06 GMT
|
98
98
|
Server:
|
99
99
|
- Apache-Coyote/1.1
|
100
|
-
|
101
|
-
-
|
102
|
-
-
|
100
|
+
Cache-Control:
|
101
|
+
- no-cache
|
102
|
+
- no-store
|
103
103
|
Pragma:
|
104
104
|
- no-cache
|
105
|
+
Set-Cookie:
|
106
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
107
|
+
- TCSESSIONID=8540C5940A1477BC721897162D4136C2; Path=/; HttpOnly
|
105
108
|
Expires:
|
106
109
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
107
|
-
Cache-Control:
|
108
|
-
- no-cache
|
109
|
-
- no-store
|
110
110
|
body:
|
111
111
|
string: ""
|
112
112
|
http_version:
|
113
|
-
recorded_at:
|
113
|
+
recorded_at: Fri, 23 May 2014 04:53:07 GMT
|
114
114
|
- request:
|
115
115
|
method: post
|
116
116
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
|
@@ -127,27 +127,27 @@ http_interactions:
|
|
127
127
|
message: OK
|
128
128
|
headers:
|
129
129
|
Date:
|
130
|
-
-
|
131
|
-
Transfer-Encoding:
|
132
|
-
- chunked
|
130
|
+
- Fri, 23 May 2014 04:53:06 GMT
|
133
131
|
Server:
|
134
132
|
- Apache-Coyote/1.1
|
135
|
-
|
136
|
-
-
|
137
|
-
-
|
138
|
-
Content-Type:
|
139
|
-
- application/json
|
133
|
+
Cache-Control:
|
134
|
+
- no-cache
|
135
|
+
- no-store
|
140
136
|
Pragma:
|
141
137
|
- no-cache
|
138
|
+
Transfer-Encoding:
|
139
|
+
- chunked
|
140
|
+
Content-Type:
|
141
|
+
- application/json
|
142
|
+
Set-Cookie:
|
143
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
144
|
+
- TCSESSIONID=A271CCE0CA07E37234F94A38F5FAE758; Path=/; HttpOnly
|
142
145
|
Expires:
|
143
146
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
144
|
-
Cache-Control:
|
145
|
-
- no-cache
|
146
|
-
- no-store
|
147
147
|
body:
|
148
148
|
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\"}"
|
149
149
|
http_version:
|
150
|
-
recorded_at:
|
150
|
+
recorded_at: Fri, 23 May 2014 04:53:07 GMT
|
151
151
|
- request:
|
152
152
|
method: post
|
153
153
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
|
@@ -164,27 +164,27 @@ http_interactions:
|
|
164
164
|
message: OK
|
165
165
|
headers:
|
166
166
|
Date:
|
167
|
-
-
|
168
|
-
Transfer-Encoding:
|
169
|
-
- chunked
|
167
|
+
- Fri, 23 May 2014 04:53:06 GMT
|
170
168
|
Server:
|
171
169
|
- Apache-Coyote/1.1
|
172
|
-
|
173
|
-
-
|
174
|
-
-
|
175
|
-
Content-Type:
|
176
|
-
- application/json
|
170
|
+
Cache-Control:
|
171
|
+
- no-cache
|
172
|
+
- no-store
|
177
173
|
Pragma:
|
178
174
|
- no-cache
|
175
|
+
Transfer-Encoding:
|
176
|
+
- chunked
|
177
|
+
Content-Type:
|
178
|
+
- application/json
|
179
|
+
Set-Cookie:
|
180
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
181
|
+
- TCSESSIONID=A3001065BC337B801362D0241DE6C5B8; Path=/; HttpOnly
|
179
182
|
Expires:
|
180
183
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
181
|
-
Cache-Control:
|
182
|
-
- no-cache
|
183
|
-
- no-store
|
184
184
|
body:
|
185
185
|
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\"}"
|
186
186
|
http_version:
|
187
|
-
recorded_at:
|
187
|
+
recorded_at: Fri, 23 May 2014 04:53:07 GMT
|
188
188
|
- request:
|
189
189
|
method: get
|
190
190
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects
|
@@ -201,24 +201,24 @@ http_interactions:
|
|
201
201
|
message: OK
|
202
202
|
headers:
|
203
203
|
Date:
|
204
|
-
-
|
205
|
-
Transfer-Encoding:
|
206
|
-
- chunked
|
204
|
+
- Fri, 23 May 2014 04:53:06 GMT
|
207
205
|
Server:
|
208
206
|
- Apache-Coyote/1.1
|
209
|
-
|
210
|
-
-
|
211
|
-
-
|
212
|
-
Content-Type:
|
213
|
-
- application/json
|
207
|
+
Cache-Control:
|
208
|
+
- no-cache
|
209
|
+
- no-store
|
214
210
|
Pragma:
|
215
211
|
- no-cache
|
212
|
+
Transfer-Encoding:
|
213
|
+
- chunked
|
214
|
+
Content-Type:
|
215
|
+
- application/json
|
216
|
+
Set-Cookie:
|
217
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
218
|
+
- TCSESSIONID=47B76534E4B5872AE74F51B1591E6E33; Path=/; HttpOnly
|
216
219
|
Expires:
|
217
220
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
218
|
-
Cache-Control:
|
219
|
-
- no-cache
|
220
|
-
- no-store
|
221
221
|
body:
|
222
222
|
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\"}]}"
|
223
223
|
http_version:
|
224
|
-
recorded_at:
|
224
|
+
recorded_at: Fri, 23 May 2014 04:53:07 GMT
|
@@ -17,32 +17,32 @@ http_interactions:
|
|
17
17
|
message: OK
|
18
18
|
headers:
|
19
19
|
Date:
|
20
|
-
-
|
21
|
-
Transfer-Encoding:
|
22
|
-
- chunked
|
20
|
+
- Fri, 23 May 2014 04:53:07 GMT
|
23
21
|
Server:
|
24
22
|
- Apache-Coyote/1.1
|
25
|
-
|
26
|
-
-
|
27
|
-
-
|
28
|
-
Content-Type:
|
29
|
-
- application/json
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
- no-store
|
30
26
|
Pragma:
|
31
27
|
- no-cache
|
28
|
+
Transfer-Encoding:
|
29
|
+
- chunked
|
30
|
+
Content-Type:
|
31
|
+
- application/json
|
32
|
+
Set-Cookie:
|
33
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
34
|
+
- TCSESSIONID=45AFE5FCE6EA36BB3D6095A763B795AB; Path=/; HttpOnly
|
32
35
|
Expires:
|
33
36
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
34
|
-
Cache-Control:
|
35
|
-
- no-cache
|
36
|
-
- no-store
|
37
37
|
body:
|
38
38
|
string: "{\"count\":0,\"vcs-root\":[]}"
|
39
39
|
http_version:
|
40
|
-
recorded_at:
|
40
|
+
recorded_at: Fri, 23 May 2014 04:53:08 GMT
|
41
41
|
- request:
|
42
42
|
method: post
|
43
43
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
|
44
44
|
body:
|
45
|
-
string: "{\"
|
45
|
+
string: "{\"projectLocator\":\"id:_Root\",\"properties\":{\"property\":[{\"value\":\"git@example.com/repo.git\",\"name\":\"url\"}]},\"vcsName\":\"jetbrains.git\",\"name\":\"VCS Root 1\"}"
|
46
46
|
headers:
|
47
47
|
Accept:
|
48
48
|
- application/json
|
@@ -54,32 +54,32 @@ http_interactions:
|
|
54
54
|
message: OK
|
55
55
|
headers:
|
56
56
|
Date:
|
57
|
-
-
|
58
|
-
Transfer-Encoding:
|
59
|
-
- chunked
|
57
|
+
- Fri, 23 May 2014 04:53:07 GMT
|
60
58
|
Server:
|
61
59
|
- Apache-Coyote/1.1
|
62
|
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
Content-Type:
|
66
|
-
- application/json
|
60
|
+
Cache-Control:
|
61
|
+
- no-cache
|
62
|
+
- no-store
|
67
63
|
Pragma:
|
68
64
|
- no-cache
|
65
|
+
Transfer-Encoding:
|
66
|
+
- chunked
|
67
|
+
Content-Type:
|
68
|
+
- application/json
|
69
|
+
Set-Cookie:
|
70
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
71
|
+
- TCSESSIONID=065B037F5F28A92BA7BB92F6399519C8; Path=/; HttpOnly
|
69
72
|
Expires:
|
70
73
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
71
|
-
Cache-Control:
|
72
|
-
- no-cache
|
73
|
-
- no-store
|
74
74
|
body:
|
75
|
-
string: "{\"id\":\"Root_VcsRoot1\",\"name\":\"VCS Root 1\",\"vcsName\":\"jetbrains.git\",\"status\":\"NOT_MONITORED\",\"lastChecked\":\"
|
75
|
+
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)\"}}"
|
76
76
|
http_version:
|
77
|
-
recorded_at:
|
77
|
+
recorded_at: Fri, 23 May 2014 04:53:08 GMT
|
78
78
|
- request:
|
79
79
|
method: post
|
80
80
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
|
81
81
|
body:
|
82
|
-
string: "{\"
|
82
|
+
string: "{\"projectLocator\":\"id:_Root\",\"properties\":{\"property\":[{\"value\":\"git@example.com/repo.git\",\"name\":\"url\"}]},\"vcsName\":\"jetbrains.git\",\"name\":\"VCS Root 2\"}"
|
83
83
|
headers:
|
84
84
|
Accept:
|
85
85
|
- application/json
|
@@ -91,27 +91,27 @@ http_interactions:
|
|
91
91
|
message: OK
|
92
92
|
headers:
|
93
93
|
Date:
|
94
|
-
-
|
95
|
-
Transfer-Encoding:
|
96
|
-
- chunked
|
94
|
+
- Fri, 23 May 2014 04:53:07 GMT
|
97
95
|
Server:
|
98
96
|
- Apache-Coyote/1.1
|
99
|
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
Content-Type:
|
103
|
-
- application/json
|
97
|
+
Cache-Control:
|
98
|
+
- no-cache
|
99
|
+
- no-store
|
104
100
|
Pragma:
|
105
101
|
- no-cache
|
102
|
+
Transfer-Encoding:
|
103
|
+
- chunked
|
104
|
+
Content-Type:
|
105
|
+
- application/json
|
106
|
+
Set-Cookie:
|
107
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
108
|
+
- TCSESSIONID=9F077A67942AAFFF2BEC48E0456DC8FF; Path=/; HttpOnly
|
106
109
|
Expires:
|
107
110
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
108
|
-
Cache-Control:
|
109
|
-
- no-cache
|
110
|
-
- no-store
|
111
111
|
body:
|
112
|
-
string: "{\"id\":\"Root_VcsRoot2\",\"name\":\"VCS Root 2\",\"vcsName\":\"jetbrains.git\",\"status\":\"NOT_MONITORED\",\"lastChecked\":\"
|
112
|
+
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)\"}}"
|
113
113
|
http_version:
|
114
|
-
recorded_at:
|
114
|
+
recorded_at: Fri, 23 May 2014 04:53:08 GMT
|
115
115
|
- request:
|
116
116
|
method: get
|
117
117
|
uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/vcs-roots
|
@@ -128,24 +128,24 @@ http_interactions:
|
|
128
128
|
message: OK
|
129
129
|
headers:
|
130
130
|
Date:
|
131
|
-
-
|
132
|
-
Transfer-Encoding:
|
133
|
-
- chunked
|
131
|
+
- Fri, 23 May 2014 04:53:07 GMT
|
134
132
|
Server:
|
135
133
|
- Apache-Coyote/1.1
|
136
|
-
|
137
|
-
-
|
138
|
-
-
|
139
|
-
Content-Type:
|
140
|
-
- application/json
|
134
|
+
Cache-Control:
|
135
|
+
- no-cache
|
136
|
+
- no-store
|
141
137
|
Pragma:
|
142
138
|
- no-cache
|
139
|
+
Transfer-Encoding:
|
140
|
+
- chunked
|
141
|
+
Content-Type:
|
142
|
+
- application/json
|
143
|
+
Set-Cookie:
|
144
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
145
|
+
- TCSESSIONID=A50625E111F6039D1CD2D55A1D606FAB; Path=/; HttpOnly
|
143
146
|
Expires:
|
144
147
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
145
|
-
Cache-Control:
|
146
|
-
- no-cache
|
147
|
-
- no-store
|
148
148
|
body:
|
149
149
|
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\"}]}"
|
150
150
|
http_version:
|
151
|
-
recorded_at:
|
151
|
+
recorded_at: Fri, 23 May 2014 04:53:08 GMT
|
data/spec/spec_helper.rb
CHANGED
@@ -24,10 +24,10 @@ module TeamcityRuby
|
|
24
24
|
BuildConfiguration.find(:id => build_configuration.teamcity_id).should == build_configuration
|
25
25
|
end
|
26
26
|
|
27
|
-
context "
|
27
|
+
context "an existing build configuration" do
|
28
28
|
let(:build_configuration) { BuildConfiguration.create("Sample Build Configuration", :project_id => @project.teamcity_id) }
|
29
29
|
|
30
|
-
it "
|
30
|
+
it "has a vcs root attached to it with specific checkout rules", :vcr do
|
31
31
|
vcs_root = VcsRoot.create(:name => "Sample VCS Root")
|
32
32
|
checkout_rules = "+:trunk => ."
|
33
33
|
|
@@ -36,7 +36,7 @@ module TeamcityRuby
|
|
36
36
|
build_configuration.vcs_root_entries.should == [{ :vcs_root_id => vcs_root.teamcity_id, :checkout_rules => checkout_rules }]
|
37
37
|
end
|
38
38
|
|
39
|
-
it "
|
39
|
+
it "has a build step added to it", :vcr do
|
40
40
|
build_configuration.add_step(:name => "Sample Step", :type => "Maven") do |s|
|
41
41
|
s['goals'] = 'verify'
|
42
42
|
end
|
@@ -46,7 +46,7 @@ module TeamcityRuby
|
|
46
46
|
created_build_step.properties.should include({"goals" => "verify"})
|
47
47
|
end
|
48
48
|
|
49
|
-
it "
|
49
|
+
it "has a build trigger added to it", :vcr do
|
50
50
|
build_configuration.add_trigger(:type => "vcsTrigger") do |t|
|
51
51
|
t["perCheckinTriggering"] = "true"
|
52
52
|
end
|
@@ -54,6 +54,14 @@ module TeamcityRuby
|
|
54
54
|
created_build_trigger = build_configuration.triggers.find { |s| s.type == 'vcsTrigger' }
|
55
55
|
created_build_trigger.properties.should include({"perCheckinTriggering" => "true"})
|
56
56
|
end
|
57
|
+
|
58
|
+
it "has settings definitions", :vcr do
|
59
|
+
build_configuration.settings do |s|
|
60
|
+
s["checkoutMode"] = "ON_AGENT"
|
61
|
+
end
|
62
|
+
|
63
|
+
build_configuration.settings.should include({"checkoutMode" => "ON_AGENT"})
|
64
|
+
end
|
57
65
|
end
|
58
66
|
end
|
59
67
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamcity_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jefferson Girao
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2014-05-
|
18
|
+
date: 2014-05-23 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -170,9 +170,10 @@ files:
|
|
170
170
|
- lib/teamcity_ruby/resource.rb
|
171
171
|
- lib/teamcity_ruby/vcs_root.rb
|
172
172
|
- lib/teamcity_ruby/version.rb
|
173
|
-
- spec/cassettes/TeamcityRuby_BuildConfiguration/
|
174
|
-
- spec/cassettes/TeamcityRuby_BuildConfiguration/
|
175
|
-
- spec/cassettes/TeamcityRuby_BuildConfiguration/
|
173
|
+
- spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_step_added_to_it.yml
|
174
|
+
- spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_trigger_added_to_it.yml
|
175
|
+
- spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_vcs_root_attached_to_it_with_specific_checkout_rules.yml
|
176
|
+
- spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_settings_definitions.yml
|
176
177
|
- spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml
|
177
178
|
- spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml
|
178
179
|
- spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml
|
@@ -223,9 +224,10 @@ signing_key:
|
|
223
224
|
specification_version: 3
|
224
225
|
summary: TeamCity API Ruby Wrapper
|
225
226
|
test_files:
|
226
|
-
- spec/cassettes/TeamcityRuby_BuildConfiguration/
|
227
|
-
- spec/cassettes/TeamcityRuby_BuildConfiguration/
|
228
|
-
- spec/cassettes/TeamcityRuby_BuildConfiguration/
|
227
|
+
- spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_step_added_to_it.yml
|
228
|
+
- spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_build_trigger_added_to_it.yml
|
229
|
+
- spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_a_vcs_root_attached_to_it_with_specific_checkout_rules.yml
|
230
|
+
- spec/cassettes/TeamcityRuby_BuildConfiguration/an_existing_build_configuration/has_settings_definitions.yml
|
229
231
|
- spec/cassettes/TeamcityRuby_BuildConfiguration/fetches_a_specific_build_configuration_by_id.yml
|
230
232
|
- spec/cassettes/TeamcityRuby_BuildConfiguration/lists_all_build_configurations.yml
|
231
233
|
- spec/cassettes/TeamcityRuby_Project/creates_a_project_copying_its_settings_from_a_source_project.yml
|