From ecee063719bc8e1647ce945036d62d4da94dc1fe Mon Sep 17 00:00:00 2001 From: Valentin Zickner Date: Mon, 2 Dec 2024 12:00:44 +0100 Subject: [PATCH] add missing cassette files --- .../test_with_trailing_slash_for_url.yml | 51 ++++++++++++++++++ ...iling_slash_for_url_with_200_as_result.yml | 52 +++++++++++++++++++ external-worker/tests/test_restclient.py | 2 + 3 files changed, 105 insertions(+) create mode 100644 external-worker/tests/fixtures/cassettes/test_with_trailing_slash_for_url.yml create mode 100644 external-worker/tests/fixtures/cassettes/test_with_trailing_slash_for_url_with_200_as_result.yml diff --git a/external-worker/tests/fixtures/cassettes/test_with_trailing_slash_for_url.yml b/external-worker/tests/fixtures/cassettes/test_with_trailing_slash_for_url.yml new file mode 100644 index 0000000..97d5184 --- /dev/null +++ b/external-worker/tests/fixtures/cassettes/test_with_trailing_slash_for_url.yml @@ -0,0 +1,51 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Basic YWRtaW46dGVzdA== + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: http://localhost:8090/flowable-work/external-job-api/jobs + response: + body: + string: '' + headers: + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Mon, 02 Dec 2024 11:00:20 GMT + Expires: + - '0' + Keep-Alive: + - timeout=60 + Pragma: + - no-cache + Set-Cookie: + - XSRF-TOKEN=09b7760d-55de-4ad0-a3ff-2f16cbdb4f4a; Path=/ + - JSESSIONID=EA0645EF688955015C4EAFE8A1AF9C9D; Path=/; HttpOnly + Vary: + - Origin + - Access-Control-Request-Method + - Access-Control-Request-Headers + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-XSS-Protection: + - '0' + status: + code: 404 + message: '' +version: 1 diff --git a/external-worker/tests/fixtures/cassettes/test_with_trailing_slash_for_url_with_200_as_result.yml b/external-worker/tests/fixtures/cassettes/test_with_trailing_slash_for_url_with_200_as_result.yml new file mode 100644 index 0000000..1b07283 --- /dev/null +++ b/external-worker/tests/fixtures/cassettes/test_with_trailing_slash_for_url_with_200_as_result.yml @@ -0,0 +1,52 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Basic YWRtaW46dGVzdA== + Connection: + - keep-alive + User-Agent: + - python-requests/2.32.3 + method: GET + uri: http://localhost:8090/external-job-api/jobs + response: + body: + string: '{"data":[],"total":0,"start":0,"sort":"id","order":"asc","size":0}' + headers: + Cache-Control: + - no-cache, no-store, max-age=0, must-revalidate + Connection: + - keep-alive + Content-Type: + - application/json;charset=UTF-8 + Date: + - Mon, 02 Dec 2024 11:00:20 GMT + Expires: + - '0' + Keep-Alive: + - timeout=60 + Pragma: + - no-cache + Set-Cookie: + - XSRF-TOKEN=46883e8d-c685-4a4e-8424-06a67551c913; Path=/ + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-XSS-Protection: + - '0' + content-length: + - '66' + vary: + - accept-encoding + status: + code: 200 + message: '' +version: 1 diff --git a/external-worker/tests/test_restclient.py b/external-worker/tests/test_restclient.py index 5293221..cfead1f 100644 --- a/external-worker/tests/test_restclient.py +++ b/external-worker/tests/test_restclient.py @@ -296,6 +296,7 @@ def test_job_with_cmmn_terminate(self): # this test is a bit special since it requires a context path. # without context path this test will also succeed with a trailing slash + @my_vcr.use_cassette def test_with_trailing_slash_for_url(self): try: client = restclient.FlowableExternalWorkerRestClient( @@ -312,6 +313,7 @@ def test_with_trailing_slash_for_url(self): # this test is a bit special since it requires a context path. # without context path this test will also succeed with a trailing slash + @my_vcr.use_cassette def test_with_trailing_slash_for_url_with_200_as_result(self): try: client = restclient.FlowableExternalWorkerRestClient(