-
Notifications
You must be signed in to change notification settings - Fork 197
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
Fail when requested volume does not exist #56
Conversation
|
||
func getResourceGroupFromDiskURI(diskURI string) (string, error) { | ||
fields := strings.Split(diskURI, "/") | ||
if len(fields) != 9 || fields[3] != "resourceGroups" { |
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.
would you also copy the test code of TestGetResourceGroupFromDiskURI
? thanks.
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.
Okay
and this PR will also fail the CI test:
|
I found why CI test failed, just pushed a new commit: 57fbcb6 |
@andyzhangx I have added the test. |
use GetStorageAccesskey from azure lib
…gin-release-4.12 [release-4.12] OCPBUGS-20675: CVE-2023-44487: bump golang.org/x/net to v0.17.0
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fix the following failure in sanity test
[Fail] Controller Service ValidateVolumeCapabilities [It] should fail when the requested volume does not exist /home/priyanshu/work/src/github.com/csi-driver/azuredisk-csi-driver/vendor/github.com/kubernetes-csi/csi-test/pkg/sanity/controller.go:705
Which issue(s) this PR fixes:
Fixes #46
Special notes for your reviewer: