From af1fc5a9e9d71733d2b2162fc2ba920ed3481fbc Mon Sep 17 00:00:00 2001 From: sean-m-sullivan Date: Tue, 11 Aug 2020 09:28:17 -0500 Subject: [PATCH] add tests --- .../tower_project_update/tasks/main.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 awx_collection/tests/integration/targets/tower_project_update/tasks/main.yml diff --git a/awx_collection/tests/integration/targets/tower_project_update/tasks/main.yml b/awx_collection/tests/integration/targets/tower_project_update/tasks/main.yml new file mode 100644 index 0000000000..be49c6734e --- /dev/null +++ b/awx_collection/tests/integration/targets/tower_project_update/tasks/main.yml @@ -0,0 +1,23 @@ +--- +- name: Update a project without waiting + tower_project_update: + name: "AWX-Collection-tests-tower_job_template-proj-{{ test_id }}" + organization: Default + wait: False + register: result + +- assert: + that: + - result is changed + +- name: Update a project and wait + tower_project_update: + name: "AWX-Collection-tests-tower_job_template-proj-{{ test_id }}" + organization: Default + wait: True + register: result + +- assert: + that: + - result is changed +