-
Notifications
You must be signed in to change notification settings - Fork 2
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
reconciler: Add test case for the example #31
base: main
Are you sure you want to change the base?
Conversation
Add a simple test-case for the reconciler example to make sure it doesn't accidentally break in the future. Signed-off-by: Jussi Maki <[email protected]>
|
@@ -0,0 +1,57 @@ | |||
#!/usr/bin/env bash | |||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm, not sure I'm super excited about a bash test case that doesn't run on go test ./...
What was the reasoning in not making this a Go test? ease of starting/stopping processes etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the ease of writing it, but yeah that's a bit short sighted. Let's make this into a go test.
trap 'cleanup' SIGINT SIGTERM EXIT | ||
|
||
for i in 1 2 3 4 5; do | ||
curl -q http://localhost:8080/statedb &>/dev/null && break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this error out if it doesn't manage to come up soon enough?
Add a simple test-case for the reconciler example to make sure it doesn't accidentally break in the future.