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.
- checksums.yaml +8 -8
- data/CHANGELOG.md +15 -1
- data/README.md +4 -2
- data/lib/teamcity.rb +1 -0
- data/lib/teamcity/client/build_types.rb +25 -16
- data/lib/teamcity/client/builds.rb +19 -15
- data/lib/teamcity/client/common.rb +0 -12
- data/lib/teamcity/client/projects.rb +21 -17
- data/lib/teamcity/client/vcs_roots.rb +11 -13
- data/lib/teamcity/configuration.rb +1 -5
- data/lib/teamcity/connection.rb +7 -7
- data/lib/teamcity/headers.rb +47 -0
- data/lib/teamcity/request.rb +2 -8
- data/lib/teamcity/version.rb +1 -1
- data/spec/cassettes/BuildTypes/DELETE/_delete_agent_requirement/should_delete_the_agent_requirement.yml +51 -6
- data/spec/cassettes/BuildTypes/DELETE/_delete_buildtype/should_delete_a_buildtype.yml +8 -6
- data/spec/cassettes/BuildTypes/DELETE/_delete_buildtype_parameter/should_delete_a_buildtype_parameter.yml +49 -6
- data/spec/cassettes/BuildTypes/GET/_buildtype/should_fetch_the_details_of_a_buildtype_by_id.yml +51 -11
- data/spec/cassettes/BuildTypes/GET/_buildtype/should_raise_an_error_if_the_buildtype_does_not_exist.yml +8 -6
- data/spec/cassettes/BuildTypes/GET/_buildtype_agent_requirements/should_fetch_the_build_configuration_agent_requirements_for_a_buildtype.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_agent_requirements/should_return_an_array.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_agent_requirements/should_return_nil_if_there_are_no_agent_requirements_defined.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_artifact_dependencies/should_fetch_the_build_configuration_artifact_dependencies_for_a_buildtype.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_artifact_dependencies/should_return_an_array.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_artifact_dependencies/should_return_nil_if_there_are_no_artifact_dependencies_defined.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_features/should_fetch_the_build_configuration_features_for_a_buildtype.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_features/should_return_an_array.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_features/should_return_nil_if_there_are_no_features_defined.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_investigations/should_get_investigation_details.yml +11 -11
- data/spec/cassettes/BuildTypes/GET/_buildtype_investigations/should_return_nil_if_no_one_is_investigating.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_parameters/should_fetch_the_build_configuration_parameters_for_a_buildtype.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_parameters/should_return_an_array.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_parameters/should_return_nil_if_there_are_no_parameters_defined.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_settings/should_fetch_the_settings_for_a_given_buildtype.yml +51 -6
- data/spec/cassettes/BuildTypes/GET/_buildtype_settings/should_return_an_array.yml +51 -6
- data/spec/cassettes/BuildTypes/GET/_buildtype_snapshot_dependencies/should_fetch_the_build_configuration_snapshot_dependencies_for_a_buildtype.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_snapshot_dependencies/should_return_an_array.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_snapshot_dependencies/should_return_nil_if_there_are_no_snapshot_dependencies_defined.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_state/should_fetch_the_state_of_the_buildtype.yml +89 -0
- data/spec/cassettes/BuildTypes/GET/_buildtype_steps/should_fetch_the_build_configuration_steps_for_a_buildtype.yml +10 -9
- data/spec/cassettes/BuildTypes/GET/_buildtype_steps/should_return_an_array.yml +9 -9
- data/spec/cassettes/BuildTypes/GET/_buildtype_steps/should_return_nil_if_there_are_no_steps_defined.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_template/should_return_nil_if_the_buildtype_is_not_associated_with_a_template.yml +8 -6
- data/spec/cassettes/BuildTypes/GET/_buildtype_template/should_return_the_attributes_of_the_associated_template.yml +9 -8
- data/spec/cassettes/BuildTypes/GET/_buildtype_triggers/should_fetch_the_build_configuration_triggers_for_a_buildtype.yml +8 -6
- data/spec/cassettes/BuildTypes/GET/_buildtype_triggers/should_return_an_array.yml +8 -6
- data/spec/cassettes/BuildTypes/GET/_buildtype_triggers/should_return_nil_if_there_are_no_triggers_defined.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_fetch_the_build_configuration_vcs_root_entries_for_a_buildtype.yml +10 -8
- data/spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_return_an_array.yml +10 -8
- data/spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_return_nil_if_there_are_no_vcs_root_entries_defined.yml +9 -7
- data/spec/cassettes/BuildTypes/GET/_buildtypes/should_fetch_all_the_buildtypes.yml +9 -12
- data/spec/cassettes/BuildTypes/POST/_attach_vcs_root/should_attach_a_vcs_root_to_a_buildtype.yml +9 -9
- data/spec/cassettes/BuildTypes/POST/_create_agent_requirement/should_create_an_agent_requirement_for_a_buildtype.yml +10 -9
- data/spec/cassettes/BuildTypes/PUT/_set_build_step_field/should_disable_a_build_step.yml +14 -10
- data/spec/cassettes/BuildTypes/PUT/_set_build_step_field/should_enable_a_build_step.yml +18 -10
- data/spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_pause_a_project.yml +14 -10
- data/spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_set_a_projects_description.yml +15 -11
- data/spec/cassettes/BuildTypes/PUT/_set_buildtype_field/should_set_the_buildtype_name.yml +15 -11
- data/spec/cassettes/BuildTypes/PUT/_set_buildtype_parameter/should_set_a_buildtype_parameter.yml +15 -11
- data/spec/cassettes/Builds/DELETE/_unpin_build/should_unpin_a_build.yml +51 -6
- data/spec/cassettes/Builds/GET/_build/should_fetch_the_build_details.yml +53 -11
- data/spec/cassettes/Builds/GET/_build/should_raise_an_error_if_the_build_does_not_exist.yml +16 -13
- data/spec/cassettes/Builds/GET/_build_pinned_/should_return_false_when_a_build_is_not_pinned.yml +126 -0
- data/spec/cassettes/Builds/GET/_build_pinned_/should_return_true_when_a_build_is_pinned.yml +126 -0
- data/spec/cassettes/Builds/GET/_build_statistics/should_return_statistics_for_a_build.yml +50 -5
- data/spec/cassettes/Builds/GET/_build_tags/should_fetch_the_build_tags.yml +51 -6
- 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
- data/spec/cassettes/Builds/GET/_builds/should_allow_you_to_filter_by_multiple_build_locators.yml +9 -7
- data/spec/cassettes/Builds/GET/_builds/should_allow_you_to_filter_results_by_build_locators.yml +9 -7
- data/spec/cassettes/Builds/GET/_builds/should_fetch_all_the_builds.yml +9 -7
- 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
- data/spec/cassettes/Builds/PUT/_pin_build/should_pin_a_build.yml +49 -6
- data/spec/cassettes/Projects/DELETE/_delete_project/should_delete_a_project.yml +17 -14
- data/spec/cassettes/Projects/DELETE/_delete_project_parameter/should_delete_a_project_parameter.yml +91 -6
- data/spec/cassettes/Projects/GET/_project/should_fetch_a_single_project_by_id.yml +10 -10
- data/spec/cassettes/Projects/GET/_project/should_raise_an_error_if_the_project_does_not_exist.yml +9 -7
- data/spec/cassettes/Projects/GET/_project_buildtypes/should_fetch_all_the_buildTypes_for_a_project.yml +9 -8
- 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
- data/spec/cassettes/Projects/GET/_project_parameters/should_fetch_all_the_paramters_for_a_given_project.yml +9 -7
- data/spec/cassettes/Projects/GET/_project_parameters/should_return_nil_if_there_are_no_parameters_defined_for_a_project.yml +9 -7
- data/spec/cassettes/Projects/GET/_projects/should_fetch_projects.yml +9 -9
- data/spec/cassettes/Projects/POST/_copy_project/should_copy_a_project.yml +61 -15
- data/spec/cassettes/Projects/POST/_create_project/should_create_a_project.yml +9 -8
- data/spec/cassettes/Projects/PUT/_set_project_field/should_archive_a_project.yml +56 -10
- data/spec/cassettes/Projects/PUT/_set_project_field/should_set_a_projects_description.yml +56 -10
- data/spec/cassettes/Projects/PUT/_set_project_field/should_set_a_projects_name.yml +56 -10
- data/spec/cassettes/Projects/PUT/_set_project_parameter/should_set_a_project_parameter.yml +56 -10
- data/spec/cassettes/VCSRoots/GET/_vcs_root_details/should_fetch_the_vcs_root_details.yml +53 -6
- data/spec/cassettes/VCSRoots/GET/_vcs_roots/should_fetch_vcs_roots.yml +10 -7
- 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
- data/spec/spec_helper.rb +1 -1
- data/spec/teamcity/api_spec.rb +0 -1
- data/spec/teamcity/client/builds_spec.rb +36 -56
- data/spec/teamcity/client/buildtypes_spec.rb +78 -42
- data/spec/teamcity/client/projects_spec.rb +41 -32
- data/spec/teamcity/client/vcs_roots_spec.rb +9 -29
- data/spec/teamcity/client_spec.rb +5 -1
- data/spec/teamcity/headers_spec.rb +43 -0
- data/spec/teamcity_spec.rb +1 -28
- data/teamcity-ruby-client.gemspec +1 -0
- metadata +21 -23
- 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
- data/spec/cassettes/Builds/GET/_build_tags/should_return_nil_if_there_are_no_build_tags_defined_for_a_build.yml +0 -44
- data/spec/cassettes/Builds/GET/_builds/should_allow_you_to_search_by_locator.yml +0 -44
- data/spec/cassettes/Projects/GET/_project_buildtypes/should_return_nil_if_the_project_does_not_have_any_build_build_types.yml +0 -44
- data/spec/cassettes/Projects/PUT/_set_project_field/should_un-archive_a_project.yml +0 -50
- data/spec/cassettes/Projects/PUT/_set_project_parameter/should_set_a_project_parameter_with_a_boolean_value.yml +0 -40
- data/spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_shared_vcs_root.yml +0 -45
- 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/
|
5
|
+
uri: http://localhost:8111/guestAuth/app/rest/projects
|
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
|
-
|
13
|
-
-
|
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=5057656A6D66E122DBED5E13085F68F2; Path=/; HttpOnly
|
25
26
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
27
|
+
- TCSESSIONID=74D1BAF436F717F72C8D60331E13832F; Path=/; HttpOnly
|
26
28
|
Pragma:
|
27
29
|
- no-cache
|
28
30
|
Expires:
|
@@ -35,12 +37,10 @@ http_interactions:
|
|
35
37
|
Transfer-Encoding:
|
36
38
|
- chunked
|
37
39
|
Date:
|
38
|
-
-
|
40
|
+
- Wed, 14 Aug 2013 01:39:34 GMT
|
39
41
|
body:
|
40
42
|
encoding: US-ASCII
|
41
|
-
string: ! '{"project":[{"id":"
|
42
|
-
B","href":"/guestAuth/app/rest/7.0/projects/id:project3"},{"id":"project4","name":"Project
|
43
|
-
C","href":"/guestAuth/app/rest/7.0/projects/id:project4"}]}'
|
43
|
+
string: ! '{"project":[{"id":"_Root","name":"<Root project>","href":"/guestAuth/app/rest/projects/id:_Root"}]}'
|
44
44
|
http_version:
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Wed, 14 Aug 2013 01:39:34 GMT
|
46
46
|
recorded_with: VCR 2.4.0
|
@@ -1,16 +1,60 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/projects
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: PostProjectToBeCopied
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 0.4.0
|
12
|
+
Accept:
|
13
|
+
- application/json; charset=utf-8
|
14
|
+
Content-Type:
|
15
|
+
- text/plain
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Apache-Coyote/1.1
|
23
|
+
Set-Cookie:
|
24
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
25
|
+
- TCSESSIONID=EB8FC3077515BB9F2FB21C7C298F881E; Path=/; HttpOnly
|
26
|
+
Pragma:
|
27
|
+
- no-cache
|
28
|
+
Expires:
|
29
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
- no-store
|
33
|
+
Content-Type:
|
34
|
+
- application/json
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
|
+
Date:
|
38
|
+
- Wed, 14 Aug 2013 02:17:53 GMT
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! '{"id":"PostProjectToBeCopied","name":"PostProjectToBeCopied","href":"/httpAuth/app/rest/projects/id:PostProjectToBeCopied","description":"","archived":false,"webUrl":"http://localhost:8111/project.html?projectId=PostProjectToBeCopied","parentProject":{"id":"_Root","name":"<Root
|
42
|
+
project>","href":"/httpAuth/app/rest/projects/id:_Root"},"buildTypes":{"buildType":[]},"templates":{"buildType":[]},"parameters":{"property":[]},"vcsRoots":{"href":"/httpAuth/app/rest/vcs-roots?locator=project:(id:PostProjectToBeCopied)"},"projects":{"project":[]}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Wed, 14 Aug 2013 02:17:53 GMT
|
3
45
|
- request:
|
4
46
|
method: get
|
5
|
-
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/
|
47
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/projects/id:PostProjectToBeCopied
|
6
48
|
body:
|
7
49
|
encoding: US-ASCII
|
8
50
|
string: ''
|
9
51
|
headers:
|
52
|
+
User-Agent:
|
53
|
+
- TeamCity Ruby Client 0.4.0
|
10
54
|
Accept:
|
11
55
|
- application/json; charset=utf-8
|
12
|
-
|
13
|
-
-
|
56
|
+
Content-Type:
|
57
|
+
- application/json
|
14
58
|
Accept-Encoding:
|
15
59
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
60
|
response:
|
@@ -21,8 +65,8 @@ http_interactions:
|
|
21
65
|
Server:
|
22
66
|
- Apache-Coyote/1.1
|
23
67
|
Set-Cookie:
|
24
|
-
- JSESSIONID=696E3723E42972161ABF5953440B70EF; Path=/; HttpOnly
|
25
68
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
69
|
+
- TCSESSIONID=F1707A337A6E252376447F6E0ADEA9CC; Path=/; HttpOnly
|
26
70
|
Pragma:
|
27
71
|
- no-cache
|
28
72
|
Expires:
|
@@ -35,24 +79,25 @@ http_interactions:
|
|
35
79
|
Transfer-Encoding:
|
36
80
|
- chunked
|
37
81
|
Date:
|
38
|
-
-
|
82
|
+
- Wed, 14 Aug 2013 02:17:53 GMT
|
39
83
|
body:
|
40
84
|
encoding: US-ASCII
|
41
|
-
string: ! '{"
|
85
|
+
string: ! '{"id":"PostProjectToBeCopied","name":"PostProjectToBeCopied","href":"/httpAuth/app/rest/projects/id:PostProjectToBeCopied","description":"","archived":false,"webUrl":"http://localhost:8111/project.html?projectId=PostProjectToBeCopied","parentProject":{"id":"_Root","name":"<Root
|
86
|
+
project>","href":"/httpAuth/app/rest/projects/id:_Root"},"buildTypes":{"buildType":[]},"templates":{"buildType":[]},"parameters":{"property":[]},"vcsRoots":{"href":"/httpAuth/app/rest/vcs-roots?locator=project:(id:PostProjectToBeCopied)"},"projects":{"project":[]}}'
|
42
87
|
http_version:
|
43
|
-
recorded_at:
|
88
|
+
recorded_at: Wed, 14 Aug 2013 02:17:53 GMT
|
44
89
|
- request:
|
45
90
|
method: post
|
46
|
-
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/
|
91
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/projects
|
47
92
|
body:
|
48
93
|
encoding: US-ASCII
|
49
94
|
string: <newProjectDescription copyAllAssociatedSettings="true" shareVCSRoots="true"
|
50
|
-
name="
|
95
|
+
name="PostCopyProject" sourceProject="id:PostProjectToBeCopied"/>
|
51
96
|
headers:
|
97
|
+
User-Agent:
|
98
|
+
- TeamCity Ruby Client 0.4.0
|
52
99
|
Accept:
|
53
100
|
- application/json; charset=utf-8
|
54
|
-
User-Agent:
|
55
|
-
- TeamCity Ruby Client 0.2.0
|
56
101
|
Content-Type:
|
57
102
|
- application/xml
|
58
103
|
response:
|
@@ -63,8 +108,8 @@ http_interactions:
|
|
63
108
|
Server:
|
64
109
|
- Apache-Coyote/1.1
|
65
110
|
Set-Cookie:
|
66
|
-
- JSESSIONID=74E16DAC7E989ADFE93500048AA660A2; Path=/; HttpOnly
|
67
111
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
112
|
+
- TCSESSIONID=3AA892705059A6D172EFA1A5E81A441A; Path=/; HttpOnly
|
68
113
|
Pragma:
|
69
114
|
- no-cache
|
70
115
|
Expires:
|
@@ -77,10 +122,11 @@ http_interactions:
|
|
77
122
|
Transfer-Encoding:
|
78
123
|
- chunked
|
79
124
|
Date:
|
80
|
-
-
|
125
|
+
- Wed, 14 Aug 2013 02:17:53 GMT
|
81
126
|
body:
|
82
127
|
encoding: US-ASCII
|
83
|
-
string: ! '{"
|
128
|
+
string: ! '{"id":"PostCopyProject","name":"PostCopyProject","href":"/httpAuth/app/rest/projects/id:PostCopyProject","description":"","archived":false,"webUrl":"http://localhost:8111/project.html?projectId=PostCopyProject","parentProject":{"id":"_Root","name":"<Root
|
129
|
+
project>","href":"/httpAuth/app/rest/projects/id:_Root"},"buildTypes":{"buildType":[]},"templates":{"buildType":[]},"parameters":{"property":[]},"vcsRoots":{"href":"/httpAuth/app/rest/vcs-roots?locator=project:(id:PostCopyProject)"},"projects":{"project":[]}}'
|
84
130
|
http_version:
|
85
|
-
recorded_at:
|
131
|
+
recorded_at: Wed, 14 Aug 2013 02:17:53 GMT
|
86
132
|
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/
|
5
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/projects
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
8
|
+
string: PostCreateProject
|
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.1.0
|
14
14
|
Content-Type:
|
15
15
|
- text/plain
|
16
16
|
response:
|
@@ -21,8 +21,8 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- Apache-Coyote/1.1
|
23
23
|
Set-Cookie:
|
24
|
-
- JSESSIONID=A8DCC1CA6ACA6730F8D61927FC3268D3; Path=/; HttpOnly
|
25
24
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
25
|
+
- TCSESSIONID=125B8B5DF367F863B682F55690B3F64F; Path=/; HttpOnly
|
26
26
|
Pragma:
|
27
27
|
- no-cache
|
28
28
|
Expires:
|
@@ -35,10 +35,11 @@ http_interactions:
|
|
35
35
|
Transfer-Encoding:
|
36
36
|
- chunked
|
37
37
|
Date:
|
38
|
-
-
|
38
|
+
- Wed, 14 Aug 2013 02:44:49 GMT
|
39
39
|
body:
|
40
40
|
encoding: US-ASCII
|
41
|
-
string: ! '{"description":"","archived":false,"webUrl":"http://localhost:8111/project.html?projectId=
|
41
|
+
string: ! '{"id":"PostCreateProject","name":"PostCreateProject","href":"/httpAuth/app/rest/projects/id:PostCreateProject","description":"","archived":false,"webUrl":"http://localhost:8111/project.html?projectId=PostCreateProject","parentProject":{"id":"_Root","name":"<Root
|
42
|
+
project>","href":"/httpAuth/app/rest/projects/id:_Root"},"buildTypes":{"buildType":[]},"templates":{"buildType":[]},"parameters":{"property":[]},"vcsRoots":{"href":"/httpAuth/app/rest/vcs-roots?locator=project:(id:PostCreateProject)"},"projects":{"project":[]}}'
|
42
43
|
http_version:
|
43
|
-
recorded_at:
|
44
|
+
recorded_at: Wed, 14 Aug 2013 02:44:49 GMT
|
44
45
|
recorded_with: VCR 2.4.0
|
@@ -1,28 +1,70 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
5
|
-
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/
|
4
|
+
method: post
|
5
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/projects
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
8
|
+
string: PutSetProjectArchiveField
|
9
9
|
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 0.4.0
|
10
12
|
Accept:
|
11
13
|
- application/json; charset=utf-8
|
14
|
+
Content-Type:
|
15
|
+
- text/plain
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Apache-Coyote/1.1
|
23
|
+
Set-Cookie:
|
24
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
25
|
+
- TCSESSIONID=513BC5398784053255E78B8FA4929F7F; Path=/; HttpOnly
|
26
|
+
Pragma:
|
27
|
+
- no-cache
|
28
|
+
Expires:
|
29
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
- no-store
|
33
|
+
Content-Type:
|
34
|
+
- application/json
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
|
+
Date:
|
38
|
+
- Wed, 14 Aug 2013 02:43:34 GMT
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! '{"id":"PutSetProjectArchiveField","name":"PutSetProjectArchiveField","href":"/httpAuth/app/rest/projects/id:PutSetProjectArchiveField","description":"","archived":false,"webUrl":"http://localhost:8111/project.html?projectId=PutSetProjectArchiveField","parentProject":{"id":"_Root","name":"<Root
|
42
|
+
project>","href":"/httpAuth/app/rest/projects/id:_Root"},"buildTypes":{"buildType":[]},"templates":{"buildType":[]},"parameters":{"property":[]},"vcsRoots":{"href":"/httpAuth/app/rest/vcs-roots?locator=project:(id:PutSetProjectArchiveField)"},"projects":{"project":[]}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Wed, 14 Aug 2013 02:43:34 GMT
|
45
|
+
- request:
|
46
|
+
method: put
|
47
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/projects/PutSetProjectArchiveField/archived
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: 'true'
|
51
|
+
headers:
|
12
52
|
User-Agent:
|
13
|
-
- TeamCity Ruby Client 0.
|
53
|
+
- TeamCity Ruby Client 0.4.0
|
54
|
+
Accept:
|
55
|
+
- text/plain
|
14
56
|
Content-Type:
|
15
57
|
- text/plain
|
16
58
|
response:
|
17
59
|
status:
|
18
|
-
code:
|
19
|
-
message:
|
60
|
+
code: 200
|
61
|
+
message: OK
|
20
62
|
headers:
|
21
63
|
Server:
|
22
64
|
- Apache-Coyote/1.1
|
23
65
|
Set-Cookie:
|
24
|
-
- JSESSIONID=2156B978C22B9367FA02E60A38A60BE6; Path=/; HttpOnly
|
25
66
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
67
|
+
- TCSESSIONID=4AD6625B774BEF713CE1EE6E56459FD1; Path=/; HttpOnly
|
26
68
|
Pragma:
|
27
69
|
- no-cache
|
28
70
|
Expires:
|
@@ -30,11 +72,15 @@ http_interactions:
|
|
30
72
|
Cache-Control:
|
31
73
|
- no-cache
|
32
74
|
- no-store
|
75
|
+
Content-Type:
|
76
|
+
- text/plain
|
77
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
33
79
|
Date:
|
34
|
-
-
|
80
|
+
- Wed, 14 Aug 2013 02:43:34 GMT
|
35
81
|
body:
|
36
82
|
encoding: US-ASCII
|
37
|
-
string: ''
|
83
|
+
string: 'true'
|
38
84
|
http_version:
|
39
|
-
recorded_at:
|
85
|
+
recorded_at: Wed, 14 Aug 2013 02:43:34 GMT
|
40
86
|
recorded_with: VCR 2.4.0
|
@@ -1,28 +1,70 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
5
|
-
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/
|
4
|
+
method: post
|
5
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/projects
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
8
|
+
string: PutSetProjectDescriptionField
|
9
9
|
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 0.4.0
|
10
12
|
Accept:
|
11
13
|
- application/json; charset=utf-8
|
14
|
+
Content-Type:
|
15
|
+
- text/plain
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Apache-Coyote/1.1
|
23
|
+
Set-Cookie:
|
24
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
25
|
+
- TCSESSIONID=99F6F6C6D5774B7E45DBBDC654B9D4A4; Path=/; HttpOnly
|
26
|
+
Pragma:
|
27
|
+
- no-cache
|
28
|
+
Expires:
|
29
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
- no-store
|
33
|
+
Content-Type:
|
34
|
+
- application/json
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
|
+
Date:
|
38
|
+
- Wed, 14 Aug 2013 02:43:28 GMT
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! '{"id":"PutSetProjectDescriptionField","name":"PutSetProjectDescriptionField","href":"/httpAuth/app/rest/projects/id:PutSetProjectDescriptionField","description":"","archived":false,"webUrl":"http://localhost:8111/project.html?projectId=PutSetProjectDescriptionField","parentProject":{"id":"_Root","name":"<Root
|
42
|
+
project>","href":"/httpAuth/app/rest/projects/id:_Root"},"buildTypes":{"buildType":[]},"templates":{"buildType":[]},"parameters":{"property":[]},"vcsRoots":{"href":"/httpAuth/app/rest/vcs-roots?locator=project:(id:PutSetProjectDescriptionField)"},"projects":{"project":[]}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Wed, 14 Aug 2013 02:43:28 GMT
|
45
|
+
- request:
|
46
|
+
method: put
|
47
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/projects/PutSetProjectDescriptionField/description
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: description-changed-by-test
|
51
|
+
headers:
|
12
52
|
User-Agent:
|
13
|
-
- TeamCity Ruby Client 0.
|
53
|
+
- TeamCity Ruby Client 0.4.0
|
54
|
+
Accept:
|
55
|
+
- text/plain
|
14
56
|
Content-Type:
|
15
57
|
- text/plain
|
16
58
|
response:
|
17
59
|
status:
|
18
|
-
code:
|
19
|
-
message:
|
60
|
+
code: 200
|
61
|
+
message: OK
|
20
62
|
headers:
|
21
63
|
Server:
|
22
64
|
- Apache-Coyote/1.1
|
23
65
|
Set-Cookie:
|
24
|
-
- JSESSIONID=81E969C0654E55874C873D34DE486051; Path=/; HttpOnly
|
25
66
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
67
|
+
- TCSESSIONID=3A300E66809F9487E2528726FF2A761C; Path=/; HttpOnly
|
26
68
|
Pragma:
|
27
69
|
- no-cache
|
28
70
|
Expires:
|
@@ -30,11 +72,15 @@ http_interactions:
|
|
30
72
|
Cache-Control:
|
31
73
|
- no-cache
|
32
74
|
- no-store
|
75
|
+
Content-Type:
|
76
|
+
- text/plain
|
77
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
33
79
|
Date:
|
34
|
-
-
|
80
|
+
- Wed, 14 Aug 2013 02:43:28 GMT
|
35
81
|
body:
|
36
82
|
encoding: US-ASCII
|
37
|
-
string:
|
83
|
+
string: description-changed-by-test
|
38
84
|
http_version:
|
39
|
-
recorded_at:
|
85
|
+
recorded_at: Wed, 14 Aug 2013 02:43:28 GMT
|
40
86
|
recorded_with: VCR 2.4.0
|
@@ -1,28 +1,70 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
5
|
-
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/
|
4
|
+
method: post
|
5
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/projects
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string:
|
8
|
+
string: PutSetProjectNameField
|
9
9
|
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 0.4.0
|
10
12
|
Accept:
|
11
13
|
- application/json; charset=utf-8
|
14
|
+
Content-Type:
|
15
|
+
- text/plain
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- Apache-Coyote/1.1
|
23
|
+
Set-Cookie:
|
24
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
25
|
+
- TCSESSIONID=A9F266592000D2BBCB66489FC268B11A; Path=/; HttpOnly
|
26
|
+
Pragma:
|
27
|
+
- no-cache
|
28
|
+
Expires:
|
29
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
|
+
Cache-Control:
|
31
|
+
- no-cache
|
32
|
+
- no-store
|
33
|
+
Content-Type:
|
34
|
+
- application/json
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
|
+
Date:
|
38
|
+
- Wed, 14 Aug 2013 02:43:22 GMT
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! '{"id":"PutSetProjectNameField","name":"PutSetProjectNameField","href":"/httpAuth/app/rest/projects/id:PutSetProjectNameField","description":"","archived":false,"webUrl":"http://localhost:8111/project.html?projectId=PutSetProjectNameField","parentProject":{"id":"_Root","name":"<Root
|
42
|
+
project>","href":"/httpAuth/app/rest/projects/id:_Root"},"buildTypes":{"buildType":[]},"templates":{"buildType":[]},"parameters":{"property":[]},"vcsRoots":{"href":"/httpAuth/app/rest/vcs-roots?locator=project:(id:PutSetProjectNameField)"},"projects":{"project":[]}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Wed, 14 Aug 2013 02:43:22 GMT
|
45
|
+
- request:
|
46
|
+
method: put
|
47
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/projects/PutSetProjectNameField/name
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: PutNewProjectName
|
51
|
+
headers:
|
12
52
|
User-Agent:
|
13
|
-
- TeamCity Ruby Client 0.
|
53
|
+
- TeamCity Ruby Client 0.4.0
|
54
|
+
Accept:
|
55
|
+
- text/plain
|
14
56
|
Content-Type:
|
15
57
|
- text/plain
|
16
58
|
response:
|
17
59
|
status:
|
18
|
-
code:
|
19
|
-
message:
|
60
|
+
code: 200
|
61
|
+
message: OK
|
20
62
|
headers:
|
21
63
|
Server:
|
22
64
|
- Apache-Coyote/1.1
|
23
65
|
Set-Cookie:
|
24
|
-
- JSESSIONID=26A6850433EBD88598BE1436AEFD5C95; Path=/; HttpOnly
|
25
66
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
67
|
+
- TCSESSIONID=6CB883DE82DDD222FC821119FFB900DE; Path=/; HttpOnly
|
26
68
|
Pragma:
|
27
69
|
- no-cache
|
28
70
|
Expires:
|
@@ -30,11 +72,15 @@ http_interactions:
|
|
30
72
|
Cache-Control:
|
31
73
|
- no-cache
|
32
74
|
- no-store
|
75
|
+
Content-Type:
|
76
|
+
- text/plain
|
77
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
33
79
|
Date:
|
34
|
-
-
|
80
|
+
- Wed, 14 Aug 2013 02:43:22 GMT
|
35
81
|
body:
|
36
82
|
encoding: US-ASCII
|
37
|
-
string:
|
83
|
+
string: PutNewProjectName
|
38
84
|
http_version:
|
39
|
-
recorded_at:
|
85
|
+
recorded_at: Wed, 14 Aug 2013 02:43:22 GMT
|
40
86
|
recorded_with: VCR 2.4.0
|