From b08567b62078496e506026bef4ecb6d3d973a566 Mon Sep 17 00:00:00 2001 From: Ishan Jain <51803183+ishanjainn@users.noreply.github.com> Date: Mon, 10 Oct 2022 10:55:55 +0530 Subject: [PATCH] Update main.yml --- tests/integration/targets/cloud_api_key/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/targets/cloud_api_key/tasks/main.yml b/tests/integration/targets/cloud_api_key/tasks/main.yml index d50e90b..67f6ba0 100644 --- a/tests/integration/targets/cloud_api_key/tasks/main.yml +++ b/tests/integration/targets/cloud_api_key/tasks/main.yml @@ -4,13 +4,13 @@ role: Admin org_slug: "{{ org_name }}" existing_cloud_api_key: "{{ grafana_cloud_api_key }}" - fail_if_already_created: False + fail_if_already_created: True state: present register: add_result - assert: that: - - add_result.output.name == "ansible-integration-test" | update_result.output == "A Cloud API key with the same name already exists" + - add_result.output.name == "ansible-integration-test" - name: Re-run previous task grafana.grafana.cloud_api_key: