teamcity-ruby-client 0.4.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG.md +15 -1
  3. data/README.md +4 -2
  4. data/lib/teamcity.rb +1 -0
  5. data/lib/teamcity/client/build_types.rb +25 -16
  6. data/lib/teamcity/client/builds.rb +19 -15
  7. data/lib/teamcity/client/common.rb +0 -12
  8. data/lib/teamcity/client/projects.rb +21 -17
  9. data/lib/teamcity/client/vcs_roots.rb +11 -13
  10. data/lib/teamcity/configuration.rb +1 -5
  11. data/lib/teamcity/connection.rb +7 -7
  12. data/lib/teamcity/headers.rb +47 -0
  13. data/lib/teamcity/request.rb +2 -8
  14. data/lib/teamcity/version.rb +1 -1
  15. data/spec/cassettes/BuildTypes/DELETE/_delete_agent_requirement/should_delete_the_agent_requirement.yml +51 -6
  16. data/spec/cassettes/BuildTypes/DELETE/_delete_buildtype/should_delete_a_buildtype.yml +8 -6
  17. data/spec/cassettes/BuildTypes/DELETE/_delete_buildtype_parameter/should_delete_a_buildtype_parameter.yml +49 -6
  18. data/spec/cassettes/BuildTypes/GET/_buildtype/should_fetch_the_details_of_a_buildtype_by_id.yml +51 -11
  19. data/spec/cassettes/BuildTypes/GET/_buildtype/should_raise_an_error_if_the_buildtype_does_not_exist.yml +8 -6
  20. data/spec/cassettes/BuildTypes/GET/_buildtype_agent_requirements/should_fetch_the_build_configuration_agent_requirements_for_a_buildtype.yml +9 -7
  21. data/spec/cassettes/BuildTypes/GET/_buildtype_agent_requirements/should_return_an_array.yml +9 -7
  22. data/spec/cassettes/BuildTypes/GET/_buildtype_agent_requirements/should_return_nil_if_there_are_no_agent_requirements_defined.yml +9 -7
  23. data/spec/cassettes/BuildTypes/GET/_buildtype_artifact_dependencies/should_fetch_the_build_configuration_artifact_dependencies_for_a_buildtype.yml +9 -7
  24. data/spec/cassettes/BuildTypes/GET/_buildtype_artifact_dependencies/should_return_an_array.yml +9 -7
  25. data/spec/cassettes/BuildTypes/GET/_buildtype_artifact_dependencies/should_return_nil_if_there_are_no_artifact_dependencies_defined.yml +9 -7
  26. data/spec/cassettes/BuildTypes/GET/_buildtype_features/should_fetch_the_build_configuration_features_for_a_buildtype.yml +9 -7
  27. data/spec/cassettes/BuildTypes/GET/_buildtype_features/should_return_an_array.yml +9 -7
  28. data/spec/cassettes/BuildTypes/GET/_buildtype_features/should_return_nil_if_there_are_no_features_defined.yml +9 -7
  29. data/spec/cassettes/BuildTypes/GET/_buildtype_investigations/should_get_investigation_details.yml +11 -11
  30. data/spec/cassettes/BuildTypes/GET/_buildtype_investigations/should_return_nil_if_no_one_is_investigating.yml +9 -7
  31. data/spec/cassettes/BuildTypes/GET/_buildtype_parameters/should_fetch_the_build_configuration_parameters_for_a_buildtype.yml +9 -7
  32. data/spec/cassettes/BuildTypes/GET/_buildtype_parameters/should_return_an_array.yml +9 -7
  33. data/spec/cassettes/BuildTypes/GET/_buildtype_parameters/should_return_nil_if_there_are_no_parameters_defined.yml +9 -7
  34. data/spec/cassettes/BuildTypes/GET/_buildtype_settings/should_fetch_the_settings_for_a_given_buildtype.yml +51 -6
  35. data/spec/cassettes/BuildTypes/GET/_buildtype_settings/should_return_an_array.yml +51 -6
  36. data/spec/cassettes/BuildTypes/GET/_buildtype_snapshot_dependencies/should_fetch_the_build_configuration_snapshot_dependencies_for_a_buildtype.yml +9 -7
  37. data/spec/cassettes/BuildTypes/GET/_buildtype_snapshot_dependencies/should_return_an_array.yml +9 -7
  38. data/spec/cassettes/BuildTypes/GET/_buildtype_snapshot_dependencies/should_return_nil_if_there_are_no_snapshot_dependencies_defined.yml +9 -7
  39. data/spec/cassettes/BuildTypes/GET/_buildtype_state/should_fetch_the_state_of_the_buildtype.yml +89 -0
  40. data/spec/cassettes/BuildTypes/GET/_buildtype_steps/should_fetch_the_build_configuration_steps_for_a_buildtype.yml +10 -9
  41. data/spec/cassettes/BuildTypes/GET/_buildtype_steps/should_return_an_array.yml +9 -9
  42. data/spec/cassettes/BuildTypes/GET/_buildtype_steps/should_return_nil_if_there_are_no_steps_defined.yml +9 -7
  43. data/spec/cassettes/BuildTypes/GET/_buildtype_template/should_return_nil_if_the_buildtype_is_not_associated_with_a_template.yml +8 -6
  44. data/spec/cassettes/BuildTypes/GET/_buildtype_template/should_return_the_attributes_of_the_associated_template.yml +9 -8
  45. data/spec/cassettes/BuildTypes/GET/_buildtype_triggers/should_fetch_the_build_configuration_triggers_for_a_buildtype.yml +8 -6
  46. data/spec/cassettes/BuildTypes/GET/_buildtype_triggers/should_return_an_array.yml +8 -6
  47. data/spec/cassettes/BuildTypes/GET/_buildtype_triggers/should_return_nil_if_there_are_no_triggers_defined.yml +9 -7
  48. data/spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_fetch_the_build_configuration_vcs_root_entries_for_a_buildtype.yml +10 -8
  49. data/spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_return_an_array.yml +10 -8
  50. data/spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_return_nil_if_there_are_no_vcs_root_entries_defined.yml +9 -7
  51. data/spec/cassettes/BuildTypes/GET/_buildtypes/should_fetch_all_the_buildtypes.yml +9 -12
  52. data/spec/cassettes/BuildTypes/POST/_attach_vcs_root/should_attach_a_vcs_root_to_a_buildtype.yml +9 -9
  53. data/spec/cassettes/BuildTypes/POST/_create_agent_requirement/should_create_an_agent_requirement_for_a_buildtype.yml +10 -9
  54. data/spec/cassettes/BuildTypes/PUT/_set_build_step_field/should_disable_a_build_step.yml +14 -10
  55. data/spec/cassettes/BuildTypes/PUT/_set_build_step_field/should_enable_a_build_step.yml +18 -10
  56. data/spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_pause_a_project.yml +14 -10
  57. data/spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_set_a_projects_description.yml +15 -11
  58. data/spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_set_the_buildtype_name.yml +15 -11
  59. data/spec/cassettes/BuildTypes/PUT/_set_buildtype_parameter/should_set_a_buildtype_parameter.yml +15 -11
  60. data/spec/cassettes/Builds/DELETE/_unpin_build/should_unpin_a_build.yml +51 -6
  61. data/spec/cassettes/Builds/GET/_build/should_fetch_the_build_details.yml +53 -11
  62. data/spec/cassettes/Builds/GET/_build/should_raise_an_error_if_the_build_does_not_exist.yml +16 -13
  63. data/spec/cassettes/Builds/GET/_build_pinned_/should_return_false_when_a_build_is_not_pinned.yml +126 -0
  64. data/spec/cassettes/Builds/GET/_build_pinned_/should_return_true_when_a_build_is_pinned.yml +126 -0
  65. data/spec/cassettes/Builds/GET/_build_statistics/should_return_statistics_for_a_build.yml +50 -5
  66. data/spec/cassettes/Builds/GET/_build_tags/should_fetch_the_build_tags.yml +51 -6
  67. data/spec/cassettes/Builds/GET/_build_tags/should_return_an_empty_array_if_there_are_no_build_tags_defined_for_a_build.yml +89 -0
  68. data/spec/cassettes/Builds/GET/_builds/should_allow_you_to_filter_by_multiple_build_locators.yml +9 -7
  69. data/spec/cassettes/Builds/GET/_builds/should_allow_you_to_filter_results_by_build_locators.yml +9 -7
  70. data/spec/cassettes/Builds/GET/_builds/should_fetch_all_the_builds.yml +9 -7
  71. data/spec/cassettes/Builds/GET/{_build_statistics/should_return_an_empty_string_for_a_build_with_no_statistics.yml → _builds/should_return_an_empty_array_if_no_results_are_found.yml} +9 -7
  72. data/spec/cassettes/Builds/PUT/_pin_build/should_pin_a_build.yml +49 -6
  73. data/spec/cassettes/Projects/DELETE/_delete_project/should_delete_a_project.yml +17 -14
  74. data/spec/cassettes/Projects/DELETE/_delete_project_parameter/should_delete_a_project_parameter.yml +91 -6
  75. data/spec/cassettes/Projects/GET/_project/should_fetch_a_single_project_by_id.yml +10 -10
  76. data/spec/cassettes/Projects/GET/_project/should_raise_an_error_if_the_project_does_not_exist.yml +9 -7
  77. data/spec/cassettes/Projects/GET/_project_buildtypes/should_fetch_all_the_buildTypes_for_a_project.yml +9 -8
  78. data/spec/cassettes/Projects/GET/{_projects/should_return_nil_if_there_are_no_projects.yml → _project_buildtypes/should_return_nil_if_the_project_does_not_have_any_build_types.yml} +9 -7
  79. data/spec/cassettes/Projects/GET/_project_parameters/should_fetch_all_the_paramters_for_a_given_project.yml +9 -7
  80. data/spec/cassettes/Projects/GET/_project_parameters/should_return_nil_if_there_are_no_parameters_defined_for_a_project.yml +9 -7
  81. data/spec/cassettes/Projects/GET/_projects/should_fetch_projects.yml +9 -9
  82. data/spec/cassettes/Projects/POST/_copy_project/should_copy_a_project.yml +61 -15
  83. data/spec/cassettes/Projects/POST/_create_project/should_create_a_project.yml +9 -8
  84. data/spec/cassettes/Projects/PUT/_set_project_field/should_archive_a_project.yml +56 -10
  85. data/spec/cassettes/Projects/PUT/_set_project_field/should_set_a_projects_description.yml +56 -10
  86. data/spec/cassettes/Projects/PUT/_set_project_field/should_set_a_projects_name.yml +56 -10
  87. data/spec/cassettes/Projects/PUT/_set_project_parameter/should_set_a_project_parameter.yml +56 -10
  88. data/spec/cassettes/VCSRoots/GET/_vcs_root_details/should_fetch_the_vcs_root_details.yml +53 -6
  89. data/spec/cassettes/VCSRoots/GET/_vcs_roots/should_fetch_vcs_roots.yml +10 -7
  90. data/spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_vcs_root_that_is_shared_with_the_project_and_sub-projects.yml +90 -0
  91. data/spec/spec_helper.rb +1 -1
  92. data/spec/teamcity/api_spec.rb +0 -1
  93. data/spec/teamcity/client/builds_spec.rb +36 -56
  94. data/spec/teamcity/client/buildtypes_spec.rb +78 -42
  95. data/spec/teamcity/client/projects_spec.rb +41 -32
  96. data/spec/teamcity/client/vcs_roots_spec.rb +9 -29
  97. data/spec/teamcity/client_spec.rb +5 -1
  98. data/spec/teamcity/headers_spec.rb +43 -0
  99. data/spec/teamcity_spec.rb +1 -28
  100. data/teamcity-ruby-client.gemspec +1 -0
  101. metadata +21 -23
  102. data/spec/cassettes/BuildTypes/GET/_buildtype_template/should_raise_an_exception_if_the_response_is_not_due_to_a_template_not_assigned.yml +0 -50
  103. data/spec/cassettes/Builds/GET/_build_tags/should_return_nil_if_there_are_no_build_tags_defined_for_a_build.yml +0 -44
  104. data/spec/cassettes/Builds/GET/_builds/should_allow_you_to_search_by_locator.yml +0 -44
  105. data/spec/cassettes/Projects/GET/_project_buildtypes/should_return_nil_if_the_project_does_not_have_any_build_build_types.yml +0 -44
  106. data/spec/cassettes/Projects/PUT/_set_project_field/should_un-archive_a_project.yml +0 -50
  107. data/spec/cassettes/Projects/PUT/_set_project_parameter/should_set_a_project_parameter_with_a_boolean_value.yml +0 -40
  108. data/spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_shared_vcs_root.yml +0 -45
  109. data/spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_vcs_root_that_is_only_shared_within_a_project.yml +0 -48
@@ -2,15 +2,17 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:8111/guestAuth/app/rest/7.0/buildTypes/id:bt4/vcs-root-entries
5
+ uri: http://localhost:8111/guestAuth/app/rest/buildTypes/id:BuildTypeTests_GetBuildTypeEmptyConfigTests/vcs-root-entries
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
+ User-Agent:
11
+ - TeamCity Ruby Client 0.4.0
10
12
  Accept:
11
13
  - application/json; charset=utf-8
12
- User-Agent:
13
- - TeamCity Ruby Client 0.0.1
14
+ Content-Type:
15
+ - application/json
14
16
  Accept-Encoding:
15
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
18
  response:
@@ -21,8 +23,8 @@ http_interactions:
21
23
  Server:
22
24
  - Apache-Coyote/1.1
23
25
  Set-Cookie:
24
- - JSESSIONID=44F83C4AD95F7F8F6DC4A7C956DED081; Path=/; HttpOnly
25
26
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
27
+ - TCSESSIONID=154E1A3F456993FA5A1AFF7D5322423F; Path=/; HttpOnly
26
28
  Pragma:
27
29
  - no-cache
28
30
  Expires:
@@ -35,10 +37,10 @@ http_interactions:
35
37
  Transfer-Encoding:
36
38
  - chunked
37
39
  Date:
38
- - Tue, 23 Apr 2013 15:14:22 GMT
40
+ - Wed, 14 Aug 2013 11:47:57 GMT
39
41
  body:
40
42
  encoding: US-ASCII
41
- string: 'null'
43
+ string: ! '{"vcs-root-entry":[]}'
42
44
  http_version:
43
- recorded_at: Tue, 23 Apr 2013 15:14:23 GMT
45
+ recorded_at: Wed, 14 Aug 2013 11:47:58 GMT
44
46
  recorded_with: VCR 2.4.0
@@ -2,15 +2,17 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://localhost:8111/guestAuth/app/rest/7.0/buildTypes
5
+ uri: http://localhost:8111/guestAuth/app/rest/buildTypes
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
+ User-Agent:
11
+ - TeamCity Ruby Client 0.4.0
10
12
  Accept:
11
13
  - application/json; charset=utf-8
12
- User-Agent:
13
- - TeamCity Ruby Client 0.0.1
14
+ Content-Type:
15
+ - application/json
14
16
  Accept-Encoding:
15
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
18
  response:
@@ -21,8 +23,8 @@ http_interactions:
21
23
  Server:
22
24
  - Apache-Coyote/1.1
23
25
  Set-Cookie:
24
- - JSESSIONID=2AC1F176971DEF17AAFFDD5302748216; Path=/; HttpOnly
25
26
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
27
+ - TCSESSIONID=F961CD8156713109A10C95A26CA8E8EB; Path=/; HttpOnly
26
28
  Pragma:
27
29
  - no-cache
28
30
  Expires:
@@ -35,15 +37,10 @@ http_interactions:
35
37
  Transfer-Encoding:
36
38
  - chunked
37
39
  Date:
38
- - Tue, 23 Apr 2013 15:14:22 GMT
40
+ - Wed, 14 Aug 2013 02:54:49 GMT
39
41
  body:
40
42
  encoding: US-ASCII
41
- string: ! '{"buildType":[{"id":"bt2","name":"build A1","href":"/guestAuth/app/rest/7.0/buildTypes/id:bt2","projectName":"Project
42
- A","projectId":"project2","webUrl":"http://localhost:8111/viewType.html?buildTypeId=bt2"},{"id":"bt3","name":"build
43
- B1","href":"/guestAuth/app/rest/7.0/buildTypes/id:bt3","projectName":"Project
44
- B","projectId":"project3","webUrl":"http://localhost:8111/viewType.html?buildTypeId=bt3"},{"id":"bt4","name":"build
45
- C1","href":"/guestAuth/app/rest/7.0/buildTypes/id:bt4","projectName":"Project
46
- C","projectId":"project4","webUrl":"http://localhost:8111/viewType.html?buildTypeId=bt4"}]}'
43
+ string: ! '{"buildType":[{"id":"GetProjectBuildTypes_Bt1","name":"BT1","href":"/guestAuth/app/rest/buildTypes/id:GetProjectBuildTypes_Bt1","projectName":"GetProjectBuildTypes","projectId":"GetProjectBuildTypes","webUrl":"http://localhost:8111/viewType.html?buildTypeId=GetProjectBuildTypes_Bt1"},{"id":"GetProjectBuildTypes_Bt2","name":"BT2","href":"/guestAuth/app/rest/buildTypes/id:GetProjectBuildTypes_Bt2","projectName":"GetProjectBuildTypes","projectId":"GetProjectBuildTypes","webUrl":"http://localhost:8111/viewType.html?buildTypeId=GetProjectBuildTypes_Bt2"}]}'
47
44
  http_version:
48
- recorded_at: Tue, 23 Apr 2013 15:14:22 GMT
45
+ recorded_at: Wed, 14 Aug 2013 02:54:49 GMT
49
46
  recorded_with: VCR 2.4.0
@@ -2,15 +2,15 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/7.0/buildTypes/bt3/vcs-root-entries
5
+ uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PostBuildTypeTests/vcs-root-entries
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: <vcs-root-entry><vcs-root id="1"/></vcs-root-entry>
8
+ string: <vcs-root-entry><vcs-root id="teamcity_ruby_client"/></vcs-root-entry>
9
9
  headers:
10
+ User-Agent:
11
+ - TeamCity Ruby Client 0.4.0
10
12
  Accept:
11
13
  - application/json; charset=utf-8
12
- User-Agent:
13
- - TeamCity Ruby Client 0.2.0
14
14
  Content-Type:
15
15
  - application/xml
16
16
  response:
@@ -21,8 +21,8 @@ http_interactions:
21
21
  Server:
22
22
  - Apache-Coyote/1.1
23
23
  Set-Cookie:
24
- - JSESSIONID=3199BAE6ED6C5168E66F422655D13476; Path=/; HttpOnly
25
24
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
25
+ - TCSESSIONID=2C57E65BDB7952BC8CE5ED7E65BCBB2E; Path=/; HttpOnly
26
26
  Pragma:
27
27
  - no-cache
28
28
  Expires:
@@ -35,11 +35,11 @@ http_interactions:
35
35
  Transfer-Encoding:
36
36
  - chunked
37
37
  Date:
38
- - Mon, 06 May 2013 20:06:44 GMT
38
+ - Wed, 14 Aug 2013 13:26:41 GMT
39
39
  body:
40
40
  encoding: US-ASCII
41
- string: ! '{"id":"1","checkout-rules":"","vcs-root":{"id":"1","name":"teamcity
42
- ruby client","href":"/httpAuth/app/rest/7.0/vcs-roots/id:1"}}'
41
+ string: ! '{"id":"teamcity_ruby_client","vcs-root":{"id":"teamcity_ruby_client","name":"teamcity
42
+ ruby client","href":"/httpAuth/app/rest/vcs-roots/id:teamcity_ruby_client"},"checkout-rules":""}'
43
43
  http_version:
44
- recorded_at: Mon, 06 May 2013 20:06:44 GMT
44
+ recorded_at: Wed, 14 Aug 2013 13:26:41 GMT
45
45
  recorded_with: VCR 2.4.0
@@ -2,16 +2,17 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/7.0/buildTypes/bt3/agent-requirements
5
+ uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PostBuildTypeTests/agent-requirements
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: <agent-requirement id="test" type="equals"><properties><property name="property-name"
9
- value="test"/><property name="property-value" value="test"/></properties></agent-requirement>
8
+ string: <agent-requirement id="post-agent-requirement-name" type="equals"><properties><property
9
+ name="property-name" value="post-agent-requirement-name"/><property name="property-value"
10
+ value="post-agent-requirement-value"/></properties></agent-requirement>
10
11
  headers:
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.4.0
11
14
  Accept:
12
15
  - application/json; charset=utf-8
13
- User-Agent:
14
- - TeamCity Ruby Client 0.2.0
15
16
  Content-Type:
16
17
  - application/xml
17
18
  response:
@@ -22,8 +23,8 @@ http_interactions:
22
23
  Server:
23
24
  - Apache-Coyote/1.1
24
25
  Set-Cookie:
25
- - JSESSIONID=F9FA207CA22CA4B9183C04C49C0356FE; Path=/; HttpOnly
26
26
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
27
+ - TCSESSIONID=073F3886F402212F53AAB9FB029F1D9A; Path=/; HttpOnly
27
28
  Pragma:
28
29
  - no-cache
29
30
  Expires:
@@ -36,10 +37,10 @@ http_interactions:
36
37
  Transfer-Encoding:
37
38
  - chunked
38
39
  Date:
39
- - Mon, 06 May 2013 19:48:12 GMT
40
+ - Wed, 14 Aug 2013 13:28:57 GMT
40
41
  body:
41
42
  encoding: US-ASCII
42
- string: ! '{"id":"test","type":"equals","properties":{"property":[{"name":"property-name","value":"test"},{"name":"property-value","value":"test"}]}}'
43
+ string: ! '{"id":"post-agent-requirement-name","type":"equals","properties":{"property":[{"name":"property-name","value":"post-agent-requirement-name"},{"name":"property-value","value":"post-agent-requirement-value"}]}}'
43
44
  http_version:
44
- recorded_at: Mon, 06 May 2013 19:48:12 GMT
45
+ recorded_at: Wed, 14 Aug 2013 13:28:57 GMT
45
46
  recorded_with: VCR 2.4.0
@@ -2,27 +2,27 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/7.0/buildTypes/bt3/steps/RUNNER_2/disabled
5
+ uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PutSetBuildStepField/steps/RUNNER_7/disabled
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: 'true'
9
9
  headers:
10
- Accept:
11
- - application/json; charset=utf-8
12
10
  User-Agent:
13
- - TeamCity Ruby Client 0.2.0
11
+ - TeamCity Ruby Client 0.4.0
12
+ Accept:
13
+ - text/plain
14
14
  Content-Type:
15
15
  - text/plain
16
16
  response:
17
17
  status:
18
- code: 204
19
- message: No Content
18
+ code: 200
19
+ message: OK
20
20
  headers:
21
21
  Server:
22
22
  - Apache-Coyote/1.1
23
23
  Set-Cookie:
24
- - JSESSIONID=DCB23406908AA67E6F99690A9550942D; Path=/; HttpOnly
25
24
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
25
+ - TCSESSIONID=70D06E239F0B96A3F71446189AC1CCE0; Path=/; HttpOnly
26
26
  Pragma:
27
27
  - no-cache
28
28
  Expires:
@@ -30,11 +30,15 @@ http_interactions:
30
30
  Cache-Control:
31
31
  - no-cache
32
32
  - no-store
33
+ Content-Type:
34
+ - text/plain
35
+ Transfer-Encoding:
36
+ - chunked
33
37
  Date:
34
- - Fri, 17 May 2013 13:53:19 GMT
38
+ - Wed, 14 Aug 2013 13:23:57 GMT
35
39
  body:
36
40
  encoding: US-ASCII
37
- string: ''
41
+ string: 'true'
38
42
  http_version:
39
- recorded_at: Fri, 17 May 2013 13:53:19 GMT
43
+ recorded_at: Wed, 14 Aug 2013 13:23:57 GMT
40
44
  recorded_with: VCR 2.4.0
@@ -2,27 +2,27 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/7.0/buildTypes/bt3/steps/RUNNER_2/disabled
5
+ uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/steps/RUNNER_7/disabled
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: 'false'
9
9
  headers:
10
- Accept:
11
- - application/json; charset=utf-8
12
10
  User-Agent:
13
- - TeamCity Ruby Client 0.2.0
11
+ - TeamCity Ruby Client 0.4.0
12
+ Accept:
13
+ - text/plain
14
14
  Content-Type:
15
15
  - text/plain
16
16
  response:
17
17
  status:
18
- code: 204
19
- message: No Content
18
+ code: 404
19
+ message: Not Found
20
20
  headers:
21
21
  Server:
22
22
  - Apache-Coyote/1.1
23
23
  Set-Cookie:
24
- - JSESSIONID=390FA7EC04A13260A15FA79CB87FF977; Path=/; HttpOnly
25
24
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
25
+ - TCSESSIONID=2B799D506CC71F8334DA8F32D2B0A7E9; Path=/; HttpOnly
26
26
  Pragma:
27
27
  - no-cache
28
28
  Expires:
@@ -30,11 +30,19 @@ http_interactions:
30
30
  Cache-Control:
31
31
  - no-cache
32
32
  - no-store
33
+ Content-Type:
34
+ - text/plain
35
+ Transfer-Encoding:
36
+ - chunked
33
37
  Date:
34
- - Fri, 17 May 2013 13:53:19 GMT
38
+ - Wed, 14 Aug 2013 13:23:57 GMT
35
39
  body:
36
40
  encoding: US-ASCII
37
- string: ''
41
+ string: ! 'Error has occurred during request processing (Not Found).
42
+
43
+ Error: com.sun.jersey.api.NotFoundException: null for uri: http://localhost:8111/app/rest/buildTypes/steps/RUNNER_7/disabled
44
+
45
+ Please check URL is correct.'
38
46
  http_version:
39
- recorded_at: Fri, 17 May 2013 13:53:19 GMT
47
+ recorded_at: Wed, 14 Aug 2013 13:23:57 GMT
40
48
  recorded_with: VCR 2.4.0
@@ -2,27 +2,27 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/7.0/buildTypes/bt3/paused
5
+ uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PutSetBuildTypeField/paused
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: 'true'
9
9
  headers:
10
- Accept:
11
- - application/json; charset=utf-8
12
10
  User-Agent:
13
- - TeamCity Ruby Client 0.2.0
11
+ - TeamCity Ruby Client 0.4.0
12
+ Accept:
13
+ - text/plain
14
14
  Content-Type:
15
15
  - text/plain
16
16
  response:
17
17
  status:
18
- code: 204
19
- message: No Content
18
+ code: 200
19
+ message: OK
20
20
  headers:
21
21
  Server:
22
22
  - Apache-Coyote/1.1
23
23
  Set-Cookie:
24
- - JSESSIONID=328624E460706DAE519D9455B0667F3B; Path=/; HttpOnly
25
24
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
25
+ - TCSESSIONID=BFF45838A47DF0ABF5AD508136AAA991; Path=/; HttpOnly
26
26
  Pragma:
27
27
  - no-cache
28
28
  Expires:
@@ -30,11 +30,15 @@ http_interactions:
30
30
  Cache-Control:
31
31
  - no-cache
32
32
  - no-store
33
+ Content-Type:
34
+ - text/plain
35
+ Transfer-Encoding:
36
+ - chunked
33
37
  Date:
34
- - Tue, 07 May 2013 14:34:34 GMT
38
+ - Wed, 14 Aug 2013 12:05:43 GMT
35
39
  body:
36
40
  encoding: US-ASCII
37
- string: ''
41
+ string: 'true'
38
42
  http_version:
39
- recorded_at: Tue, 07 May 2013 14:34:34 GMT
43
+ recorded_at: Wed, 14 Aug 2013 12:05:43 GMT
40
44
  recorded_with: VCR 2.4.0
@@ -2,27 +2,27 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/7.0/buildTypes/bt3/description
5
+ uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PutSetBuildTypeField/description
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: description-changed-by-test
8
+ string: description-set_buildtype_field
9
9
  headers:
10
- Accept:
11
- - application/json; charset=utf-8
12
10
  User-Agent:
13
- - TeamCity Ruby Client 0.2.0
11
+ - TeamCity Ruby Client 0.4.0
12
+ Accept:
13
+ - text/plain
14
14
  Content-Type:
15
15
  - text/plain
16
16
  response:
17
17
  status:
18
- code: 204
19
- message: No Content
18
+ code: 200
19
+ message: OK
20
20
  headers:
21
21
  Server:
22
22
  - Apache-Coyote/1.1
23
23
  Set-Cookie:
24
- - JSESSIONID=A5855DC4746BC083C47E2A3B532BC67E; Path=/; HttpOnly
25
24
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
25
+ - TCSESSIONID=8A666813914341A4FF2A7661E8603945; Path=/; HttpOnly
26
26
  Pragma:
27
27
  - no-cache
28
28
  Expires:
@@ -30,11 +30,15 @@ http_interactions:
30
30
  Cache-Control:
31
31
  - no-cache
32
32
  - no-store
33
+ Content-Type:
34
+ - text/plain
35
+ Transfer-Encoding:
36
+ - chunked
33
37
  Date:
34
- - Tue, 07 May 2013 14:34:34 GMT
38
+ - Wed, 14 Aug 2013 12:05:43 GMT
35
39
  body:
36
40
  encoding: US-ASCII
37
- string: ''
41
+ string: description-set_buildtype_field
38
42
  http_version:
39
- recorded_at: Tue, 07 May 2013 14:34:34 GMT
43
+ recorded_at: Wed, 14 Aug 2013 12:05:43 GMT
40
44
  recorded_with: VCR 2.4.0
@@ -2,27 +2,27 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/7.0/buildTypes/bt3/name
5
+ uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PutSetBuildTypeField/name
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: new-buildtype-name
8
+ string: PutSetBuildTypeField_Name_Changed_By_Test
9
9
  headers:
10
- Accept:
11
- - application/json; charset=utf-8
12
10
  User-Agent:
13
- - TeamCity Ruby Client 0.2.0
11
+ - TeamCity Ruby Client 0.4.0
12
+ Accept:
13
+ - text/plain
14
14
  Content-Type:
15
15
  - text/plain
16
16
  response:
17
17
  status:
18
- code: 204
19
- message: No Content
18
+ code: 200
19
+ message: OK
20
20
  headers:
21
21
  Server:
22
22
  - Apache-Coyote/1.1
23
23
  Set-Cookie:
24
- - JSESSIONID=D166D23F1258A92313E56D88415B5284; Path=/; HttpOnly
25
24
  - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
25
+ - TCSESSIONID=579118E9A9522C6C5755C993F838C541; Path=/; HttpOnly
26
26
  Pragma:
27
27
  - no-cache
28
28
  Expires:
@@ -30,11 +30,15 @@ http_interactions:
30
30
  Cache-Control:
31
31
  - no-cache
32
32
  - no-store
33
+ Content-Type:
34
+ - text/plain
35
+ Transfer-Encoding:
36
+ - chunked
33
37
  Date:
34
- - Tue, 07 May 2013 14:34:34 GMT
38
+ - Wed, 14 Aug 2013 12:05:13 GMT
35
39
  body:
36
40
  encoding: US-ASCII
37
- string: ''
41
+ string: PutSetBuildTypeField_Name_Changed_By_Test
38
42
  http_version:
39
- recorded_at: Tue, 07 May 2013 14:34:34 GMT
43
+ recorded_at: Wed, 14 Aug 2013 12:05:13 GMT
40
44
  recorded_with: VCR 2.4.0