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

Failover HTTP test #538

Merged
merged 1 commit into from
Jul 9, 2021
Merged

Failover HTTP test #538

merged 1 commit into from
Jul 9, 2021

Conversation

kuritka
Copy link
Collaborator

@kuritka kuritka commented Jul 1, 2021

related to #533

I enhanced terratest extensions and utils with a function that can run a command in busybox and a function that can read json output from test app.

Thanks to this I can automate tests from local playground.

Besides the test itself, I had to extend WithTestApp(uiMessage string) with the message argument and bump the podinfo from 4.0.6 to 5.0.1.

I also implemented InstanceStatus, which is a functionality that takes all available instance data, such as Dig, endpoint status, CoreDNS IP etc... The functionality is useful for tracing errors and possible assertions.

Signed-off-by: kuritka kuritka@gmail.com

@kuritka kuritka changed the title Equivalent to failover test in local playground Automate failover test from local playground Jul 1, 2021
@kuritka kuritka changed the title Automate failover test from local playground Failover HTTP test Jul 7, 2021
@kuritka kuritka force-pushed the http-terratest branch 8 times, most recently from 4727c66 to 60d2bd1 Compare July 7, 2021 13:41
@kuritka
Copy link
Collaborator Author

kuritka commented Jul 7, 2021

this PR was racing, but I already fixed.

@kuritka kuritka force-pushed the http-terratest branch 2 times, most recently from 73dd209 to 95eb633 Compare July 8, 2021 10:01
Copy link
Collaborator

@k0da k0da left a comment

Choose a reason for hiding this comment

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

Typo in commit message: "subinfo"

@kuritka kuritka requested a review from k0da July 9, 2021 14:38
related to #533

I enhanced terratest extensions and utils with a function that can run a command in busybox and a function that can read json output from test app.

Thanks to this I can automate tests from local playground.

Besides the test itself, I had to extend `WithTestApp(uiMessage string)` with the message argument and bump the podinfo from `4.0.6` to `5.0.1`.

Tests are asserting local targets which are digged after `WaitForAppIsRunning` pass, otherwise digged localtargets will be `[]string{}`.

I also implemented InstanceStatus, which is a functionality that takes all available instance data, such as Dig, endpoint status, CoreDNS IP etc... The functionality is useful for tracing errors and possible assertions.

Signed-off-by: kuritka <kuritka@gmail.com>
@kuritka kuritka merged commit fcc3389 into master Jul 9, 2021
@kuritka kuritka deleted the http-terratest branch July 9, 2021 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants