Add Request time out option for collection (#14157)

Co-authored-by: Jessica Steurer <70719005+jay-steurer@users.noreply.github.com>
This commit is contained in:
Sean Sullivan
2023-08-03 14:06:04 -04:00
committed by GitHub
parent 9bb6786a58
commit abc56305cc
4 changed files with 44 additions and 2 deletions

View File

@@ -53,6 +53,23 @@
that:
- result is not changed
- name: Create a git project and wait with short request timeout.
project:
name: "{{ project_name1 }}"
organization: Default
scm_type: git
scm_url: https://github.com/ansible/test-playbooks
wait: true
state: exists
request_timeout: .001
register: result
ignore_errors: true
- assert:
that:
- result is failed
- "'timed out' in result.msg"
- name: Delete a git project without credentials and wait
project:
name: "{{ project_name1 }}"