Skip to content

Commit

Permalink
test: fix test to check status success
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Dec 27, 2023
1 parent 3bd308c commit e34d366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/checks/check-api-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
headers:
Authorization: "Bearer {{ bearer_token }}"
register: result
until: result.content is match(expected_content)
until: result.content is search(expected_content)
retries: 1
delay: 0
2 changes: 1 addition & 1 deletion tests/tests/features/api-token.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
vars:
url: "{{ lookup('env','API_PROTOCOL') }}://{{ lookup('env','API_HOST') }}:{{ lookup('env','API_PORT') }}/"
bearer_token: "{{ token }}"
expected_content: '{"status":"success","data":{}}'
expected_content: 'success'
tasks:
- ansible.builtin.include_tasks: ../../checks/check-api-request.yaml

0 comments on commit e34d366

Please sign in to comment.