-
Notifications
You must be signed in to change notification settings - Fork 369
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
Improve the readability of post-installation test results #6291
Conversation
cc @kanha-gupta |
go.mod
Outdated
@@ -22,6 +22,7 @@ require ( | |||
github.com/containernetworking/plugins v1.1.1 | |||
github.com/coreos/go-iptables v0.7.0 | |||
github.com/davecgh/go-spew v1.1.1 | |||
github.com/fatih/color v1.15.0 |
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.
maybe use the latest version directly (v1.16.0)?
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.
done, thanks for reminding
go.mod
Outdated
@@ -41,6 +42,7 @@ require ( | |||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 | |||
github.com/onsi/ginkgo/v2 v2.17.2 | |||
github.com/onsi/gomega v1.33.1 | |||
github.com/pkg/errors v0.9.1 |
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.
This package is deprecated, but I assume this comes from one of our dependencies?
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.
removed, not sure how it was added by accident.
if testContext.echoOtherNodePod == nil { | ||
return fmt.Errorf("Skipping Inter-Node test because multiple Nodes are not available") | ||
return fmt.Errorf("Inter-Node test requires multiple Nodes"), true |
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.
An alternative would be to define a custom error type for skipped tests, but I don't have a strong preference
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.
done
* Test results will be displayed in green, red, and yellow to indicate success, failure, and skipped, respectively. * Show the total number of success, failure, and skipped tests in the end. * Return error if any test fails. Otherwise, it would be hard for automation tools to detect whether the check succeeds or not. Signed-off-by: Quan Tian <[email protected]>
58c26a6
to
5b2a1f5
Compare
/skip-all |
Example of success:
Example of failure: