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

Return 404 if file does not exist on pod #60

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

Blarc
Copy link
Contributor

@Blarc Blarc commented Nov 15, 2023

I've added a method for checking if file exists on pod before executing other command that will fail if file does not exist. This way we can return 404 Not Found error if file does not exist instead of 500.

I've had a problem with running elasticsearch testcontainers, because their error handling only checks for 404 and not for 500.

I've tested this with custom integration tests: docker_test.zip.

@joyrex2001
Copy link
Owner

Thanks, looks good!

@joyrex2001 joyrex2001 merged commit 467d35e into joyrex2001:master Nov 15, 2023
@Blarc Blarc deleted the return-404-if-file-not-found branch April 11, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants