teamcity-ruby-client 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +18 -0
  3. data/.rvmrc +48 -0
  4. data/CHANGELOG.md +7 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +153 -0
  8. data/Rakefile +16 -0
  9. data/lib/faraday/null_response_body.rb +17 -0
  10. data/lib/teamcity/api.rb +19 -0
  11. data/lib/teamcity/client/build_types.rb +93 -0
  12. data/lib/teamcity/client/builds.rb +36 -0
  13. data/lib/teamcity/client/common.rb +24 -0
  14. data/lib/teamcity/client/projects.rb +46 -0
  15. data/lib/teamcity/client.rb +14 -0
  16. data/lib/teamcity/configuration.rb +47 -0
  17. data/lib/teamcity/connection.rb +27 -0
  18. data/lib/teamcity/request.rb +40 -0
  19. data/lib/teamcity/version.rb +3 -0
  20. data/lib/teamcity.rb +24 -0
  21. data/spec/cassettes/BuildTypes/GET/_buildtype/should_fetch_the_details_of_a_buildtype_by_id.yml +49 -0
  22. data/spec/cassettes/BuildTypes/GET/_buildtype/should_raise_an_error_if_the_buildtype_does_not_exist.yml +50 -0
  23. data/spec/cassettes/BuildTypes/GET/_buildtype_agent_requirements/should_fetch_the_build_configuration_agent_requirements_for_a_buildtype.yml +44 -0
  24. data/spec/cassettes/BuildTypes/GET/_buildtype_agent_requirements/should_return_an_array.yml +44 -0
  25. data/spec/cassettes/BuildTypes/GET/_buildtype_agent_requirements/should_return_nil_if_there_are_no_agent_requirements_defined.yml +44 -0
  26. data/spec/cassettes/BuildTypes/GET/_buildtype_artifact_dependencies/should_fetch_the_build_configuration_artifact_dependencies_for_a_buildtype.yml +44 -0
  27. data/spec/cassettes/BuildTypes/GET/_buildtype_artifact_dependencies/should_return_an_array.yml +44 -0
  28. data/spec/cassettes/BuildTypes/GET/_buildtype_artifact_dependencies/should_return_nil_if_there_are_no_artifact_dependencies_defined.yml +44 -0
  29. data/spec/cassettes/BuildTypes/GET/_buildtype_features/should_fetch_the_build_configuration_features_for_a_buildtype.yml +44 -0
  30. data/spec/cassettes/BuildTypes/GET/_buildtype_features/should_return_an_array.yml +44 -0
  31. data/spec/cassettes/BuildTypes/GET/_buildtype_features/should_return_nil_if_there_are_no_features_defined.yml +44 -0
  32. data/spec/cassettes/BuildTypes/GET/_buildtype_parameters/should_fetch_the_build_configuration_parameters_for_a_buildtype.yml +44 -0
  33. data/spec/cassettes/BuildTypes/GET/_buildtype_parameters/should_return_an_array.yml +44 -0
  34. data/spec/cassettes/BuildTypes/GET/_buildtype_parameters/should_return_nil_if_there_are_no_parameters_defined.yml +44 -0
  35. data/spec/cassettes/BuildTypes/GET/_buildtype_settings/should_fetch_the_settings_for_a_given_buildtype.yml +44 -0
  36. data/spec/cassettes/BuildTypes/GET/_buildtype_settings/should_return_an_array.yml +44 -0
  37. data/spec/cassettes/BuildTypes/GET/_buildtype_snapshot_dependencies/should_fetch_the_build_configuration_snapshot_dependencies_for_a_buildtype.yml +44 -0
  38. data/spec/cassettes/BuildTypes/GET/_buildtype_snapshot_dependencies/should_return_an_array.yml +44 -0
  39. data/spec/cassettes/BuildTypes/GET/_buildtype_snapshot_dependencies/should_return_nil_if_there_are_no_snapshot_dependencies_defined.yml +44 -0
  40. data/spec/cassettes/BuildTypes/GET/_buildtype_steps/should_fetch_the_build_configuration_steps_for_a_buildtype.yml +46 -0
  41. data/spec/cassettes/BuildTypes/GET/_buildtype_steps/should_return_an_array.yml +46 -0
  42. data/spec/cassettes/BuildTypes/GET/_buildtype_steps/should_return_nil_if_there_are_no_steps_defined.yml +44 -0
  43. data/spec/cassettes/BuildTypes/GET/_buildtype_template/should_raise_an_exception_if_the_response_is_not_due_to_a_template_not_assigned.yml +50 -0
  44. data/spec/cassettes/BuildTypes/GET/_buildtype_template/should_return_nil_if_the_buildtype_is_not_associated_with_a_template.yml +50 -0
  45. data/spec/cassettes/BuildTypes/GET/_buildtype_template/should_return_the_attributes_of_the_associated_template.yml +45 -0
  46. data/spec/cassettes/BuildTypes/GET/_buildtype_triggers/should_fetch_the_build_configuration_triggers_for_a_buildtype.yml +44 -0
  47. data/spec/cassettes/BuildTypes/GET/_buildtype_triggers/should_return_an_array.yml +44 -0
  48. data/spec/cassettes/BuildTypes/GET/_buildtype_triggers/should_return_nil_if_there_are_no_triggers_defined.yml +44 -0
  49. data/spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_fetch_the_build_configuration_vcs_root_entries_for_a_buildtype.yml +45 -0
  50. data/spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_return_an_array.yml +45 -0
  51. data/spec/cassettes/BuildTypes/GET/_buildtype_vcs_root_entries/should_return_nil_if_there_are_no_vcs_root_entries_defined.yml +44 -0
  52. data/spec/cassettes/BuildTypes/GET/_buildtypes/should_fetch_all_the_buildtypes.yml +49 -0
  53. data/spec/cassettes/Builds/GET/_build/should_fetch_the_build_details.yml +49 -0
  54. data/spec/cassettes/Builds/GET/_build/should_raise_an_error_if_the_build_does_not_exist.yml +50 -0
  55. data/spec/cassettes/Builds/GET/_build_tags/should_fetch_the_build_tags.yml +44 -0
  56. data/spec/cassettes/Builds/GET/_build_tags/should_return_nil_if_there_are_no_build_tags_defined_for_a_build.yml +44 -0
  57. data/spec/cassettes/Builds/GET/_builds/should_allow_you_to_filter_by_multiple_build_locators.yml +44 -0
  58. data/spec/cassettes/Builds/GET/_builds/should_allow_you_to_filter_results_by_build_locators.yml +44 -0
  59. data/spec/cassettes/Builds/GET/_builds/should_allow_you_to_search_by_locator.yml +44 -0
  60. data/spec/cassettes/Builds/GET/_builds/should_fetch_all_the_builds.yml +44 -0
  61. data/spec/cassettes/Projects/GET/_project/should_fetch_a_single_project_by_id.yml +47 -0
  62. data/spec/cassettes/Projects/GET/_project/should_raise_an_error_if_the_project_does_not_exist.yml +50 -0
  63. data/spec/cassettes/Projects/GET/_project_buildtypes/should_fetch_all_the_buildTypes_for_a_project.yml +45 -0
  64. data/spec/cassettes/Projects/GET/_project_buildtypes/should_return_nil_if_the_project_does_not_have_any_build_build_types.yml +44 -0
  65. data/spec/cassettes/Projects/GET/_project_parameters/should_fetch_all_the_paramters_for_a_given_project.yml +44 -0
  66. data/spec/cassettes/Projects/GET/_project_parameters/should_return_nil_if_there_are_no_parameters_defined_for_a_project.yml +44 -0
  67. data/spec/cassettes/Projects/GET/_projects/should_fetch_projects.yml +46 -0
  68. data/spec/cassettes/Projects/GET/_projects/should_return_nil_if_there_are_no_projects.yml +44 -0
  69. data/spec/faraday/null_response_body_spec.rb +18 -0
  70. data/spec/spec_helper.rb +13 -0
  71. data/spec/support/vcr_setup.rb +9 -0
  72. data/spec/teamcity/api_spec.rb +63 -0
  73. data/spec/teamcity/client/builds_spec.rb +62 -0
  74. data/spec/teamcity/client/buildtypes_spec.rb +106 -0
  75. data/spec/teamcity/client/projects_spec.rb +82 -0
  76. data/spec/teamcity/client_spec.rb +10 -0
  77. data/spec/teamcity/version_spec.rb +7 -0
  78. data/spec/teamcity_spec.rb +90 -0
  79. data/teamcity-ruby-client.gemspec +32 -0
  80. metadata +334 -0
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/buildTypes/id:bt2/vcs-root-entries
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=CB763305F6144FCD69D62E9DC3034EB2; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Tue, 23 Apr 2013 15:14:22 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"vcs-root-entry":[{"id":"1","checkout-rules":"","vcs-root":{"id":"1","name":"teamcity
42
+ ruby client","href":"/guestAuth/app/rest/7.0/vcs-roots/id:1"}}]}'
43
+ http_version:
44
+ recorded_at: Tue, 23 Apr 2013 15:14:23 GMT
45
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/buildTypes/id:bt2/vcs-root-entries
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=BF7DD1B47A9BA4E5AFCB654EFA6DD11C; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Tue, 23 Apr 2013 15:14:22 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"vcs-root-entry":[{"id":"1","checkout-rules":"","vcs-root":{"id":"1","name":"teamcity
42
+ ruby client","href":"/guestAuth/app/rest/7.0/vcs-roots/id:1"}}]}'
43
+ http_version:
44
+ recorded_at: Tue, 23 Apr 2013 15:14:23 GMT
45
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/buildTypes/id:bt4/vcs-root-entries
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=44F83C4AD95F7F8F6DC4A7C956DED081; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Tue, 23 Apr 2013 15:14:22 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: 'null'
42
+ http_version:
43
+ recorded_at: Tue, 23 Apr 2013 15:14:23 GMT
44
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/buildTypes
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=2AC1F176971DEF17AAFFDD5302748216; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Tue, 23 Apr 2013 15:14:22 GMT
39
+ body:
40
+ 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"}]}'
47
+ http_version:
48
+ recorded_at: Tue, 23 Apr 2013 15:14:22 GMT
49
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/builds/id:2
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=D2EA85979E1D8F7D6429B8530B5D8C77; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Tue, 23 Apr 2013 15:24:02 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"id":2,"number":"2","status":"SUCCESS","href":"/guestAuth/app/rest/7.0/builds/id:2","webUrl":"http://localhost:8111/viewLog.html?buildId=2&buildTypeId=bt3","personal":false,"history":false,"pinned":false,"statusText":"Tests
42
+ passed: 63, ignored: 1","buildType":{"id":"bt3","name":"build B1","href":"/guestAuth/app/rest/7.0/buildTypes/id:bt3","projectName":"Project
43
+ B","projectId":"project3","webUrl":"http://localhost:8111/viewType.html?buildTypeId=bt3"},"startDate":"20130423T105917-0400","finishDate":"20130423T110028-0400","agent":{"href":"/guestAuth/app/rest/7.0/agents/id:1","id":1,"name":"Default
44
+ Agent"},"tags":null,"properties":null,"snapshot-dependencies":null,"artifact-dependencies":null,"revisions":{"revision":[{"version":"bb19f54ab1d7450bf85b060f9cc9b6218dd61e5b","vcs-root-instance":{"id":"1","vcs-root-id":"1","name":"teamcity
45
+ ruby client","href":"/guestAuth/app/rest/7.0/vcs-roots/id:1/instances/id:1"}}]},"triggered":{"date":"20130423T105906-0400","user":{"href":"/guestAuth/app/rest/7.0/users/id:1","id":1,"name":"Jay
46
+ Perry","username":"jperry"}},"changes":{"count":0,"href":"/guestAuth/app/rest/7.0/changes?build=id:2"}}'
47
+ http_version:
48
+ recorded_at: Tue, 23 Apr 2013 15:24:02 GMT
49
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/builds/id:10000
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=9AF99299E2C9B5FBEE57338AE5696FC3; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - text/plain
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Date:
38
+ - Tue, 23 Apr 2013 15:25:04 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! 'Error has occurred during request processing (Not Found).
42
+
43
+ Error: jetbrains.buildServer.server.rest.errors.NotFoundException: No build
44
+ can be found by id ''10000''.
45
+
46
+ Could not find the entity requested. Check the reference is correct and the
47
+ user has permissions to access the entity.'
48
+ http_version:
49
+ recorded_at: Tue, 23 Apr 2013 15:25:04 GMT
50
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/builds/id:2/tags
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=3901267E5EC970712F37999461CAB7EE; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Tue, 23 Apr 2013 15:36:27 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"tag":["release_tag"]}'
42
+ http_version:
43
+ recorded_at: Tue, 23 Apr 2013 15:36:27 GMT
44
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/builds/id:1/tags
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=0C8ECFD78E515BEB320F6082D8209811; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Tue, 23 Apr 2013 15:36:27 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: 'null'
42
+ http_version:
43
+ recorded_at: Tue, 23 Apr 2013 15:36:27 GMT
44
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/builds?locator=count:2,status:SUCCESS
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=563DAE14C741955B5672071C628E6737; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Tue, 23 Apr 2013 18:53:33 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"count":2,"nextHref":"/guestAuth/app/rest/7.0/builds?locator=count:2,status:SUCCESS&count=2&start=2","build":[{"id":2,"number":"2","status":"SUCCESS","buildTypeId":"bt3","startDate":"20130423T105917-0400","href":"/guestAuth/app/rest/7.0/builds/id:2","webUrl":"http://localhost:8111/viewLog.html?buildId=2&buildTypeId=bt3"},{"id":1,"number":"1","status":"SUCCESS","buildTypeId":"bt3","startDate":"20130423T104727-0400","href":"/guestAuth/app/rest/7.0/builds/id:1","webUrl":"http://localhost:8111/viewLog.html?buildId=1&buildTypeId=bt3"}]}'
42
+ http_version:
43
+ recorded_at: Tue, 23 Apr 2013 18:53:33 GMT
44
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/builds?locator=count:2
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=64FBA4C97D3DD285075F206DC58EBB48; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Tue, 23 Apr 2013 18:45:09 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"count":2,"nextHref":"/guestAuth/app/rest/7.0/builds?locator=count:2&count=2&start=2","build":[{"id":4,"number":"1","status":"FAILURE","buildTypeId":"bt4","startDate":"20130423T142954-0400","href":"/guestAuth/app/rest/7.0/builds/id:4","webUrl":"http://localhost:8111/viewLog.html?buildId=4&buildTypeId=bt4"},{"id":3,"number":"1","status":"FAILURE","buildTypeId":"bt2","startDate":"20130423T142629-0400","href":"/guestAuth/app/rest/7.0/builds/id:3","webUrl":"http://localhost:8111/viewLog.html?buildId=3&buildTypeId=bt2"}]}'
42
+ http_version:
43
+ recorded_at: Tue, 23 Apr 2013 18:45:09 GMT
44
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/builds?locator=count:2
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=456C923C3ED6E240B92CE602E0678C32; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Tue, 23 Apr 2013 18:43:45 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"count":2,"nextHref":"/guestAuth/app/rest/7.0/builds?locator=count:2&count=2&start=2","build":[{"id":4,"number":"1","status":"FAILURE","buildTypeId":"bt4","startDate":"20130423T142954-0400","href":"/guestAuth/app/rest/7.0/builds/id:4","webUrl":"http://localhost:8111/viewLog.html?buildId=4&buildTypeId=bt4"},{"id":3,"number":"1","status":"FAILURE","buildTypeId":"bt2","startDate":"20130423T142629-0400","href":"/guestAuth/app/rest/7.0/builds/id:3","webUrl":"http://localhost:8111/viewLog.html?buildId=3&buildTypeId=bt2"}]}'
42
+ http_version:
43
+ recorded_at: Tue, 23 Apr 2013 18:43:45 GMT
44
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/builds
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=4CB39062DC98CE06FD3703463EF939B3; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Tue, 23 Apr 2013 18:43:45 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"count":4,"build":[{"id":4,"number":"1","status":"FAILURE","buildTypeId":"bt4","startDate":"20130423T142954-0400","href":"/guestAuth/app/rest/7.0/builds/id:4","webUrl":"http://localhost:8111/viewLog.html?buildId=4&buildTypeId=bt4"},{"id":3,"number":"1","status":"FAILURE","buildTypeId":"bt2","startDate":"20130423T142629-0400","href":"/guestAuth/app/rest/7.0/builds/id:3","webUrl":"http://localhost:8111/viewLog.html?buildId=3&buildTypeId=bt2"},{"id":2,"number":"2","status":"SUCCESS","buildTypeId":"bt3","startDate":"20130423T105917-0400","href":"/guestAuth/app/rest/7.0/builds/id:2","webUrl":"http://localhost:8111/viewLog.html?buildId=2&buildTypeId=bt3"},{"id":1,"number":"1","status":"SUCCESS","buildTypeId":"bt3","startDate":"20130423T104727-0400","href":"/guestAuth/app/rest/7.0/builds/id:1","webUrl":"http://localhost:8111/viewLog.html?buildId=1&buildTypeId=bt3"}]}'
42
+ http_version:
43
+ recorded_at: Tue, 23 Apr 2013 18:43:45 GMT
44
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/projects/id:project2
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=487E769721FC69401E90949E6B74828F; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - Fri, 22 Feb 2013 14:22:30 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"description":"","archived":false,"webUrl":"http://localhost:8111/project.html?projectId=project2","id":"project2","name":"Project
42
+ A","href":"/guestAuth/app/rest/7.0/projects/id:project2","buildTypes":{"buildType":[{"id":"bt2","name":"build
43
+ A1","href":"/guestAuth/app/rest/7.0/buildTypes/id:bt2","projectName":"Project
44
+ A","projectId":"project2","webUrl":"http://localhost:8111/viewType.html?buildTypeId=bt2"}]},"templates":null,"parameters":null}'
45
+ http_version:
46
+ recorded_at: Fri, 22 Feb 2013 14:22:30 GMT
47
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8111/guestAuth/app/rest/7.0/projects/id:missing
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json; charset=utf-8
12
+ User-Agent:
13
+ - TeamCity Ruby Client 0.0.1
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ Set-Cookie:
24
+ - JSESSIONID=5ECB43734469F535EBC8424C048843D1; Path=/; HttpOnly
25
+ - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; 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
+ - text/plain
35
+ Transfer-Encoding:
36
+ - chunked
37
+ Date:
38
+ - Tue, 26 Feb 2013 03:08:47 GMT
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! 'Error has occurred during request processing (Not Found).
42
+
43
+ Error: jetbrains.buildServer.server.rest.errors.NotFoundException: No project
44
+ found by locator ''id:missing. Project cannot be found by id ''missing''.
45
+
46
+ Could not find the entity requested. Check the reference is correct and the
47
+ user has permissions to access the entity.'
48
+ http_version:
49
+ recorded_at: Tue, 26 Feb 2013 03:08:47 GMT
50
+ recorded_with: VCR 2.4.0