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

simplify k8s integration test (cypress or others) #1114

Closed
Tracked by #1105
commjoen opened this issue Dec 7, 2023 · 8 comments · Fixed by #1235
Closed
Tracked by #1105

simplify k8s integration test (cypress or others) #1114

commjoen opened this issue Dec 7, 2023 · 8 comments · Fixed by #1235
Assignees
Labels
enhancement New feature or request

Comments

@commjoen
Copy link
Collaborator

commjoen commented Dec 7, 2023

we now have a script that does integration testing with the k8s setup for the github action. We need to convert this to cypress or to an easier extensible shell script with just a simple yaml definition or something alike

@commjoen commjoen added the enhancement New feature or request label Dec 7, 2023
@Shubham-Patel07
Copy link
Contributor

I would like to work on this enhancement!!

@commjoen
Copy link
Collaborator Author

commjoen commented Jan 16, 2024

It is all yours! Basically we need to make sure that the spoils of the k8s and the vault challenges are correct and not if_you_see_this_please_use_K8S_and_Vault .
For now that holds for challenge 5,6,7, 33, and the upcomming 44,45,46.

@Shubham-Patel07
Copy link
Contributor

Hey @commjoen can you please provide me with the answers of 5,6,7,33 as of now as it will save my time

@commjoen
Copy link
Collaborator Author

You can find them in the spoil endpoints of the challenges. Can you please:

  • grab the spoil endpoint first and check that it is not a default value?
  • post it to the challenge and check result?

Can you fail the test if it the spoil is a default value or the challenge does not resolve with the spoiled value of the first step please?

@Shubham-Patel07
Copy link
Contributor

i checked the spoil endpoint of challenge 5 it is a default value !!

image

and that challange 5 is also disabled

image

so i'm not sure if from my end some k8s setup is required ??

@commjoen
Copy link
Collaborator Author

These only work when you use a k8s setup with vault. See the readme and the existing workflow (https://github.com/OWASP/wrongsecrets/actions/workflows/minikube-vault-test.yml ) to be extended /changed for this issue.

@Shubham-Patel07
Copy link
Contributor

heyy @commjoen !!

i have written the cypress scripts for challenge 5,6,7,33 but

for eg:- test of challenge 5

image

in line no 5, the answer of the challenge is visible clearly and that's not good programming practice so what should i do to hide that,

or will that be fine ???

@commjoen
Copy link
Collaborator Author

Can you programmatically obtain the answer from a spoiler and put it in the answer box :-)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
2 participants