-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat(git_push_test.go): add git push interrupt test #237
Conversation
41e5ca7
to
b8aab2b
Compare
@@ -66,6 +66,8 @@ func StartCmd(command model.Cmd) (*gexec.Session, error) { | |||
// supplied <timeout> until the <cmd> result contains the <expectedResult> | |||
// An example use of this utility would be curl-ing a url and waiting | |||
// until the response code matches the expected response. | |||
// TODO: refactor to accept timeout of type time.Duration, potentially expected exit code was well | |||
// TODO: or at least use RetryUntilResult below |
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.
@vdice can we get some GH issues for these, if they're not already in?
pushCommandLineString, settings.GitSSH, keyPath)} | ||
|
||
Eventually(cmd.RetryUntilResult(pushCmd, expectedCmdResult, 5*time.Second, | ||
settings.DefaultEventuallyTimeout)).Should(BeTrue()) |
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.
can the default eventually timeout be specified in the env? wondering because we may need to change the builder's internal repo lock timeout sometime in the future
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.
@arschles yes, it appears it and MaxDefaultEventuallyTimeout
can be overridden via env vars: https://github.com/deis/workflow-e2e/blob/master/tests/settings/settings.go#L20
b8aab2b
to
792dfd6
Compare
|
||
// Satisfies returns whether or not the original CmdResult, ocd, meets all of | ||
// the expectations contained in the expeced CmdResult, ecd | ||
func (ocd CmdResult) Satisfies(ecd CmdResult) bool { |
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 receiver name describes my coding style perfectly
792dfd6
to
cc7ff9b
Compare
cc7ff9b
to
9490cc6
Compare
[skip ci] Depends on (currently pending) fix in deis/builder#369
9490cc6
to
a532726
Compare
Still some TODOs to address that I can move forward with if it sounds like this will still be wanted afterStill need to align with work done in #235Adds spec for deis/builder#369
cc @mboersma