Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cfa6397

Browse files
committedJul 5, 2022
fixed sig error for TestGetSubnetResourceID()
1 parent f7a4076 commit cfa6397

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎pkg/blob/blob_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ func TestGetSubnetResourceID(t *testing.T) {
806806
name: "NetworkResourceSubscriptionID is Empty",
807807
testFunc: func(t *testing.T) {
808808
d := NewFakeDriver()
809+
d.cloud = &azure.Cloud{}
809810
d.cloud.SubscriptionID = "fakeSubID"
810811
d.cloud.NetworkResourceSubscriptionID = ""
811812
d.cloud.ResourceGroup = "foo"
@@ -819,6 +820,7 @@ func TestGetSubnetResourceID(t *testing.T) {
819820
name: "NetworkResourceSubscriptionID is not Empty",
820821
testFunc: func(t *testing.T) {
821822
d := NewFakeDriver()
823+
d.cloud = &azure.Cloud{}
822824
d.cloud.SubscriptionID = "fakeSubID"
823825
d.cloud.NetworkResourceSubscriptionID = "fakeNetSubID"
824826
d.cloud.ResourceGroup = "foo"
@@ -832,6 +834,7 @@ func TestGetSubnetResourceID(t *testing.T) {
832834
name: "VnetResourceGroup is Empty",
833835
testFunc: func(t *testing.T) {
834836
d := NewFakeDriver()
837+
d.cloud = &azure.Cloud{}
835838
d.cloud.SubscriptionID = "bar"
836839
d.cloud.NetworkResourceSubscriptionID = "bar"
837840
d.cloud.ResourceGroup = "fakeResourceGroup"
@@ -845,6 +848,7 @@ func TestGetSubnetResourceID(t *testing.T) {
845848
name: "VnetResourceGroup is not Empty",
846849
testFunc: func(t *testing.T) {
847850
d := NewFakeDriver()
851+
d.cloud = &azure.Cloud{}
848852
d.cloud.SubscriptionID = "bar"
849853
d.cloud.NetworkResourceSubscriptionID = "bar"
850854
d.cloud.ResourceGroup = "fakeResourceGroup"

0 commit comments

Comments
 (0)
Please sign in to comment.