c718a25d7d
* add integration tests * add tests * add checkout * check cat of the file * updatng tests * rename folder * update action * test str api key * update config file name * updated versions for tests * updated action * updated action * update test * updated ytests * updated check * Delete play.yml * updated check * update delete test * updated conditional check * updated check * updated tests * updated tests * Updated tests * Add folder test * fail test * updated tests * updated tests * update tests * add cloud stack test * update stack test * update test * update test * update test * update test * update test * update test * update tests * update tests * updated test * add plugin test * updated tests * add api key test * updat etest * updated tests * add notification policy tree test * reorg * fix * fix * update * add contact point test * update action * Seperate actions * update action name * update action * update action * update seq number * Updating CI tests * Edit Actions
41 lines
1023 B
YAML
41 lines
1023 B
YAML
- name: Add a plugin
|
|
grafana.grafana.cloud_plugin:
|
|
name: grafana-github-datasource
|
|
version: 1.0.14
|
|
stack_slug: "{{ stack_name }}"
|
|
cloud_api_key: "{{ grafana_cloud_api_key }}"
|
|
state: present
|
|
register: add_result
|
|
|
|
- assert:
|
|
that:
|
|
- add_result.changed == true
|
|
- add_result.pluginName == "GitHub"
|
|
|
|
- name: update a plugin
|
|
grafana.grafana.cloud_plugin:
|
|
name: grafana-github-datasource
|
|
version: 1.0.15
|
|
stack_slug: "{{ stack_name }}"
|
|
cloud_api_key: "{{ grafana_cloud_api_key }}"
|
|
state: present
|
|
register: update_result
|
|
|
|
- assert:
|
|
that:
|
|
- update_result.changed == true
|
|
- update_result.pluginName == "GitHub"
|
|
|
|
- name: Delete a plugin
|
|
grafana.grafana.cloud_plugin:
|
|
name: grafana-github-datasource
|
|
version: 1.0.15
|
|
stack_slug: "{{ stack_name }}"
|
|
cloud_api_key: "{{ grafana_cloud_api_key }}"
|
|
state: absent
|
|
register: delete_result
|
|
|
|
- assert:
|
|
that:
|
|
- delete_result.changed == true
|
|
- delete_result.pluginName == "GitHub" |