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

fixing: ts-sdk records keploy-testcase even on test mode #86

Merged
merged 5 commits into from
Sep 5, 2023

Conversation

Sekhar-Kumar-Dash
Copy link
Contributor

@Sekhar-Kumar-Dash Sekhar-Kumar-Dash commented Mar 31, 2023

this PR closes: keploy/keploy#430

Signed-off-by: sekhar kumar dash <sekharkumardash229@gmail.com>
@Sekhar-Kumar-Dash
Copy link
Contributor Author

@re-Tick Please review this PR

@re-Tick
Copy link
Contributor

re-Tick commented Apr 3, 2023

This expression should also check for the empty KEPLOY_TEST_ID from the headers. Since, during the simulate request of test mode, the KEPLOY_TEST_ID is used for check.

Also there should be check in the afterMiddleware function also which will just return the response instead of recording it.

Signed-off-by: sekhar kumar dash <sekharkumardash229@gmail.com>
Signed-off-by: sekhar kumar dash <sekharkumardash229@gmail.com>
@Sekhar-Kumar-Dash
Copy link
Contributor Author

@re-Tick please check the it again

@re-Tick
Copy link
Contributor

re-Tick commented Apr 3, 2023

Please add the if check in afterMiddleware also after this "if check"

Signed-off-by: sekhar kumar dash <sekharkumardash229@gmail.com>
Signed-off-by: sekhar kumar dash <sekharkumardash229@gmail.com>
@re-Tick
Copy link
Contributor

re-Tick commented Apr 5, 2023

LGTM.

@re-Tick re-Tick added Don't Merge Not to be merged until gsoc results Accepted PR is reviewed and Accepted labels Apr 5, 2023
@Sarthak160 Sarthak160 merged commit 7f87911 into keploy:main Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted PR is reviewed and Accepted Don't Merge Not to be merged until gsoc results
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: ts-sdk records keploy-testcase even on test mode
3 participants