Skip to content

Commit

Permalink
add missing cassette files
Browse files Browse the repository at this point in the history
  • Loading branch information
vzickner committed Dec 2, 2024
1 parent fa9ee61 commit ecee063
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions external-worker/tests/test_restclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit ecee063

Please sign in to comment.