From 1bd74a96d63b1a801ef6225be8c894eee0d53035 Mon Sep 17 00:00:00 2001 From: Caleb Boylan Date: Thu, 19 Mar 2020 09:40:48 -0700 Subject: [PATCH] Collection: Fix some tests that broke during the random name update --- .../tests/integration/targets/tower_role/tasks/main.yml | 2 +- .../targets/tower_workflow_template/tasks/main.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awx_collection/tests/integration/targets/tower_role/tasks/main.yml b/awx_collection/tests/integration/targets/tower_role/tasks/main.yml index 8fd3b9e4f6..5de2ef24dd 100644 --- a/awx_collection/tests/integration/targets/tower_role/tasks/main.yml +++ b/awx_collection/tests/integration/targets/tower_role/tasks/main.yml @@ -40,7 +40,7 @@ - name: Add Joe to workflow execute role tower_role: - user: joe + user: "{{ username }}" role: execute workflow: test-role-workflow state: present diff --git a/awx_collection/tests/integration/targets/tower_workflow_template/tasks/main.yml b/awx_collection/tests/integration/targets/tower_workflow_template/tasks/main.yml index fe7bbaa3de..12b33aefdc 100644 --- a/awx_collection/tests/integration/targets/tower_workflow_template/tasks/main.yml +++ b/awx_collection/tests/integration/targets/tower_workflow_template/tasks/main.yml @@ -82,7 +82,7 @@ - name: Create a workflow job template tower_workflow_template: name: "{{ wfjt_name }}" - schema: [{"success": [{"job_template": "my-job-1"}], "job_template": "my-job-2"}] + schema: [{"success": [{"job_template": "{{ jt1_name }}"}], "job_template": "{{ jt2_name }}"}] extra_vars: {'foo': 'bar', 'another-foo': {'barz': 'bar2'}} register: result @@ -104,7 +104,7 @@ tower_workflow_template: name: "{{ wfjt_name }}" organization: Non Existing Organization - schema: [{"success": [{"job_template": "my-job-1"}], "job_template": "my-job-2"}] + schema: [{"success": [{"job_template": "{{ jt1_name }}"}], "job_template": "{{ jt2_name }}"}] register: result ignore_errors: true