Skip to content

Commit

Permalink
Fix pvc_annotator_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mkandawires committed May 14, 2024
1 parent fee881b commit 8f46ea3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/blob/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ import (
"sigs.k8s.io/blob-csi-driver/pkg/edgecache"
cv "sigs.k8s.io/blob-csi-driver/pkg/edgecache/cachevolume"
blobcsiutil "sigs.k8s.io/blob-csi-driver/pkg/util"
volumehelper "sigs.k8s.io/blob-csi-driver/pkg/util"
azcache "sigs.k8s.io/cloud-provider-azure/pkg/cache"
"sigs.k8s.io/cloud-provider-azure/pkg/metrics"

"github.com/container-storage-interface/spec/lib/go/csi"

v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/klog/v2"
"k8s.io/kubernetes/pkg/volume"
"k8s.io/kubernetes/pkg/volume/util"
Expand Down
3 changes: 2 additions & 1 deletion pkg/edgecache/cachevolume/pvc_annotator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"k8s.io/client-go/kubernetes/fake"

"github.com/stretchr/testify/assert"
"sigs.k8s.io/cloud-provider-azure/pkg/azclient"
"sigs.k8s.io/cloud-provider-azure/pkg/provider/config"
)

Expand Down Expand Up @@ -152,7 +153,7 @@ func TestSendProvisionVolumeSuccess(t *testing.T) {
testcases := []SuccessTestCase{
{
name: "ValidWIAuth",
config: config.AzureAuthConfig{UseFederatedWorkloadIdentityExtension: true},
config: config.AzureAuthConfig{AzureAuthConfig: azclient.AzureAuthConfig{UseFederatedWorkloadIdentityExtension: true}},
blobAuth: NewBlobAuth(suffix, acct, container, "", "", "WorkloadIdentity"),
expectedAnnotations: map[string]string{
volumeStateAnnotation: "not created",
Expand Down

0 comments on commit 8f46ea3

Please sign in to comment.