[bitnami/thanos] Add Thanos Helm Chart tests (#9635)

* Added the Thanos folder structure and some really basic tests

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

* Added more functional tests which also check for existing store

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

* Added the workflow for Thanos

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

* Tweaked the workflow

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

* Added the final version of the tests

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

* Remove previous version of the workflow

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

* Removed phpmyadmin folder

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

* Formatting the cypress.json file

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

* Formatted the cypress.json

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

* Remove unnecessary environment variables

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

* Removed extra shoulds

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

* New line

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

* New line removal

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

* Renamed the variable name, removed dark/light mode test

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

* Data query

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

* Improved query execution test

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

* Improved assertions

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

* Removed extra assertions

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

* Removed extra assertion

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

* Chaining selectors

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

* Removed chaning UI tests

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

* Applied code review suggestions

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

* Version information was missing

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

* A typo

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

* Implemented the suggestion related to the badge

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

* Applied code review suggestions

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

* Formatting, added more asserts

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

* Removed other extra asserts

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

* Changing the store endpoint assertion

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

* Removed extra be.visible assertion

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

* Formatting

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

* Undo unwanted formatting

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

* Formatting

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

* Change the name of the environment variable

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

* Increase click delay to prevent flakiness

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

* Changed the variable name to match the new one

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

* Added type delay to fix flakiness

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

* Adding back the ;

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

* Format consistency

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

* Formatting

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

* Last formatting after plugin config

Signed-off-by: alukic <alukic@vmware.com>
This commit is contained in:
superaleks
2022-04-07 13:12:38 +02:00
committed by GitHub
parent 789a0f6e51
commit 056b262ffc
12 changed files with 322 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
name: 'vib'
on: # rebuild any PRs and main branch changes
pull_request_target:
branches:
- master
paths:
- 'bitnami/thanos/*'
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: thanos/bucketweb/vib-platform-verify.json
env:
VIB_ENV_TARGET_PLATFORM: ${{ matrix.target-platform-id }}

View File

@@ -0,0 +1,36 @@
name: 'vib'
on: # rebuild any PRs and main branch changes
pull_request_target:
branches:
- master
paths:
- 'bitnami/thanos/*'
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: thanos/queryfrontend/vib-platform-verify.json
env:
VIB_ENV_TARGET_PLATFORM: ${{ matrix.target-platform-id }}