Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified intigration test for K8s in cypress #1201

Closed
wants to merge 48 commits into from
Closed
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
0c71d1c
Fix: Used get(0) function insted of getFirst() to check weather the s…
Shubham-Patel07 Dec 18, 2023
1137049
Merge branch 'OWASP:master' into master
Shubham-Patel07 Jan 4, 2024
71c285c
Add: changed the logic of button from racdio button to checkbox
Shubham-Patel07 Jan 12, 2024
cc6ae17
Merge branch 'OWASP:master' into master
Shubham-Patel07 Jan 12, 2024
4a38a1c
Add: changed some styles to make the checkbox invisible and add the a…
Shubham-Patel07 Jan 12, 2024
23ad4a1
Fix: Removed unwanted classes
Shubham-Patel07 Jan 12, 2024
9134c2a
Fix: Changed the test cypress script logic from radio button to check…
Shubham-Patel07 Jan 15, 2024
00a29a5
Fix: cypress scripts for challange-5
Shubham-Patel07 Jan 22, 2024
5e18ecf
Fix: cypress scripts for challange-6
Shubham-Patel07 Jan 22, 2024
089af8b
Fix: cypress scripts for challange-7
Shubham-Patel07 Jan 24, 2024
992da9c
Fix: cypress scripts for challange-33
Shubham-Patel07 Jan 24, 2024
25bbd54
Fix: automated checking for correct answer using /spoil/{short-name} …
Shubham-Patel07 Jan 24, 2024
16d4b41
Fix: cypress scripts for challange-5
Shubham-Patel07 Jan 22, 2024
81ffec5
Fix: cypress scripts for challange-6
Shubham-Patel07 Jan 22, 2024
7771b31
Fix: cypress scripts for challange-7
Shubham-Patel07 Jan 24, 2024
3ccddeb
Fix: cypress scripts for challange-33
Shubham-Patel07 Jan 24, 2024
59d8658
Fix: automated checking for correct answer using /spoil/{short-name} …
Shubham-Patel07 Jan 24, 2024
9a0cc60
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Jan 25, 2024
e8284eb
Merge branch 'master' into fix/Issue1114
commjoen Jan 28, 2024
34aede5
Create K8s-challange-test.yml
Shubham-Patel07 Jan 29, 2024
42d3d7a
Merge branch 'master' into fix/Issue1114
commjoen Jan 29, 2024
6766664
Add: workflow added, changed the tests now fails on having default va…
Shubham-Patel07 Jan 30, 2024
43b4f62
Add: workflow added, changed the tests now fails on having default va…
Shubham-Patel07 Jan 30, 2024
0ba05d9
Merge branch 'master' into fix/issue1114
Shubham-Patel07 Jan 30, 2024
9cf3be8
Add: workflow added, changed the tests now fails on having default va…
Shubham-Patel07 Jan 30, 2024
b2a98e2
Update minikube-k8s-test.yml node version to 21
Shubham-Patel07 Jan 31, 2024
b727aa0
Merge branch 'master' into fix/Issue1114
commjoen Jan 31, 2024
ac47c53
Merge branch 'master' into fix/Issue1114
commjoen Feb 1, 2024
4a2fd2e
Add: workflow update
Shubham-Patel07 Feb 1, 2024
298b373
Add: workflow update
Shubham-Patel07 Feb 1, 2024
466317a
Add: workflow update
Shubham-Patel07 Feb 1, 2024
dc4a56e
Add: workflow update
Shubham-Patel07 Feb 1, 2024
5147b3f
Add: workflow update
Shubham-Patel07 Feb 1, 2024
ea9d752
Add: workflow update
Shubham-Patel07 Feb 1, 2024
3c6e8ff
Add: workflow update
Shubham-Patel07 Feb 1, 2024
22ad085
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Feb 1, 2024
7acdba6
Add: workflow update
Shubham-Patel07 Feb 3, 2024
0654058
Merge remote-tracking branch 'origin/fix/Issue1114' into fix/Issue1114
Shubham-Patel07 Feb 3, 2024
fb44ddc
Add: workflow update
Shubham-Patel07 Feb 3, 2024
95c9d83
Add: workflow update
Shubham-Patel07 Feb 3, 2024
6a2cd03
Add: workflow update
Shubham-Patel07 Feb 3, 2024
db9ce85
Add: workflow update
Shubham-Patel07 Feb 4, 2024
924c821
Add: workflow update
Shubham-Patel07 Feb 4, 2024
22fc825
Add: workflow update final
Shubham-Patel07 Feb 4, 2024
eb3cca7
Add: workflow update final
Shubham-Patel07 Feb 4, 2024
bfac516
Add: workflow update final and config file updated
Shubham-Patel07 Feb 4, 2024
7405b99
Add: reverted unwanted changes
Shubham-Patel07 Feb 4, 2024
35b9a7e
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Feb 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/minikube-k8s-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,34 @@ jobs:
fi
echo "logs from pod to make sure:"
cat pod.log

cypress-tests:
name: Run Cypress Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 21
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y xvfb libnss3
sudo apt install wget
wget https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.tar.gz
tar -xvf jdk-21_linux-x64_bin.tar.gz
cd jdk-21.0.2
sudo mkdir -p /usr/local/jdk-21.0.2
sudo mv * /usr/local/jdk-21.0.2
export JAVA_HOME=/usr/local/jdk-21.0.2
export PATH=$JAVA_HOME/bin:$PATH
source ~/.bashrc
echo 'export JAVA_HOME=/usr/local/jdk-21.0.2' >> ~/.bashrc
echo 'export PATH=$JAVA_HOME/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
npm install
sudo java --version
./mvn spring-boot:run
Copy link
Collaborator

@commjoen commjoen Feb 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the unchanged code above: we already have everything running on minikube. CAn you launch the cypress tests against what is launched above please?
That means there is no need to install java and such again: just npx should do

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry I didn't had a look on it, I'll work on it

- name: Run Tests
run: npx cypress run --config-file src/test/K8s-tests/cypress.config.js
Loading
Loading