Skip to content

Commit

Permalink
fix redundant import in test
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMHD committed Feb 18, 2024
1 parent 67f0850 commit 398f39e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/auth/authenticator_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestBuildNewWebservicesCache(t *testing.T) {
Items: prepareWebservices(2),
}
noNamespaceService := v1alpha1.WebService{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metav1.ObjectMeta{
Name: "nonamespace",
},
}
Expand Down Expand Up @@ -282,7 +282,7 @@ func TestWebservicesCache_ReadWebservice(t *testing.T) {
cache := make(WebservicesCache)
cacheEntry := WebservicesCacheEntry{
WebService: v1alpha1.WebService{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metav1.ObjectMeta{
Name: "webservice1",
Namespace: "does not matter",
},
Expand Down Expand Up @@ -362,7 +362,7 @@ func TestAccessTokensCache_buildAllowedWebservicesCache(t *testing.T) {
// Create a mock AccessTokensCacheEntry
accessTokenEntry1 := AccessTokensCacheEntry{
AccessToken: v1alpha1.AccessToken{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metav1.ObjectMeta{
Name: "token1",
Namespace: "namespace1",
},
Expand All @@ -383,7 +383,7 @@ func TestAccessTokensCache_buildAllowedWebservicesCache(t *testing.T) {
}
accessTokenEntry2 := AccessTokensCacheEntry{
AccessToken: v1alpha1.AccessToken{
ObjectMeta: v1.ObjectMeta{
ObjectMeta: metav1.ObjectMeta{
Name: "token2",
Namespace: "namespace1",
},
Expand Down

0 comments on commit 398f39e

Please sign in to comment.