-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/dashboard-by-org-name
- Loading branch information
Showing
13 changed files
with
120 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- default to true/false in docs and code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- Add support for Grafana Tempo datasource type (https://grafana.com/docs/grafana/latest/datasources/tempo/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,15 +59,15 @@ | |
description: | ||
- Delete the members not found in the C(members) parameters from the | ||
- list of members found on the Team. | ||
default: False | ||
default: false | ||
type: bool | ||
skip_version_check: | ||
description: | ||
- Skip Grafana version check and try to reach api endpoint anyway. | ||
- This parameter can be useful if you enabled `hide_version` in grafana.ini | ||
required: False | ||
type: bool | ||
default: False | ||
default: false | ||
version_added: "1.2.0" | ||
extends_documentation_fragment: | ||
- community.grafana.basic_auth | ||
|
@@ -104,7 +104,7 @@ | |
members: | ||
- [email protected] | ||
- [email protected] | ||
enforce_members: yes | ||
enforce_members: true | ||
state: present | ||
- name: Delete a team | ||
|
78 changes: 78 additions & 0 deletions
78
tests/integration/targets/grafana_datasource/tasks/tempo.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
- name: Create tempo datasource | ||
register: result | ||
grafana_datasource: | ||
name: datasource-tempo | ||
grafana_url: "{{ grafana_url }}" | ||
grafana_user: "{{ grafana_username }}" | ||
grafana_password: "{{ grafana_password }}" | ||
org_id: '1' | ||
ds_type: tempo | ||
ds_url: tempo.company.com:3100 | ||
|
||
- debug: | ||
var: result | ||
|
||
- assert: | ||
that: | ||
- result.changed | ||
- "result.msg == 'Datasource datasource-tempo created'" | ||
|
||
- name: Check tempo datasource creation idempotency | ||
register: result | ||
grafana_datasource: | ||
name: datasource-tempo | ||
grafana_url: "{{ grafana_url }}" | ||
grafana_user: "{{ grafana_username }}" | ||
grafana_password: "{{ grafana_password }}" | ||
org_id: '1' | ||
ds_type: tempo | ||
ds_url: tempo.company.com:3100 | ||
|
||
- debug: | ||
var: result | ||
|
||
- assert: | ||
that: | ||
- not result.changed | ||
- result.datasource.basicAuth == false | ||
- result.datasource.isDefault == false | ||
- result.datasource.jsonData.tlsAuth == false | ||
- result.datasource.jsonData.tlsAuthWithCACert == false | ||
- result.datasource.secureJsonFields.httpHeaderValue1 == true | ||
- result.datasource.name == 'datasource-tempo' | ||
- result.datasource.orgId == 1 | ||
- result.datasource.type == 'tempo' | ||
- result.datasource.url == 'tempo.company.com:3100' | ||
- result.datasource.withCredentials == false | ||
|
||
- name: Delete tempo datasource | ||
register: result | ||
grafana_datasource: | ||
name: datasource-tempo | ||
grafana_url: "{{ grafana_url }}" | ||
grafana_user: "{{ grafana_username }}" | ||
grafana_password: "{{ grafana_password }}" | ||
state: absent | ||
|
||
- debug: | ||
var: result | ||
|
||
- assert: | ||
that: | ||
- result.changed | ||
|
||
- name: Delete tempo datasource | ||
register: result | ||
grafana_datasource: | ||
name: datasource-tempo | ||
grafana_url: "{{ grafana_url }}" | ||
grafana_user: "{{ grafana_username }}" | ||
grafana_password: "{{ grafana_password }}" | ||
state: absent | ||
|
||
- debug: | ||
var: result | ||
|
||
- assert: | ||
that: | ||
- not result.changed |