-
Notifications
You must be signed in to change notification settings - Fork 182
Update driver to support compute staging #1586
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
Changes from all commits
f5071fa
4d931b6
6aae7d2
ce810c4
db3f3d9
097e5b9
46ad7e7
13f981e
81485ea
afe6c38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1280,7 +1280,7 @@ var _ = Describe("GCE PD CSI Driver", func() { | |
| }() | ||
| }) | ||
|
|
||
| It("Should pass/fail if valid/invalid compute endpoint is passed in", func() { | ||
| It("Should pass if valid compute endpoint is passed in", func() { | ||
| // gets instance set up w/o compute-endpoint set from test setup | ||
| _, err := getRandomTestContext().Client.ListVolumes() | ||
| Expect(err).To(BeNil(), "no error expected when passed valid compute url") | ||
|
|
@@ -1295,15 +1295,6 @@ var _ = Describe("GCE PD CSI Driver", func() { | |
|
|
||
| klog.Infof("Creating new driver and client for node %s\n", i.GetName()) | ||
|
|
||
| // Create new driver and client w/ invalid endpoint | ||
| tcInvalid, err := testutils.GCEClientAndDriverSetup(i, "invalid-string") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So we drop the invalid endpoint case?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, IMO this should be treated as input validation for the program rather than the RPC layer. Passing an invalid endpoint should crash the program, rather than cause a delayed RPC error. |
||
| if err != nil { | ||
| klog.Fatalf("Failed to set up Test Context for instance %v: %v", i.GetName(), err) | ||
| } | ||
|
|
||
| _, err = tcInvalid.Client.ListVolumes() | ||
| Expect(err.Error()).To(ContainSubstring("no such host"), "expected error when passed invalid compute url") | ||
|
|
||
| // Create new driver and client w/ valid, passed-in endpoint | ||
| tcValid, err := testutils.GCEClientAndDriverSetup(i, "https://compute.googleapis.com") | ||
| if err != nil { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.