teamcity-ruby-client 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.yardopts +1 -0
- data/CHANGELOG.md +15 -3
- data/Guardfile +9 -0
- data/lib/teamcity.rb +1 -0
- data/lib/teamcity/client.rb +1 -2
- data/lib/teamcity/client/build_types.rb +94 -23
- data/lib/teamcity/client/projects.rb +37 -8
- data/lib/teamcity/client/vcs_roots.rb +9 -16
- data/lib/teamcity/element_builder.rb +27 -0
- data/lib/teamcity/version.rb +1 -1
- data/spec/cassettes/BuildTypes/POST/_attach_vcs_root/should_attach_a_vcs_root_to_a_buildtype.yml +12 -10
- data/spec/cassettes/BuildTypes/POST/_create_agent_requirement/should_create_an_agent_requirement_for_a_buildtype.yml +11 -11
- data/spec/cassettes/BuildTypes/POST/_create_build_step/should_create_a_build_step_for_a_given_build_type.yml +46 -0
- data/spec/cassettes/BuildTypes/POST/_create_build_trigger/should_create_a_build_trigger_for_a_given_build_type.yml +46 -0
- data/spec/cassettes/BuildTypes/POST/_create_buildtype/should_create_a_build_type.yml +86 -0
- data/spec/cassettes/BuildTypes/PUT/_set_buildtype_setting/should_set_if_it_should_perform_clean_builds.yml +46 -0
- data/spec/cassettes/BuildTypes/PUT/_set_buildtype_setting/should_set_what_is_the_timeout_in_minutes_when_executing_builds.yml +46 -0
- data/spec/cassettes/BuildTypes/PUT/_set_buildtype_setting/should_set_where_the_checkout_happens_when_building.yml +46 -0
- data/spec/cassettes/Projects/GET/_parent_project/should_fetch_the_parent_project_for_a_given_project.yml +46 -0
- data/spec/cassettes/Projects/GET/_parent_project/should_return_nil_if_there_is_no_parent_project_for_a_given_project.yml +46 -0
- data/spec/cassettes/Projects/POST/_copy_project/should_copy_a_project.yml +27 -24
- data/spec/cassettes/Projects/PUT/_set_parent_project/should_set_a_parent_project_for_a_given_project.yml +134 -0
- data/spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_git_vcs_root_that_is_shared_with_the_project_and_sub-projects.yml +89 -0
- data/spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_subversion_vcs_root_that_is_shared_with_the_project_and_sub-projects.yml +89 -0
- data/spec/teamcity/api_spec.rb +1 -1
- data/spec/teamcity/client/buildtypes_spec.rb +58 -2
- data/spec/teamcity/client/projects_spec.rb +36 -2
- data/spec/teamcity/client/vcs_roots_spec.rb +17 -3
- data/spec/teamcity/client_spec.rb +2 -2
- data/spec/teamcity/element_builder_spec.rb +30 -0
- data/spec/teamcity/headers_spec.rb +2 -2
- data/teamcity-ruby-client.gemspec +2 -3
- metadata +44 -33
- data/spec/cassettes/VCSRoots/POST/_create_vcs_root/should_create_a_vcs_root_that_is_shared_with_the_project_and_sub-projects.yml +0 -90
@@ -4,17 +4,17 @@ http_interactions:
|
|
4
4
|
method: post
|
5
5
|
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PostBuildTypeTests/agent-requirements
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
9
|
-
name="property-name" value="post-agent-requirement-name"/><property name="property-value"
|
10
|
-
value="post-agent-requirement-value"/></properties></agent-requirement>
|
7
|
+
encoding: UTF-8
|
8
|
+
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"}]}}'
|
11
9
|
headers:
|
12
10
|
User-Agent:
|
13
|
-
- TeamCity Ruby Client
|
11
|
+
- TeamCity Ruby Client 1.1.0
|
14
12
|
Accept:
|
15
13
|
- application/json; charset=utf-8
|
16
14
|
Content-Type:
|
17
|
-
- application/
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
18
|
response:
|
19
19
|
status:
|
20
20
|
code: 200
|
@@ -24,7 +24,7 @@ http_interactions:
|
|
24
24
|
- Apache-Coyote/1.1
|
25
25
|
Set-Cookie:
|
26
26
|
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
27
|
-
- TCSESSIONID=
|
27
|
+
- TCSESSIONID=F99201B872CA2CCB1E069B9597490641; Path=/; HttpOnly
|
28
28
|
Pragma:
|
29
29
|
- no-cache
|
30
30
|
Expires:
|
@@ -37,10 +37,10 @@ http_interactions:
|
|
37
37
|
Transfer-Encoding:
|
38
38
|
- chunked
|
39
39
|
Date:
|
40
|
-
- Wed,
|
40
|
+
- Wed, 27 Nov 2013 18:34:32 GMT
|
41
41
|
body:
|
42
|
-
encoding:
|
43
|
-
string:
|
42
|
+
encoding: UTF-8
|
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"}]}}'
|
44
44
|
http_version:
|
45
|
-
recorded_at: Wed,
|
45
|
+
recorded_at: Wed, 27 Nov 2013 18:34:31 GMT
|
46
46
|
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PostBuildTypeTests/steps
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"type":"Maven","name":"Unit Tests","properties":{"property":[{"name":"goals","value":"verify"},{"name":"mavenSelection","value":"mavenSelection:default"},{"name":"pomLocation","value":"pom.xml"}]}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 1.1.0
|
12
|
+
Accept:
|
13
|
+
- application/json; charset=utf-8
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- Apache-Coyote/1.1
|
25
|
+
Set-Cookie:
|
26
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
27
|
+
- TCSESSIONID=63DCFFD91A94BC6EC6319F4545960947; Path=/; HttpOnly
|
28
|
+
Pragma:
|
29
|
+
- no-cache
|
30
|
+
Expires:
|
31
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
32
|
+
Cache-Control:
|
33
|
+
- no-cache
|
34
|
+
- no-store
|
35
|
+
Content-Type:
|
36
|
+
- application/json
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
Date:
|
40
|
+
- Sun, 01 Dec 2013 19:18:30 GMT
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":"RUNNER_6","name":"Unit Tests","type":"Maven","properties":{"property":[{"name":"goals","value":"verify"},{"name":"mavenSelection","value":"mavenSelection:default"},{"name":"pomLocation","value":"pom.xml"}]}}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 01 Dec 2013 19:18:31 GMT
|
46
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PostBuildTypeTests/triggers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"type":"vcsTrigger","properties":{"property":[{"name":"groupCheckkinsByCommitter","value":"true"},{"name":"perCheckinTriggering","value":"true"},{"name":"quietPeriodMode","value":"DO_NOT_USE"}]}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 1.1.0
|
12
|
+
Accept:
|
13
|
+
- application/json; charset=utf-8
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- Apache-Coyote/1.1
|
25
|
+
Set-Cookie:
|
26
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
27
|
+
- TCSESSIONID=65A15803341C99784EDBBD5D5F286E32; Path=/; HttpOnly
|
28
|
+
Pragma:
|
29
|
+
- no-cache
|
30
|
+
Expires:
|
31
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
32
|
+
Cache-Control:
|
33
|
+
- no-cache
|
34
|
+
- no-store
|
35
|
+
Content-Type:
|
36
|
+
- application/json
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
Date:
|
40
|
+
- Wed, 27 Nov 2013 19:09:51 GMT
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":"vcsTrigger","type":"vcsTrigger","properties":{"property":[{"name":"groupCheckkinsByCommitter","value":"true"},{"name":"perCheckinTriggering","value":"true"},{"name":"quietPeriodMode","value":"DO_NOT_USE"}]}}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Wed, 27 Nov 2013 19:09:51 GMT
|
46
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
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: ProjectToTestBuildTypes
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 1.1.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=1A877CAB29A83C6B5990DBA2E10326AC; 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
|
+
- Sat, 07 Dec 2013 00:15:29 GMT
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! '{"id":"ProjectToTestBuildTypes","name":"ProjectToTestBuildTypes","href":"/httpAuth/app/rest/projects/id:ProjectToTestBuildTypes","description":"","archived":false,"webUrl":"http://localhost:8111/project.html?projectId=ProjectToTestBuildTypes","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:ProjectToTestBuildTypes)"},"projects":{"project":[]}}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Sat, 07 Dec 2013 00:15:29 GMT
|
45
|
+
- request:
|
46
|
+
method: post
|
47
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/projects/ProjectToTestBuildTypes/buildTypes
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: PostCreateBuildType
|
51
|
+
headers:
|
52
|
+
User-Agent:
|
53
|
+
- TeamCity Ruby Client 1.1.0
|
54
|
+
Accept:
|
55
|
+
- application/json; charset=utf-8
|
56
|
+
Content-Type:
|
57
|
+
- text/plain
|
58
|
+
response:
|
59
|
+
status:
|
60
|
+
code: 200
|
61
|
+
message: OK
|
62
|
+
headers:
|
63
|
+
Server:
|
64
|
+
- Apache-Coyote/1.1
|
65
|
+
Set-Cookie:
|
66
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
67
|
+
- TCSESSIONID=00528D7A7D064B8152CAD47030215F5F; Path=/; HttpOnly
|
68
|
+
Pragma:
|
69
|
+
- no-cache
|
70
|
+
Expires:
|
71
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
72
|
+
Cache-Control:
|
73
|
+
- no-cache
|
74
|
+
- no-store
|
75
|
+
Content-Type:
|
76
|
+
- application/json
|
77
|
+
Transfer-Encoding:
|
78
|
+
- chunked
|
79
|
+
Date:
|
80
|
+
- Sat, 07 Dec 2013 00:15:29 GMT
|
81
|
+
body:
|
82
|
+
encoding: US-ASCII
|
83
|
+
string: ! '{"id":"ProjectToTestBuildTypes_PostCreateBuildType","name":"PostCreateBuildType","href":"/httpAuth/app/rest/buildTypes/id:ProjectToTestBuildTypes_PostCreateBuildType","webUrl":"http://localhost:8111/viewType.html?buildTypeId=ProjectToTestBuildTypes_PostCreateBuildType","paused":false,"project":{"id":"ProjectToTestBuildTypes","name":"ProjectToTestBuildTypes","href":"/httpAuth/app/rest/projects/id:ProjectToTestBuildTypes"},"builds":{"href":"/httpAuth/app/rest/buildTypes/id:ProjectToTestBuildTypes_PostCreateBuildType/builds/"},"vcs-root-entries":{"vcs-root-entry":[]},"settings":{"property":[{"name":"allowExternalStatus","value":"false"},{"name":"artifactRules"},{"name":"buildNumberCounter","value":"1"},{"name":"buildNumberPattern","value":"%build.counter%"},{"name":"checkoutDirectory"},{"name":"checkoutMode","value":"ON_SERVER"},{"name":"cleanBuild","value":"false"},{"name":"enableHangingBuildsDetection","value":"true"},{"name":"executionTimeoutMin","value":"0"},{"name":"maximumNumberOfBuilds","value":"0"},{"name":"shouldFailBuildIfTestsFailed","value":"true"},{"name":"shouldFailBuildOnAnyErrorMessage","value":"false"},{"name":"shouldFailBuildOnBadExitCode","value":"true"},{"name":"shouldFailBuildOnOOMEOrCrash","value":"true"},{"name":"showDependenciesChanges","value":"false"},{"name":"vcsLabelingBranchFilter","value":"+:<default>"}]},"parameters":{"property":[]},"steps":{"step":[]},"features":{"feature":[]},"triggers":{"trigger":[]},"snapshot-dependencies":{"snapshot-dependency":[]},"artifact-dependencies":{"artifact-dependency":[]},"agent-requirements":{"agent-requirement":[]}}'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Sat, 07 Dec 2013 00:15:29 GMT
|
86
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PutSetBuildTypeSettings/settings/cleanBuild
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: 'true'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 1.1.0
|
12
|
+
Accept:
|
13
|
+
- text/plain
|
14
|
+
Content-Type:
|
15
|
+
- text/plain
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- Apache-Coyote/1.1
|
25
|
+
Set-Cookie:
|
26
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
27
|
+
- TCSESSIONID=1D99A32BD61552E930964F603B52EBC8; Path=/; HttpOnly
|
28
|
+
Pragma:
|
29
|
+
- no-cache
|
30
|
+
Expires:
|
31
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
32
|
+
Cache-Control:
|
33
|
+
- no-cache
|
34
|
+
- no-store
|
35
|
+
Content-Type:
|
36
|
+
- text/plain
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
Date:
|
40
|
+
- Tue, 19 Nov 2013 15:50:59 GMT
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: 'true'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 19 Nov 2013 15:50:59 GMT
|
46
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PutSetBuildTypeSettings/settings/executionTimeoutMin
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '10'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 1.1.0
|
12
|
+
Accept:
|
13
|
+
- text/plain
|
14
|
+
Content-Type:
|
15
|
+
- text/plain
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- Apache-Coyote/1.1
|
25
|
+
Set-Cookie:
|
26
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
27
|
+
- TCSESSIONID=4FE4C7EC997C6647CFB8D72A8A4D27C3; Path=/; HttpOnly
|
28
|
+
Pragma:
|
29
|
+
- no-cache
|
30
|
+
Expires:
|
31
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
32
|
+
Cache-Control:
|
33
|
+
- no-cache
|
34
|
+
- no-store
|
35
|
+
Content-Type:
|
36
|
+
- text/plain
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
Date:
|
40
|
+
- Tue, 19 Nov 2013 15:50:59 GMT
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '10'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 19 Nov 2013 15:50:59 GMT
|
46
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: http://teamcity-ruby-client:teamcity@localhost:8111/httpAuth/app/rest/buildTypes/BuildTypeTests_PutSetBuildTypeSettings/settings/checkoutMode
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ON_AGENT
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 1.1.0
|
12
|
+
Accept:
|
13
|
+
- text/plain
|
14
|
+
Content-Type:
|
15
|
+
- text/plain
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- Apache-Coyote/1.1
|
25
|
+
Set-Cookie:
|
26
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
27
|
+
- TCSESSIONID=D54F4E6C1DAEAD64AFF4347E800034BD; Path=/; HttpOnly
|
28
|
+
Pragma:
|
29
|
+
- no-cache
|
30
|
+
Expires:
|
31
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
32
|
+
Cache-Control:
|
33
|
+
- no-cache
|
34
|
+
- no-store
|
35
|
+
Content-Type:
|
36
|
+
- text/plain
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
Date:
|
40
|
+
- Tue, 19 Nov 2013 15:50:59 GMT
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: ON_AGENT
|
44
|
+
http_version:
|
45
|
+
recorded_at: Tue, 19 Nov 2013 15:50:59 GMT
|
46
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8111/guestAuth/app/rest/projects/id:GetProjectWithParent/parentProject
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 1.1.0
|
12
|
+
Accept:
|
13
|
+
- application/json; charset=utf-8
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- Apache-Coyote/1.1
|
25
|
+
Set-Cookie:
|
26
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
27
|
+
- TCSESSIONID=2AE7B81BB70BF99FF8B3C9EEAA6510EF; Path=/; HttpOnly
|
28
|
+
Pragma:
|
29
|
+
- no-cache
|
30
|
+
Expires:
|
31
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
32
|
+
Cache-Control:
|
33
|
+
- no-cache
|
34
|
+
- no-store
|
35
|
+
Content-Type:
|
36
|
+
- application/json
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
Date:
|
40
|
+
- Sun, 17 Nov 2013 19:27:28 GMT
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":"GetParentProject","name":"GetParentProject","href":"/guestAuth/app/rest/projects/id:GetParentProject"}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 17 Nov 2013 19:27:30 GMT
|
46
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:8111/guestAuth/app/rest/projects/id:GetProjectWithNoParent/parentProject
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- TeamCity Ruby Client 1.1.0
|
12
|
+
Accept:
|
13
|
+
- application/json; charset=utf-8
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- Apache-Coyote/1.1
|
25
|
+
Set-Cookie:
|
26
|
+
- RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
|
27
|
+
- TCSESSIONID=2B1D2E80559E1B8E51D65264F5FC4B55; Path=/; HttpOnly
|
28
|
+
Pragma:
|
29
|
+
- no-cache
|
30
|
+
Expires:
|
31
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
32
|
+
Cache-Control:
|
33
|
+
- no-cache
|
34
|
+
- no-store
|
35
|
+
Content-Type:
|
36
|
+
- application/json
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
Date:
|
40
|
+
- Sun, 17 Nov 2013 19:27:28 GMT
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":"_Root","name":"<Root project>","href":"/guestAuth/app/rest/projects/id:_Root"}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 17 Nov 2013 19:27:30 GMT
|
46
|
+
recorded_with: VCR 2.4.0
|