Update tests

This commit is contained in:
Ishan Jain 2022-11-10 13:15:15 +05:30
parent 05d7af3c6c
commit f36102f807

View File

@ -1,7 +1,7 @@
- name: Create a Grafana Cloud stack
grafana.grafana.cloud_stack:
name: ansiblestacktest
stack_slug: ansiblestacktest
name: testansiblestack
stack_slug: testansiblestack
cloud_api_key: "{{ grafana_cloud_api_key }}"
org_slug: "{{ org_name }}"
state: present
@ -9,7 +9,7 @@
- assert:
that:
- create_result.url == "https://ansiblestacktest.grafana.net"
- create_result.url == "https://testansiblestack.grafana.net"
- name: Sleep for 30 seconds
ansible.builtin.wait_for:
@ -17,8 +17,8 @@
- name: Delete a Grafana Cloud stack
grafana.grafana.cloud_stack:
name: ansiblestacktest
stack_slug: ansiblestacktest
name: testansiblestack
stack_slug: testansiblestack
cloud_api_key: "{{ grafana_cloud_api_key }}"
org_slug: "{{ org_name }}"
state: absent
@ -27,4 +27,4 @@
- assert:
that:
- delete_result.changed == true
- delete_result.url == "https://ansiblestacktest.grafana.net"
- delete_result.url == "https://testansiblestack.grafana.net"