[bitnami/grafana] Add Grafana tests (#9259)

* Added the tests for Grafana

Signed-off-by: superaleks <alukic@vmware.com>

* Removed the port for default port

Signed-off-by: superaleks <alukic@vmware.com>

* Added the workflow

Signed-off-by: alukic <alukic@vmware.com>

* Removed the extra fixtures file

Signed-off-by: alukic <alukic@vmware.com>

* Randomised test data, added changes suggested in the code review

Signed-off-by: alukic <alukic@vmware.com>

* Added the PR feedback changes

Signed-off-by: alukic <alukic@vmware.com>

* Removed the deletion test case for data source

Signed-off-by: alukic <alukic@vmware.com>

* Changed the locator strategy to take advantage of retryability, reduced env file

Signed-off-by: alukic <alukic@vmware.com>

* Removed autogenerated file

Signed-off-by: alukic <alukic@vmware.com>

* Instead of constant, use direct values for locators

Signed-off-by: alukic <alukic@vmware.com>

* Formatting

Signed-off-by: alukic <alukic@vmware.com>

* Applied an improvement to locator strategy

Signed-off-by: alukic <alukic@vmware.com>

* Improved a locator for commands too

Signed-off-by: alukic <alukic@vmware.com>

* Fixing the flaky login command

Signed-off-by: alukic <alukic@vmware.com>

* Applied the changes requested by javisalgar

Signed-off-by: alukic <alukic@vmware.com>

* Changed to reduce flakiness

Signed-off-by: alukic <alukic@vmware.com>

* Last working change for login flakiness

Signed-off-by: alukic <alukic@vmware.com>

* Trailing space

Signed-off-by: alukic <alukic@vmware.com>
This commit is contained in:
superaleks
2022-03-08 10:48:06 +01:00
committed by GitHub
parent 076cb0fbb4
commit e6683a3164
9 changed files with 382 additions and 0 deletions

36
.github/workflows/vib-grafana.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: 'vib'
on: # rebuild any PRs and main branch changes
pull_request_target:
branches:
- master
paths:
- 'bitnami/grafana/*'
env:
CSP_API_URL: https://console.cloud.vmware.com
CSP_API_TOKEN: ${{ secrets.CSP_API_TOKEN }}
VIB_PUBLIC_URL: https://cp.bromelia.vmware.com
jobs:
vib-k8s-verify: # verify in multiple target platforms
runs-on: ubuntu-latest
environment: vmware-image-builder
strategy:
matrix:
include:
- target-platform: gke
target-platform-id: 91d398a2-25c4-4cda-8732-75a3cfc179a1
- target-platform: aks
target-platform-id: 7b13a7bb-011c-474f-ad71-8152fc321b9e
- target-platform: tkg
target-platform-id: 7ddab896-2e4e-4d58-a501-f79897eba3a0
fail-fast: false
name: K8s verify ${{ matrix.target-platform}}
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: vmware-labs/vmware-image-builder-action@main
with:
pipeline: grafana/vib-platform-verify.json
env:
TARGET_PLATFORM: ${{ matrix.target-platform-id }}