teamcity-ruby-client 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +4 -0
  3. data/lib/teamcity/client.rb +2 -0
  4. data/lib/teamcity/client/build_types.rb +92 -0
  5. data/lib/teamcity/client/common.rb +13 -2
  6. data/lib/teamcity/client/projects.rb +82 -3
  7. data/lib/teamcity/client/vcs_roots.rb +62 -0
  8. data/lib/teamcity/configuration.rb +10 -2
  9. data/lib/teamcity/connection.rb +1 -0
  10. data/lib/teamcity/request.rb +10 -9
  11. data/lib/teamcity/version.rb +1 -1
  12. data/spec/cassettes/BuildTypes/DELETE/_delete_agent_requirement/should_delete_the_agent_requirement.yml +38 -0
  13. data/spec/cassettes/BuildTypes/DELETE/_delete_buildtype_parameter/should_delete_a_buildtype_parameter.yml +38 -0
  14. data/spec/cassettes/BuildTypes/POST/_attach_vcs_root/should_attach_a_vcs_root_to_a_buildtype.yml +45 -0
  15. data/spec/cassettes/BuildTypes/POST/_create_agent_requirement/should_create_an_agent_requirement_for_a_buildtype.yml +45 -0
  16. data/spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_pause_a_project.yml +40 -0
  17. data/spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_set_a_projects_description.yml +40 -0
  18. data/spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_set_the_buildtype_name.yml +40 -0
  19. data/spec/cassettes/BuildTypes/PUT/_set_buildtype_parameter/should_set_a_buildtype_parameter.yml +40 -0
  20. data/spec/cassettes/Projects/DELETE/_delete_project/should_delete_a_project.yml +79 -0
  21. data/spec/cassettes/Projects/DELETE/_delete_project_parameter/should_delete_a_project_parameter.yml +38 -0
  22. data/spec/cassettes/Projects/POST/_copy_project/should_copy_a_project.yml +86 -0
  23. data/spec/cassettes/Projects/POST/_create_project/should_create_a_project.yml +44 -0
  24. data/spec/cassettes/Projects/PUT/_set_project_field/should_archive_a_project.yml +40 -0
  25. data/spec/cassettes/Projects/PUT/_set_project_field/should_set_a_projects_description.yml +40 -0
  26. data/spec/cassettes/Projects/PUT/_set_project_field/should_set_a_projects_name.yml +40 -0
  27. data/spec/cassettes/Projects/PUT/_set_project_field/should_un-archive_a_project.yml +50 -0
  28. data/spec/cassettes/Projects/PUT/_set_project_parameter/should_set_a_project_parameter.yml +40 -0
  29. data/spec/cassettes/VCSRoots/GET/_vcs_root_details/should_fetch_the_vcs_root_details.yml +44 -0
  30. data/spec/cassettes/VCSRoots/GET/_vcs_roots/should_fetch_vcs_roots.yml +44 -0
  31. data/spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_shared_vcs_root.yml +45 -0
  32. data/spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_vcs_root_that_is_only_shared_within_a_project.yml +48 -0
  33. data/spec/spec_helper.rb +9 -0
  34. data/spec/teamcity/api_spec.rb +2 -0
  35. data/spec/teamcity/client/buildtypes_spec.rb +79 -6
  36. data/spec/teamcity/client/projects_spec.rb +85 -7
  37. data/spec/teamcity/client/vcs_roots_spec.rb +64 -0
  38. data/spec/teamcity_spec.rb +26 -0
  39. data/teamcity-ruby-client.gemspec +2 -1
  40. metadata +62 -3
data/spec/spec_helper.rb CHANGED
@@ -10,4 +10,13 @@ end
10
10
 
11
11
  def stub_get(path)
12
12
  stub_request(:get, TeamCity.endpoint + path)
13
+ end
14
+
15
+ def configure_client_with_authentication
16
+ TeamCity.reset
17
+ TeamCity.configure do |config|
18
+ config.endpoint = 'http://localhost:8111/httpAuth/app/rest/7.0/'
19
+ config.http_user = 'teamcity-ruby-client'
20
+ config.http_password = 'teamcity'
21
+ end
13
22
  end
@@ -34,6 +34,8 @@ describe TeamCity::API do
34
34
  :endpoint => 'http://teamcity.mydomain.com/',
35
35
  :format => :xml,
36
36
  :user_agent => 'My User Agent',
37
+ :http_user => 'tc-test-user',
38
+ :http_password => 'tc-test-password'
37
39
  }
38
40
  end
39
41
 
@@ -6,12 +6,6 @@ describe 'BuildTypes' do
6
6
  @tc = TeamCity
7
7
  end
8
8
 
9
- before(:all) do
10
- TeamCity.configure do |config|
11
- config.endpoint = 'http://localhost:8111/guestAuth/app/rest/7.0/'
12
- end
13
- end
14
-
15
9
  after(:all) do
16
10
  TeamCity.reset
17
11
  end
@@ -19,6 +13,16 @@ describe 'BuildTypes' do
19
13
  # Get requests
20
14
  describe 'GET', :vcr do
21
15
 
16
+ before(:all) do
17
+ TeamCity.configure do |config|
18
+ config.endpoint = 'http://localhost:8111/guestAuth/app/rest/7.0/'
19
+ end
20
+ end
21
+
22
+ before(:each) do
23
+ @tc = TeamCity
24
+ end
25
+
22
26
  describe '.buildtypes' do
23
27
 
24
28
  it 'should fetch all the buildtypes' do
@@ -103,4 +107,73 @@ describe 'BuildTypes' do
103
107
  end
104
108
  end
105
109
  end
110
+
111
+ describe 'PUT', :vcr do
112
+
113
+ before(:all) do
114
+ configure_client_with_authentication
115
+ end
116
+
117
+ describe '.set_buildtype_parameter' do
118
+ it 'should set a buildtype parameter' do
119
+ @tc.set_buildtype_parameter('bt3', 'set-this-parameter', 'some-value').should be_nil
120
+ end
121
+ end
122
+
123
+ describe '.set_buildtype_field' do
124
+ it 'should set the buildtype name' do
125
+ @tc.set_buildtype_field('bt3', 'name', 'new-buildtype-name').should be_nil
126
+ end
127
+
128
+ it 'should set a projects description' do
129
+ @tc.set_buildtype_field('bt3', 'description', 'description-changed-by-test').should be_nil
130
+ end
131
+
132
+ it 'should pause a project' do
133
+ @tc.set_buildtype_field('bt3', 'paused', 'true').should be_nil
134
+ end
135
+ end
136
+ end
137
+
138
+ describe 'POST', :vcr do
139
+ before(:all) do
140
+ configure_client_with_authentication
141
+ end
142
+
143
+ describe '.attach_vcs_root' do
144
+ it 'should attach a vcs root to a buildtype' do
145
+ @tc.attach_vcs_root('bt3', '1').id.should eq('1')
146
+ end
147
+ end
148
+
149
+ describe '.create_agent_requirement' do
150
+ it 'should create an agent requirement for a buildtype' do
151
+ buildtype_id = 'bt3'
152
+ parameter_name = 'test'
153
+ parameter_value = 'test'
154
+ condition = 'equals'
155
+ args = [buildtype_id, parameter_name, parameter_value, condition]
156
+ response = @tc.create_agent_requirement(*args)
157
+ response.id.should eq('test')
158
+ end
159
+ end
160
+ end
161
+
162
+ describe 'DELETE', :vcr do
163
+ before(:all) do
164
+ configure_client_with_authentication
165
+ end
166
+
167
+ describe '.delete_buildtype_parameter' do
168
+ it 'should delete a buildtype parameter' do
169
+ @tc.delete_buildtype_parameter('bt3', 'delete-me').should be_nil
170
+ end
171
+ end
172
+
173
+ describe '.delete_agent_requirement' do
174
+ it 'should delete the agent requirement' do
175
+ @tc.delete_agent_requirement('bt3', 'test').should be_nil
176
+ end
177
+ end
178
+ end
106
179
  end
@@ -6,19 +6,23 @@ describe 'Projects' do
6
6
  @tc = TeamCity
7
7
  end
8
8
 
9
- before(:all) do
10
- TeamCity.configure do |config|
11
- config.endpoint = 'http://localhost:8111/guestAuth/app/rest/7.0/'
12
- end
13
- end
14
-
15
9
  after(:all) do
16
10
  TeamCity.reset
17
11
  end
18
12
 
19
- # Get requests
13
+ # GET requests
20
14
  describe 'GET', :vcr do
21
15
 
16
+ before(:all) do
17
+ TeamCity.configure do |config|
18
+ config.endpoint = 'http://localhost:8111/guestAuth/app/rest/7.0/'
19
+ end
20
+ end
21
+
22
+ before(:each) do
23
+ @tc = TeamCity
24
+ end
25
+
22
26
  describe '.projects' do
23
27
 
24
28
  it 'should fetch projects' do
@@ -75,8 +79,82 @@ describe 'Projects' do
75
79
  expect { @tc.project_parameters(id: 'missing')}
76
80
  end
77
81
  end
82
+ end
83
+
84
+ # POST Requests
85
+ describe 'POST', :vcr do
86
+
87
+ before(:all) do
88
+ configure_client_with_authentication
89
+ end
90
+
91
+ describe '.create_project' do
92
+ it 'should create a project' do
93
+ response = @tc.create_project('test-create-project')
94
+ response.id.should match(/project/)
95
+ end
96
+ end
78
97
 
98
+ describe '.copy_project' do
99
+ it 'should copy a project' do
100
+ source_project = @tc.project(id: 'project11')
101
+ copied_project_name = 'copy-project-testB'
102
+ response = @tc.copy_project(
103
+ source_project.id,
104
+ copied_project_name,
105
+ :copyAllAssociatedSettings => true,
106
+ :shareVCSRoots => true
107
+ )
108
+ response.name.should eq(copied_project_name)
109
+ end
110
+ end
111
+ end
79
112
 
113
+ describe 'DELETE', :vcr do
114
+
115
+ before(:all) do
116
+ configure_client_with_authentication
117
+ end
80
118
 
119
+ describe '.delete_project' do
120
+ it 'should delete a project' do
121
+ response = @tc.create_project('project-to-delete')
122
+ @tc.delete_project(response.id).should be_nil
123
+ end
124
+ end
125
+
126
+ describe '.delete_project_parameter' do
127
+ it 'should delete a project parameter' do
128
+ response = @tc.delete_project_parameter('project2', 'delete-this-parameter')
129
+ response.should be_nil
130
+ end
131
+ end
132
+ end
133
+
134
+ describe 'PUT', :vcr do
135
+
136
+ before(:all) do
137
+ configure_client_with_authentication
138
+ end
139
+
140
+ describe '.set_project_parameter' do
141
+ it 'should set a project parameter' do
142
+ @tc.set_project_parameter('project2', 'set-this-parameter', 'some-value').should be_nil
143
+ end
144
+ end
145
+
146
+ describe '.set_project_field' do
147
+ it 'should set a projects name' do
148
+ @tc.set_project_field('project21', 'name', 'project-change-by-test').should be_nil
149
+ end
150
+
151
+ it 'should set a projects description' do
152
+ @tc.set_project_field('project21', 'description', 'description-changed-by-test').should be_nil
153
+ end
154
+
155
+ it 'should archive a project' do
156
+ @tc.set_project_field('project21', 'archived', 'true').should be_nil
157
+ end
158
+ end
81
159
  end
82
160
  end
@@ -0,0 +1,64 @@
1
+ require_relative '../../spec_helper'
2
+
3
+ describe 'VCSRoots' do
4
+
5
+ before(:each) do
6
+ @tc = TeamCity
7
+ end
8
+
9
+ before(:all) do
10
+ TeamCity.configure do |config|
11
+ configure_client_with_authentication
12
+ end
13
+ end
14
+
15
+ after(:all) do
16
+ TeamCity.reset
17
+ end
18
+
19
+ # GET requests
20
+ describe 'GET', :vcr do
21
+ describe '.vcs_roots' do
22
+
23
+ it 'should fetch vcs roots' do
24
+ @tc.vcs_roots.should_not be_nil
25
+ end
26
+ end
27
+
28
+ describe '.vcs_root_details' do
29
+
30
+ it 'should fetch the vcs root details' do
31
+ response = @tc.vcs_root_details(1)
32
+ response.id.should eq(1)
33
+ end
34
+ end
35
+ end
36
+
37
+ describe 'POST', :vcr do
38
+
39
+ describe '.create_vcs_root' do
40
+
41
+ it 'should create a vcs root that is only shared within a project' do
42
+ vcs_name = 'testvcsroot'
43
+ vcs_type = 'git'
44
+ response = @tc.create_vcs_root(vcs_name, vcs_type, :projectLocator => 'project2') do |properties|
45
+ properties['branch'] = 'master'
46
+ properties['url'] = 'git@github.com:jperry/teamcity-ruby-client.git'
47
+ properties['authMethod'] = 'PRIVATE_KEY_DEFAULT'
48
+ properties['ignoreKnownHosts'] = true
49
+ end
50
+ response.name.should eq(vcs_name)
51
+ response.vcsName.should match(/#{vcs_type}/)
52
+ response.shared.should be_false
53
+ end
54
+
55
+ it 'should create a shared vcs root' do
56
+ response = @tc.create_vcs_root('sharedvcsroot', 'git', :shared => true) do |properties|
57
+ properties['branch'] = 'master'
58
+ properties['url'] = 'git@github.com:jperry/teamcity-ruby-client.git'
59
+ end
60
+ response.shared.should be_true
61
+ end
62
+ end
63
+ end
64
+ end
@@ -38,6 +38,32 @@ describe TeamCity do
38
38
  end
39
39
  end
40
40
 
41
+ describe ".http_user" do
42
+ it "should return the default http_user" do
43
+ TeamCity.http_user.should == TeamCity::Configuration::DEFAULT_HTTP_USER
44
+ end
45
+ end
46
+
47
+ describe ".http_user=" do
48
+ it "should set the http_user" do
49
+ TeamCity.http_user = 'test-user'
50
+ TeamCity.http_user.should == 'test-user'
51
+ end
52
+ end
53
+
54
+ describe ".http_password" do
55
+ it "should return the default http_password" do
56
+ TeamCity.http_password.should == TeamCity::Configuration::DEFAULT_HTTP_PASSWORD
57
+ end
58
+ end
59
+
60
+ describe ".http_password=" do
61
+ it "should set the http_password" do
62
+ TeamCity.http_password = 'test-pass'
63
+ TeamCity.http_password.should == 'test-pass'
64
+ end
65
+ end
66
+
41
67
  describe ".endpoint" do
42
68
  it "should return the default endpoint" do
43
69
  TeamCity.endpoint.should == TeamCity::Configuration::DEFAULT_ENDPOINT
@@ -6,7 +6,7 @@ require 'teamcity/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "teamcity-ruby-client"
8
8
  gem.version = TeamCity::VERSION
9
- gem.authors = ['Jason Perry"']
9
+ gem.authors = ['Jason Perry']
10
10
  gem.email = ['bosoxjay@gmail.com']
11
11
  gem.description = %q{A Ruby wrapper for the TeamCity Rest API}
12
12
  gem.summary = %q{Ruby wrapper for the TeamCity API}
@@ -29,4 +29,5 @@ Gem::Specification.new do |gem|
29
29
  gem.add_runtime_dependency('faraday_middleware', '~> 0.9.0')
30
30
  gem.add_runtime_dependency('hashie', '~> 2.0.0')
31
31
  gem.add_runtime_dependency('linguistics', '~> 2.0.2')
32
+ gem.add_runtime_dependency('builder', '~> 3.2.0')
32
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamcity-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - Jason Perry"
7
+ - Jason Perry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-29 00:00:00.000000000 Z
11
+ date: 2013-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - ~>
165
165
  - !ruby/object:Gem::Version
166
166
  version: 2.0.2
167
+ - !ruby/object:Gem::Dependency
168
+ name: builder
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ~>
172
+ - !ruby/object:Gem::Version
173
+ version: 3.2.0
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ~>
179
+ - !ruby/object:Gem::Version
180
+ version: 3.2.0
167
181
  description: A Ruby wrapper for the TeamCity Rest API
168
182
  email:
169
183
  - bosoxjay@gmail.com
@@ -186,10 +200,13 @@ files:
186
200
  - lib/teamcity/client/builds.rb
187
201
  - lib/teamcity/client/common.rb
188
202
  - lib/teamcity/client/projects.rb
203
+ - lib/teamcity/client/vcs_roots.rb
189
204
  - lib/teamcity/configuration.rb
190
205
  - lib/teamcity/connection.rb
191
206
  - lib/teamcity/request.rb
192
207
  - lib/teamcity/version.rb
208
+ - spec/cassettes/BuildTypes/DELETE/_delete_agent_requirement/should_delete_the_agent_requirement.yml
209
+ - spec/cassettes/BuildTypes/DELETE/_delete_buildtype_parameter/should_delete_a_buildtype_parameter.yml
193
210
  - spec/cassettes/BuildTypes/GET/_buildtype/should_fetch_the_details_of_a_buildtype_by_id.yml
194
211
  - spec/cassettes/BuildTypes/GET/_buildtype/should_raise_an_error_if_the_buildtype_does_not_exist.yml
195
212
  - spec/cassettes/BuildTypes/GET/_buildtype_agent_requirements/should_fetch_the_build_configuration_agent_requirements_for_a_buildtype.yml
@@ -222,6 +239,12 @@ files:
222
239
  - spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_return_an_array.yml
223
240
  - spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_return_nil_if_there_are_no_vcs_root_entries_defined.yml
224
241
  - spec/cassettes/BuildTypes/GET/_buildtypes/should_fetch_all_the_buildtypes.yml
242
+ - spec/cassettes/BuildTypes/POST/_attach_vcs_root/should_attach_a_vcs_root_to_a_buildtype.yml
243
+ - spec/cassettes/BuildTypes/POST/_create_agent_requirement/should_create_an_agent_requirement_for_a_buildtype.yml
244
+ - spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_pause_a_project.yml
245
+ - spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_set_a_projects_description.yml
246
+ - spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_set_the_buildtype_name.yml
247
+ - spec/cassettes/BuildTypes/PUT/_set_buildtype_parameter/should_set_a_buildtype_parameter.yml
225
248
  - spec/cassettes/Builds/GET/_build/should_fetch_the_build_details.yml
226
249
  - spec/cassettes/Builds/GET/_build/should_raise_an_error_if_the_build_does_not_exist.yml
227
250
  - spec/cassettes/Builds/GET/_build_tags/should_fetch_the_build_tags.yml
@@ -230,6 +253,8 @@ files:
230
253
  - spec/cassettes/Builds/GET/_builds/should_allow_you_to_filter_results_by_build_locators.yml
231
254
  - spec/cassettes/Builds/GET/_builds/should_allow_you_to_search_by_locator.yml
232
255
  - spec/cassettes/Builds/GET/_builds/should_fetch_all_the_builds.yml
256
+ - spec/cassettes/Projects/DELETE/_delete_project/should_delete_a_project.yml
257
+ - spec/cassettes/Projects/DELETE/_delete_project_parameter/should_delete_a_project_parameter.yml
233
258
  - spec/cassettes/Projects/GET/_project/should_fetch_a_single_project_by_id.yml
234
259
  - spec/cassettes/Projects/GET/_project/should_raise_an_error_if_the_project_does_not_exist.yml
235
260
  - spec/cassettes/Projects/GET/_project_buildtypes/should_fetch_all_the_buildTypes_for_a_project.yml
@@ -238,6 +263,17 @@ files:
238
263
  - spec/cassettes/Projects/GET/_project_parameters/should_return_nil_if_there_are_no_parameters_defined_for_a_project.yml
239
264
  - spec/cassettes/Projects/GET/_projects/should_fetch_projects.yml
240
265
  - spec/cassettes/Projects/GET/_projects/should_return_nil_if_there_are_no_projects.yml
266
+ - spec/cassettes/Projects/POST/_copy_project/should_copy_a_project.yml
267
+ - spec/cassettes/Projects/POST/_create_project/should_create_a_project.yml
268
+ - spec/cassettes/Projects/PUT/_set_project_field/should_archive_a_project.yml
269
+ - spec/cassettes/Projects/PUT/_set_project_field/should_set_a_projects_description.yml
270
+ - spec/cassettes/Projects/PUT/_set_project_field/should_set_a_projects_name.yml
271
+ - spec/cassettes/Projects/PUT/_set_project_field/should_un-archive_a_project.yml
272
+ - spec/cassettes/Projects/PUT/_set_project_parameter/should_set_a_project_parameter.yml
273
+ - spec/cassettes/VCSRoots/GET/_vcs_root_details/should_fetch_the_vcs_root_details.yml
274
+ - spec/cassettes/VCSRoots/GET/_vcs_roots/should_fetch_vcs_roots.yml
275
+ - spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_shared_vcs_root.yml
276
+ - spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_vcs_root_that_is_only_shared_within_a_project.yml
241
277
  - spec/faraday/null_response_body_spec.rb
242
278
  - spec/spec_helper.rb
243
279
  - spec/support/vcr_setup.rb
@@ -245,6 +281,7 @@ files:
245
281
  - spec/teamcity/client/builds_spec.rb
246
282
  - spec/teamcity/client/buildtypes_spec.rb
247
283
  - spec/teamcity/client/projects_spec.rb
284
+ - spec/teamcity/client/vcs_roots_spec.rb
248
285
  - spec/teamcity/client_spec.rb
249
286
  - spec/teamcity/version_spec.rb
250
287
  - spec/teamcity_spec.rb
@@ -273,6 +310,8 @@ signing_key:
273
310
  specification_version: 4
274
311
  summary: Ruby wrapper for the TeamCity API
275
312
  test_files:
313
+ - spec/cassettes/BuildTypes/DELETE/_delete_agent_requirement/should_delete_the_agent_requirement.yml
314
+ - spec/cassettes/BuildTypes/DELETE/_delete_buildtype_parameter/should_delete_a_buildtype_parameter.yml
276
315
  - spec/cassettes/BuildTypes/GET/_buildtype/should_fetch_the_details_of_a_buildtype_by_id.yml
277
316
  - spec/cassettes/BuildTypes/GET/_buildtype/should_raise_an_error_if_the_buildtype_does_not_exist.yml
278
317
  - spec/cassettes/BuildTypes/GET/_buildtype_agent_requirements/should_fetch_the_build_configuration_agent_requirements_for_a_buildtype.yml
@@ -305,6 +344,12 @@ test_files:
305
344
  - spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_return_an_array.yml
306
345
  - spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_return_nil_if_there_are_no_vcs_root_entries_defined.yml
307
346
  - spec/cassettes/BuildTypes/GET/_buildtypes/should_fetch_all_the_buildtypes.yml
347
+ - spec/cassettes/BuildTypes/POST/_attach_vcs_root/should_attach_a_vcs_root_to_a_buildtype.yml
348
+ - spec/cassettes/BuildTypes/POST/_create_agent_requirement/should_create_an_agent_requirement_for_a_buildtype.yml
349
+ - spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_pause_a_project.yml
350
+ - spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_set_a_projects_description.yml
351
+ - spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_set_the_buildtype_name.yml
352
+ - spec/cassettes/BuildTypes/PUT/_set_buildtype_parameter/should_set_a_buildtype_parameter.yml
308
353
  - spec/cassettes/Builds/GET/_build/should_fetch_the_build_details.yml
309
354
  - spec/cassettes/Builds/GET/_build/should_raise_an_error_if_the_build_does_not_exist.yml
310
355
  - spec/cassettes/Builds/GET/_build_tags/should_fetch_the_build_tags.yml
@@ -313,6 +358,8 @@ test_files:
313
358
  - spec/cassettes/Builds/GET/_builds/should_allow_you_to_filter_results_by_build_locators.yml
314
359
  - spec/cassettes/Builds/GET/_builds/should_allow_you_to_search_by_locator.yml
315
360
  - spec/cassettes/Builds/GET/_builds/should_fetch_all_the_builds.yml
361
+ - spec/cassettes/Projects/DELETE/_delete_project/should_delete_a_project.yml
362
+ - spec/cassettes/Projects/DELETE/_delete_project_parameter/should_delete_a_project_parameter.yml
316
363
  - spec/cassettes/Projects/GET/_project/should_fetch_a_single_project_by_id.yml
317
364
  - spec/cassettes/Projects/GET/_project/should_raise_an_error_if_the_project_does_not_exist.yml
318
365
  - spec/cassettes/Projects/GET/_project_buildtypes/should_fetch_all_the_buildTypes_for_a_project.yml
@@ -321,6 +368,17 @@ test_files:
321
368
  - spec/cassettes/Projects/GET/_project_parameters/should_return_nil_if_there_are_no_parameters_defined_for_a_project.yml
322
369
  - spec/cassettes/Projects/GET/_projects/should_fetch_projects.yml
323
370
  - spec/cassettes/Projects/GET/_projects/should_return_nil_if_there_are_no_projects.yml
371
+ - spec/cassettes/Projects/POST/_copy_project/should_copy_a_project.yml
372
+ - spec/cassettes/Projects/POST/_create_project/should_create_a_project.yml
373
+ - spec/cassettes/Projects/PUT/_set_project_field/should_archive_a_project.yml
374
+ - spec/cassettes/Projects/PUT/_set_project_field/should_set_a_projects_description.yml
375
+ - spec/cassettes/Projects/PUT/_set_project_field/should_set_a_projects_name.yml
376
+ - spec/cassettes/Projects/PUT/_set_project_field/should_un-archive_a_project.yml
377
+ - spec/cassettes/Projects/PUT/_set_project_parameter/should_set_a_project_parameter.yml
378
+ - spec/cassettes/VCSRoots/GET/_vcs_root_details/should_fetch_the_vcs_root_details.yml
379
+ - spec/cassettes/VCSRoots/GET/_vcs_roots/should_fetch_vcs_roots.yml
380
+ - spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_shared_vcs_root.yml
381
+ - spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_vcs_root_that_is_only_shared_within_a_project.yml
324
382
  - spec/faraday/null_response_body_spec.rb
325
383
  - spec/spec_helper.rb
326
384
  - spec/support/vcr_setup.rb
@@ -328,6 +386,7 @@ test_files:
328
386
  - spec/teamcity/client/builds_spec.rb
329
387
  - spec/teamcity/client/buildtypes_spec.rb
330
388
  - spec/teamcity/client/projects_spec.rb
389
+ - spec/teamcity/client/vcs_roots_spec.rb
331
390
  - spec/teamcity/client_spec.rb
332
391
  - spec/teamcity/version_spec.rb
333
392
  - spec/teamcity_spec.rb