-
Notifications
You must be signed in to change notification settings - Fork 159
Refactored remote test framework for easy usage. Added teardown methods #80
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
Refactored remote test framework for easy usage. Added teardown methods #80
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidz627 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
test/remote/setup-teardown.go
Outdated
) | ||
|
||
const ( | ||
archiveName = "e2e_gce_pd_test.tar.gz" |
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 this name be more generic?
test/remote/instance.go
Outdated
glog.V(4).Infof("Deleting instance %q", i.name) | ||
_, err := i.computeService.Instances.Delete(i.project, i.zone, i.name).Do() | ||
if err != nil { | ||
if isGCEError(err, "notFound") { | ||
return | ||
return nil | ||
} | ||
glog.Errorf("Error deleting instance %q: %v", i.name, err) |
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.
log can be removed if you're returning the error
eff7ebe
to
e6dc8b0
Compare
/lgtm |
/assign @msau42