Skip to content

Commit

Permalink
Merge pull request #1235 from Shubham-Patel07/fix/Issue1114
Browse files Browse the repository at this point in the history
Simplified intigration test for K8s in cypress
  • Loading branch information
commjoen authored Feb 6, 2024
2 parents 70fd399 + ec701e4 commit bcff029
Show file tree
Hide file tree
Showing 15 changed files with 431 additions and 114 deletions.
10 changes: 8 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ module.exports = {
commonjs: true,
es2021: true
},
extends: 'standard',
extends: [
'standard',
'plugin:chai-friendly/recommended'
],
overrides: [
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
},
plugins: ['cypress']
plugins: [
'cypress',
'chai-friendly'
]
}
25 changes: 25 additions & 0 deletions .github/workflows/minikube-vault-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,28 @@ jobs:
- name: test script
run: |
./k8s-vault-minkube-start.sh && sleep 5 && curl http://localhost:8080/spoil/challenge-7 && minikube delete
cypress-tests:
name: Cypress Test for Challenges
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- uses: eLco/[email protected]
- name: Start minikube
uses: medyagh/setup-minikube@master
with:
minikube-version: 1.31.2
driver: docker
kubernetes-version: v1.28.1
- name: Setup helm
uses: azure/[email protected]
id: install
- name: test script
run: |
./k8s-vault-minkube-start.sh && sleep 5 && curl http://localhost:8080/spoil/challenge-7
- name: Run Tests
run: |
npm install cypress
npx cypress run --config-file src/test/K8s-tests/cypress.config.js && minikube delete
Loading

0 comments on commit bcff029

Please sign in to comment.