summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorAnsible Core Team <info@ansible.com>2020-03-09 09:40:30 +0000
committerAnsible Core Team <info@ansible.com>2020-03-09 09:40:30 +0000
commit54b2c8f1131bdcbe19e43b72816c9107b67ae8ca (patch)
treee7a930b68c5cc781e98b232cffd31a446fae2843 /test/integration
parent6e048cc2689d033b7757174d582077dd4af494b5 (diff)
downloadansible-54b2c8f1131bdcbe19e43b72816c9107b67ae8ca.tar.gz
Migrated to community.grafana
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/targets/grafana_datasource/aliases2
-rw-r--r--test/integration/targets/grafana_datasource/meta/main.yml2
-rw-r--r--test/integration/targets/grafana_datasource/tasks/cloudwatch.yml67
-rw-r--r--test/integration/targets/grafana_datasource/tasks/elastic.yml77
-rw-r--r--test/integration/targets/grafana_datasource/tasks/influx.yml61
-rw-r--r--test/integration/targets/grafana_datasource/tasks/main.yml8
-rw-r--r--test/integration/targets/grafana_datasource/tasks/postgres.yml61
7 files changed, 0 insertions, 278 deletions
diff --git a/test/integration/targets/grafana_datasource/aliases b/test/integration/targets/grafana_datasource/aliases
deleted file mode 100644
index f8e28c7e46..0000000000
--- a/test/integration/targets/grafana_datasource/aliases
+++ /dev/null
@@ -1,2 +0,0 @@
-shippable/posix/group1
-skip/aix
diff --git a/test/integration/targets/grafana_datasource/meta/main.yml b/test/integration/targets/grafana_datasource/meta/main.yml
deleted file mode 100644
index af628245fb..0000000000
--- a/test/integration/targets/grafana_datasource/meta/main.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-dependencies:
- - setup_grafana
diff --git a/test/integration/targets/grafana_datasource/tasks/cloudwatch.yml b/test/integration/targets/grafana_datasource/tasks/cloudwatch.yml
deleted file mode 100644
index 1119eb1ac1..0000000000
--- a/test/integration/targets/grafana_datasource/tasks/cloudwatch.yml
+++ /dev/null
@@ -1,67 +0,0 @@
----
-
-- name: Create cloudwatch datasource
- grafana_datasource:
- name: "datasource-cloudwatch"
- grafana_url: "http://127.0.0.1:3000"
- grafana_user: "admin"
- grafana_password: "admin"
- org_id: "1"
- ds_type: "cloudwatch"
- url: "http://monitoring.us-west-1.amazonaws.com"
- aws_auth_type: "keys"
- aws_default_region: "us-west-1"
- aws_access_key: "speakFriendAndEnter"
- aws_secret_key: "mel10n"
- aws_custom_metrics_namespaces: "n1,n2"
- register: result
-
-- debug:
- var: result
-
-- assert:
- that:
- - "result.changed == true"
- - "result.name == 'datasource-cloudwatch'"
- - "result.msg == 'Datasource datasource-cloudwatch created : Datasource added'"
-
-- name: Check cloudwatch datasource creation idempotency
- grafana_datasource:
- name: "datasource-cloudwatch"
- grafana_url: "http://127.0.0.1:3000"
- grafana_user: "admin"
- grafana_password: "admin"
- org_id: "1"
- ds_type: "cloudwatch"
- url: "http://monitoring.us-west-1.amazonaws.com"
- aws_auth_type: "keys"
- aws_default_region: "us-west-1"
- aws_access_key: "speakFriendAndEnter"
- aws_secret_key: "mel10n"
- aws_custom_metrics_namespaces: "n1,n2"
- register: result
-
-- debug:
- var: result
-
-- assert:
- that:
- # Idempotency is not working currently
- # "result.changed == false"
- - "result.name == 'datasource-cloudwatch'"
- - "result.after.access == 'proxy'"
- - "result.after.basicAuth == false"
- - "result.after.database == None"
- - "result.after.isDefault == false"
- - "result.after.jsonData.authType == 'keys'"
- - "result.after.jsonData.customMetricsNamespaces == 'n1,n2'"
- - "result.after.jsonData.defaultRegion == 'us-west-1'"
- - "result.after.jsonData.tlsAuth == false"
- - "result.after.jsonData.tlsAuthWithCACert == false"
- - "result.after.name == 'datasource-cloudwatch'"
- - "result.after.orgId == 1"
- - "result.after.password == ''"
- - "result.after.type == 'cloudwatch'"
- - "result.after.url == 'http://monitoring.us-west-1.amazonaws.com'"
- - "result.after.user == ''"
- - "result.after.withCredentials == false"
diff --git a/test/integration/targets/grafana_datasource/tasks/elastic.yml b/test/integration/targets/grafana_datasource/tasks/elastic.yml
deleted file mode 100644
index 471a2ece5b..0000000000
--- a/test/integration/targets/grafana_datasource/tasks/elastic.yml
+++ /dev/null
@@ -1,77 +0,0 @@
----
-
-- name: Create elasticsearch datasource
- grafana_datasource:
- name: "datasource-elastic"
- grafana_url: "http://127.0.0.1:3000"
- grafana_user: "admin"
- grafana_password: "admin"
- org_id: "1"
- ds_type: "elasticsearch"
- ds_url: "https://elastic.company.com:9200"
- database: "[logstash_]YYYY.MM.DD"
- basic_auth_user: "grafana"
- basic_auth_password: "******"
- time_field: "@timestamp"
- time_interval: "1m"
- interval: "Daily"
- es_version: 56
- max_concurrent_shard_requests: 42
- tls_ca_cert: "/etc/ssl/certs/ca.pem"
- register: result
-
-- debug:
- var: result
-
-- assert:
- that:
- - "result.changed == true"
- - "result.name == 'datasource-elastic'"
- - "result.msg == 'Datasource datasource-elastic created : Datasource added'"
-
-- name: Check elasticsearch datasource creation idempotency
- grafana_datasource:
- name: "datasource-elastic"
- grafana_url: "http://127.0.0.1:3000"
- grafana_user: "admin"
- grafana_password: "admin"
- org_id: "1"
- ds_type: "elasticsearch"
- ds_url: "https://elastic.company.com:9200"
- database: "[logstash_]YYYY.MM.DD"
- basic_auth_user: "grafana"
- basic_auth_password: "******"
- time_field: "@timestamp"
- time_interval: "1m"
- interval: "Daily"
- es_version: 56
- max_concurrent_shard_requests: 42
- tls_ca_cert: "/etc/ssl/certs/ca.pem"
- register: result
-
-- debug:
- var: result
-
-- assert:
- that:
- # Idempotency is not working currently
- # "result.changed == false"
- - "result.name == 'datasource-elastic'"
- - "result.after.basicAuth == true"
- - "result.after.basicAuthUser == 'grafana'"
- - "result.after.access == 'proxy'"
- - "result.after.database == '[logstash_]YYYY.MM.DD'"
- - "result.after.isDefault == false"
- - "result.after.jsonData.esVersion == 56"
- - "result.after.jsonData.interval == 'Daily'"
- - "result.after.jsonData.maxConcurrentShardRequests == 42"
- - "result.after.jsonData.timeField == '@timestamp'"
- - "result.after.jsonData.tlsAuth == false"
- - "result.after.jsonData.tlsAuthWithCACert == false"
- - "result.after.name == 'datasource-elastic'"
- - "result.after.orgId == 1"
- - "result.after.password == ''"
- - "result.after.type == 'elasticsearch'"
- - "result.after.url == 'https://elastic.company.com:9200'"
- - "result.after.user == ''"
- - "result.after.withCredentials == false"
diff --git a/test/integration/targets/grafana_datasource/tasks/influx.yml b/test/integration/targets/grafana_datasource/tasks/influx.yml
deleted file mode 100644
index 821ea07e18..0000000000
--- a/test/integration/targets/grafana_datasource/tasks/influx.yml
+++ /dev/null
@@ -1,61 +0,0 @@
----
-
-- name: Create influxdb datasource
- grafana_datasource:
- name: "datasource-influxdb"
- grafana_url: "http://127.0.0.1:3000"
- grafana_user: "admin"
- grafana_password: "admin"
- org_id: "1"
- ds_type: "influxdb"
- ds_url: "https://influx.company.com:8086"
- database: "telegraf"
- time_interval: ">10s"
- tls_ca_cert: "/etc/ssl/certs/ca.pem"
- register: result
-
-- debug:
- var: result
-
-- assert:
- that:
- - "result.changed == true"
- - "result.name == 'datasource-influxdb'"
- - "result.msg == 'Datasource datasource-influxdb created : Datasource added'"
-
-- name: Check influxdb datasource creation idempotency
- grafana_datasource:
- name: "datasource-influxdb"
- grafana_url: "http://127.0.0.1:3000"
- grafana_user: "admin"
- grafana_password: "admin"
- org_id: "1"
- ds_type: "influxdb"
- ds_url: "https://influx.company.com:8086"
- database: "telegraf"
- time_interval: ">10s"
- tls_ca_cert: "/etc/ssl/certs/ca.pem"
- register: result
-
-- debug:
- var: result
-
-- assert:
- that:
- # Idempotency is not working currently
- # "result.changed == false"
- - "result.name == 'datasource-influxdb'"
- - "result.after.basicAuth == false"
- - "result.after.access == 'proxy'"
- - "result.after.database == 'telegraf'"
- - "result.after.isDefault == false"
- - "result.after.jsonData.timeInterval == '>10s'"
- - "result.after.jsonData.tlsAuth == false"
- - "result.after.jsonData.tlsAuthWithCACert == false"
- - "result.after.name == 'datasource-influxdb'"
- - "result.after.orgId == 1"
- - "result.after.password == ''"
- - "result.after.type == 'influxdb'"
- - "result.after.url == 'https://influx.company.com:8086'"
- - "result.after.user == ''"
- - "result.after.withCredentials == false"
diff --git a/test/integration/targets/grafana_datasource/tasks/main.yml b/test/integration/targets/grafana_datasource/tasks/main.yml
deleted file mode 100644
index 73a1f60f05..0000000000
--- a/test/integration/targets/grafana_datasource/tasks/main.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-- block:
- - include: elastic.yml
- - include: influx.yml
- - include: postgres.yml
- - include: cloudwatch.yml
- when:
- - ansible_distribution == 'Ubuntu'
- - ansible_distribution_release != 'trusty'
diff --git a/test/integration/targets/grafana_datasource/tasks/postgres.yml b/test/integration/targets/grafana_datasource/tasks/postgres.yml
deleted file mode 100644
index e540515e07..0000000000
--- a/test/integration/targets/grafana_datasource/tasks/postgres.yml
+++ /dev/null
@@ -1,61 +0,0 @@
----
-
-- name: Create postgres datasource
- grafana_datasource:
- name: "datasource-postgres"
- grafana_url: "http://127.0.0.1:3000"
- grafana_user: "admin"
- grafana_password: "admin"
- org_id: "1"
- ds_type: "postgres"
- ds_url: "postgres.company.com:5432"
- database: "db"
- user: "postgres"
- password: "iampgroot"
- sslmode: "verify-full"
- register: result
-
-- debug:
- var: result
-
-- assert:
- that:
- - "result.changed == true"
- - "result.name == 'datasource-postgres'"
- - "result.msg == 'Datasource datasource-postgres created : Datasource added'"
-
-- name: Check postgres datasource creation idempotency
- grafana_datasource:
- name: "datasource-postgres"
- grafana_url: "http://127.0.0.1:3000"
- grafana_user: "admin"
- grafana_password: "admin"
- org_id: "1"
- ds_type: "postgres"
- ds_url: "postgres.company.com:5432"
- database: "db"
- user: "postgres"
- password: "iampgroot"
- sslmode: "verify-full"
- register: result
-
-- debug:
- var: result
-
-- assert:
- that:
- # Idempotency is not working currently
- # "result.changed == false"
- - "result.name == 'datasource-postgres'"
- - "result.after.basicAuth == false"
- - "result.after.database == 'db'"
- - "result.after.isDefault == false"
- - "result.after.jsonData.sslmode == 'verify-full'"
- - "result.after.jsonData.tlsAuth == false"
- - "result.after.jsonData.tlsAuthWithCACert == false"
- - "result.after.name == 'datasource-postgres'"
- - "result.after.orgId == 1"
- - "result.after.type == 'postgres'"
- - "result.after.url == 'postgres.company.com:5432'"
- - "result.after.user == 'postgres'"
- - "result.after.withCredentials == false"