Skip to content

Commit

Permalink
Update cassettes for v17.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanouil Kampitakis committed Aug 15, 2019
1 parent 3283c92 commit 513e2c8
Show file tree
Hide file tree
Showing 132 changed files with 7,366 additions and 33,186 deletions.
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def server_version(self, manager, my_vcr):
"""
Special fixture to get server version from recorded cassette.
"""
with my_vcr.use_cassette("server_version_cache/server_version_cache"):
with my_vcr.use_cassette("version/get"):
return manager._session.server_version

def test_request_url(self, _execute_test_action, expected_request_url):
Expand Down
63 changes: 43 additions & 20 deletions tests/fixtures/cassettes/v17.5.0/agent/agent_delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ interactions:
- request:
body: null
headers:
Accept: [application/vnd.go.cd.v4+json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Basic YWRtaW46MTIzNDU=]
Connection: [keep-alive]
Content-Length: ['0']
Cookie: [JSESSIONID=18o3zhwkpab059nwl0y3y1zgj]
User-Agent: [python-requests/2.13.0]
Accept:
- application/vnd.go.cd.v4+json
Accept-Encoding:
- gzip, deflate
Authorization:
- Basic YWRtaW46MTIzNDU=
Connection:
- keep-alive
Content-Length:
- '0'
Cookie:
- JSESSIONID=1fpp25trti0hiunytvqp739rl
User-Agent:
- python-requests/2.22.0
method: DELETE
uri: http://localhost:8153/go/api/agents/964c760d-2803-4dac-a98e-6b3b2b682f3e
response:
Expand All @@ -17,17 +24,33 @@ interactions:
H4sIAAAAAAAAAKvmUlBQyk0tLk5MT1WyUlBySc1JLUlNUTBUAArklWgUa+opcdVyAQB9TV8uJwAA
AA==
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Encoding: [gzip]
Content-Type: [application/vnd.go.cd.v4+json; charset=utf-8]
Date: ['Wed, 14 Jun 2017 11:51:43 GMT']
ETag: ['"94406fe185fd1456e2e48cc9f4ef4990--gzip"']
Vary: ['Accept-Encoding, User-Agent']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
X-Request-Id: [30c56333-f4d7-4453-afe1-94e6cea8aa2c]
X-Runtime: ['0.075000']
X-UA-Compatible: [chrome=1]
X-XSS-Protection: [1; mode=block]
status: {code: 200, message: OK}
cache-control:
- max-age=0, private, must-revalidate
content-encoding:
- gzip
content-type:
- application/vnd.go.cd.v4+json; charset=utf-8
date:
- Thu, 15 Aug 2019 13:36:10 GMT
etag:
- '"94406fe185fd1456e2e48cc9f4ef4990--gzip"'
transfer-encoding:
- chunked
vary:
- Accept-Encoding, User-Agent
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-request-id:
- 37cee38d-41fb-48ea-9e51-90246741714a
x-runtime:
- '0.064000'
x-ua-compatible:
- chrome=1
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
version: 1
60 changes: 41 additions & 19 deletions tests/fixtures/cassettes/v17.5.0/agent/agent_get.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ interactions:
- request:
body: null
headers:
Accept: [application/vnd.go.cd.v4+json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Basic YWRtaW46MTIzNDU=]
Connection: [keep-alive]
Cookie: [JSESSIONID=18o3zhwkpab059nwl0y3y1zgj]
User-Agent: [python-requests/2.13.0]
Accept:
- application/vnd.go.cd.v4+json
Accept-Encoding:
- gzip, deflate
Authorization:
- Basic YWRtaW46MTIzNDU=
Connection:
- keep-alive
Cookie:
- JSESSIONID=1fpp25trti0hiunytvqp739rl
User-Agent:
- python-requests/2.22.0
method: GET
uri: http://localhost:8153/go/api/agents/68e5d48c-753a-4395-a79c-1cb22d77a12f
response:
Expand All @@ -20,17 +26,33 @@ interactions:
JfaNORkrDnem00I0ZgIWMh3uUX1ipMJpDVPYSa+zYMPKC0I7Cv5z5ca9SmN8SOR8N+U0E3PB98RP
PsJY4FFqhYfw/wemdXLkd7O3a5fkknwDEETCNV0CAAA=
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Encoding: [gzip]
Content-Type: [application/vnd.go.cd.v4+json; charset=utf-8]
Date: ['Wed, 14 Jun 2017 11:51:42 GMT']
ETag: ['"78d6fa09770128fa5237345ddb38ff75--gzip"']
Vary: ['Accept-Encoding, User-Agent']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
X-Request-Id: [31fde6d8-f282-4c7e-863e-42b9d82699f8]
X-Runtime: ['0.048000']
X-UA-Compatible: [chrome=1]
X-XSS-Protection: [1; mode=block]
status: {code: 200, message: OK}
cache-control:
- max-age=0, private, must-revalidate
content-encoding:
- gzip
content-type:
- application/vnd.go.cd.v4+json; charset=utf-8
date:
- Thu, 15 Aug 2019 13:36:10 GMT
etag:
- '"78d6fa09770128fa5237345ddb38ff75--gzip"'
transfer-encoding:
- chunked
vary:
- Accept-Encoding, User-Agent
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-request-id:
- baa617e2-e3ca-40f7-87e8-ab21c5b811b7
x-runtime:
- '0.018000'
x-ua-compatible:
- chrome=1
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
version: 1
60 changes: 41 additions & 19 deletions tests/fixtures/cassettes/v17.5.0/agent/agent_job_history.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ interactions:
- request:
body: null
headers:
Accept: [application/json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Basic YWRtaW46MTIzNDU=]
Connection: [keep-alive]
Cookie: [JSESSIONID=18o3zhwkpab059nwl0y3y1zgj]
User-Agent: [python-requests/2.13.0]
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Authorization:
- Basic YWRtaW46MTIzNDU=
Connection:
- keep-alive
Cookie:
- JSESSIONID=1fpp25trti0hiunytvqp739rl
User-Agent:
- python-requests/2.22.0
method: GET
uri: http://localhost:8153/go/api/agents/6dae05c5-dc56-4bf4-95bc-af8badbe7be4/job_run_history/0
response:
Expand All @@ -16,17 +22,33 @@ interactions:
H4sIAAAAAAAAAKtWyspPKlayio7VUSpITM/MSyzJzM9TsqpWyk9LK04tUbIy0FEqyS9JzAGzgEpS
44szq1KVrAwNamsBq7TEXz4AAAA=
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Encoding: [gzip]
Content-Type: [application/json; charset=utf-8]
Date: ['Wed, 14 Jun 2017 11:51:43 GMT']
ETag: ['"4986f5107367ec3a5ecbc9a6f5d3b5b9--gzip"']
Vary: ['Accept-Encoding, User-Agent']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
X-Request-Id: [413051d2-ee22-4399-8c5d-e4e0f77a7bb6]
X-Runtime: ['0.044000']
X-UA-Compatible: [chrome=1]
X-XSS-Protection: [1; mode=block]
status: {code: 200, message: OK}
cache-control:
- max-age=0, private, must-revalidate
content-encoding:
- gzip
content-type:
- application/json; charset=utf-8
date:
- Thu, 15 Aug 2019 13:36:11 GMT
etag:
- '"4986f5107367ec3a5ecbc9a6f5d3b5b9--gzip"'
transfer-encoding:
- chunked
vary:
- Accept-Encoding, User-Agent
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-request-id:
- 44528b9b-356c-4d12-8768-a1aa469374af
x-runtime:
- '0.017000'
x-ua-compatible:
- chrome=1
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
version: 1
60 changes: 41 additions & 19 deletions tests/fixtures/cassettes/v17.5.0/agent/agent_list_as_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ interactions:
- request:
body: null
headers:
Accept: [application/vnd.go.cd.v4+json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Basic YWRtaW46MTIzNDU=]
Connection: [keep-alive]
Cookie: [JSESSIONID=18o3zhwkpab059nwl0y3y1zgj]
User-Agent: [python-requests/2.13.0]
Accept:
- application/vnd.go.cd.v4+json
Accept-Encoding:
- gzip, deflate
Authorization:
- Basic YWRtaW46MTIzNDU=
Connection:
- keep-alive
Cookie:
- JSESSIONID=1fpp25trti0hiunytvqp739rl
User-Agent:
- python-requests/2.22.0
method: GET
uri: http://localhost:8153/go/api/agents
response:
Expand All @@ -23,17 +29,33 @@ interactions:
uCXnfxL6v/VnoyCNi4jymHQRIsnyLCUVy4FQgKgqsy4uIL9p618lwC1Z/59+9Jfv3fxn5D17PwH6
qZ4nuAkAAA==
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Encoding: [gzip]
Content-Type: [application/vnd.go.cd.v4+json; charset=utf-8]
Date: ['Wed, 14 Jun 2017 11:51:41 GMT']
ETag: ['"3c0a4ff2d2d246d0d6758bf10844b62e--gzip"']
Vary: ['Accept-Encoding, User-Agent']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
X-Request-Id: [e31b5cb3-1049-45cd-bac0-9d8735dae4dc]
X-Runtime: ['0.291000']
X-UA-Compatible: [chrome=1]
X-XSS-Protection: [1; mode=block]
status: {code: 200, message: OK}
cache-control:
- max-age=0, private, must-revalidate
content-encoding:
- gzip
content-type:
- application/vnd.go.cd.v4+json; charset=utf-8
date:
- Thu, 15 Aug 2019 13:36:10 GMT
etag:
- '"3c0a4ff2d2d246d0d6758bf10844b62e--gzip"'
transfer-encoding:
- chunked
vary:
- Accept-Encoding, User-Agent
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-request-id:
- 880c358d-4e8d-4502-9689-2ba10a375c76
x-runtime:
- '0.029000'
x-ua-compatible:
- chrome=1
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
version: 1
69 changes: 46 additions & 23 deletions tests/fixtures/cassettes/v17.5.0/agent/agent_update.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
interactions:
- request:
body: !!binary |
eyJob3N0bmFtZSI6ICJmb28tYmFyIn0=
body: !!python/unicode '{"hostname": "foo-bar"}'
headers:
Accept: [application/vnd.go.cd.v4+json]
Accept-Encoding: ['gzip, deflate']
Authorization: [Basic YWRtaW46MTIzNDU=]
Connection: [keep-alive]
Content-Length: ['23']
Content-Type: [application/json]
Cookie: [JSESSIONID=18o3zhwkpab059nwl0y3y1zgj]
User-Agent: [python-requests/2.13.0]
Accept:
- application/vnd.go.cd.v4+json
Accept-Encoding:
- gzip, deflate
Authorization:
- Basic YWRtaW46MTIzNDU=
Connection:
- keep-alive
Content-Length:
- '23'
Content-Type:
- application/json
Cookie:
- JSESSIONID=1fpp25trti0hiunytvqp739rl
User-Agent:
- python-requests/2.22.0
method: PATCH
uri: http://localhost:8153/go/api/agents/68e5d48c-753a-4395-a79c-1cb22d77a12f
response:
Expand All @@ -23,17 +30,33 @@ interactions:
MwL3ERMekT4wUP6ShhN2yuksWL/yhNAOUvxcuXLPyhgXEjjXjSbN5VzwNXKTNz+W+K404cm/+45p
JzWIm9nL0iW6RN+enaiJTAIAAA==
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Encoding: [gzip]
Content-Type: [application/vnd.go.cd.v4+json; charset=utf-8]
Date: ['Wed, 14 Jun 2017 11:51:43 GMT']
ETag: ['"26834d95dde6076c69c10d218a02bccf--gzip"']
Vary: ['Accept-Encoding, User-Agent']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
X-Request-Id: [2e7d0cb8-66be-4b39-b0a7-c5e53dc7a407]
X-Runtime: ['0.226000']
X-UA-Compatible: [chrome=1]
X-XSS-Protection: [1; mode=block]
status: {code: 200, message: OK}
cache-control:
- max-age=0, private, must-revalidate
content-encoding:
- gzip
content-type:
- application/vnd.go.cd.v4+json; charset=utf-8
date:
- Thu, 15 Aug 2019 13:36:10 GMT
etag:
- '"26834d95dde6076c69c10d218a02bccf--gzip"'
transfer-encoding:
- chunked
vary:
- Accept-Encoding, User-Agent
x-content-type-options:
- nosniff
x-frame-options:
- SAMEORIGIN
x-request-id:
- 94d0d788-921f-4226-9997-508dea6927ff
x-runtime:
- '0.122000'
x-ua-compatible:
- chrome=1
x-xss-protection:
- 1; mode=block
status:
code: 200
message: OK
version: 1
Loading

0 comments on commit 513e2c8

Please sign in to comment.