-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add basic integration test, move to mcp
- Loading branch information
1 parent
3312b10
commit 2e05fb0
Showing
7 changed files
with
109 additions
and
33 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
25 changes: 25 additions & 0 deletions
25
metadata-ingestion/tests/integration/grafana/default-dashboard.json
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,25 @@ | ||
{ | ||
"id": null, | ||
"uid": "default", | ||
"title": "Default Dashboard", | ||
"tags": [], | ||
"timezone": "browser", | ||
"schemaVersion": 16, | ||
"version": 0, | ||
"panels": [ | ||
{ | ||
"type": "text", | ||
"title": "Welcome", | ||
"gridPos": { | ||
"x": 0, | ||
"y": 0, | ||
"w": 24, | ||
"h": 5 | ||
}, | ||
"options": { | ||
"content": "Welcome to your Grafana dashboard!", | ||
"mode": "markdown" | ||
} | ||
} | ||
] | ||
} |
18 changes: 18 additions & 0 deletions
18
metadata-ingestion/tests/integration/grafana/grafana_mcps_golden.json
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,18 @@ | ||
[ | ||
{ | ||
"entityType": "dashboard", | ||
"entityUrn": "urn:li:dashboard:(grafana,default)", | ||
"changeType": "UPSERT", | ||
"aspectName": "status", | ||
"aspect": { | ||
"json": { | ||
"removed": false | ||
} | ||
}, | ||
"systemMetadata": { | ||
"lastObserved": 1720785600000, | ||
"runId": "grafana-test-simple", | ||
"lastRunId": "no-run-id-provided" | ||
} | ||
} | ||
] |
3 changes: 3 additions & 0 deletions
3
metadata-ingestion/tests/integration/grafana/provisioning/api-keys/api_keys.yaml
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,3 @@ | ||
api_keys: | ||
- name: 'example-api-key' | ||
role: 'Admin' |
11 changes: 11 additions & 0 deletions
11
metadata-ingestion/tests/integration/grafana/provisioning/dashboards/dashboard.yaml
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,11 @@ | ||
apiVersion: 1 | ||
|
||
providers: | ||
- name: 'default' | ||
orgId: 1 | ||
folder: '' | ||
type: file | ||
disableDeletion: false | ||
updateIntervalSeconds: 10 | ||
options: | ||
path: /var/lib/grafana/dashboards |
12 changes: 12 additions & 0 deletions
12
metadata-ingestion/tests/integration/grafana/provisioning/datasources/datasource.yaml
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,12 @@ | ||
apiVersion: 1 | ||
|
||
datasources: | ||
- name: PostgreSQL | ||
type: postgres | ||
access: proxy | ||
url: postgres:5432 | ||
database: grafana | ||
user: grafana | ||
password: grafana | ||
jsonData: | ||
sslmode: disable |
6 changes: 6 additions & 0 deletions
6
...a-ingestion/tests/integration/grafana/provisioning/service_accounts/service_accounts.yaml
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,6 @@ | ||
service_accounts: | ||
- name: 'example-service-account' | ||
role: 'Admin' | ||
apiKeys: | ||
- keyName: 'example-api-key' | ||
role: 'Admin' |