Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Sep 13, 2022
1 parent 6e729f5 commit 23896b7
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions pkg/azurefile/controllerserver_test.go
Expand Up @@ -536,38 +536,6 @@ func TestCreateVolume(t *testing.T) {
}
},
},
{
name: "NFS protocol is not supported in cross subscription",
testFunc: func(t *testing.T) {
allParam := map[string]string{
subscriptionIDField: "abc",
protocolField: "nfs",
}

req := &csi.CreateVolumeRequest{
Name: "random-vol-name-vol-cap-invalid",
CapacityRange: stdCapRange,
VolumeCapabilities: stdVolCap,
Parameters: allParam,
}

d := NewFakeDriver()
d.cloud = &azure.Cloud{
Config: azure.Config{},
}

d.AddControllerServiceCapabilities(
[]csi.ControllerServiceCapability_RPC_Type{
csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME,
})

expectedErr := status.Errorf(codes.InvalidArgument, "NFS protocol is not supported in cross subscription(abc)")
_, err := d.CreateVolume(context.Background(), req)
if !reflect.DeepEqual(err, expectedErr) {
t.Errorf("Unexpected error: %v", err)
}
},
},
{
name: "storeAccountKey must set as true in cross subscription",
testFunc: func(t *testing.T) {
Expand Down

0 comments on commit 23896b7

Please sign in to comment.