File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
util/src/test/java/io/kubernetes/client/util Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 17
17
import com .google .auth .oauth2 .AccessToken ;
18
18
import com .google .auth .oauth2 .GoogleCredentials ;
19
19
import io .kubernetes .client .util .authenticators .Authenticator ;
20
- import io .kubernetes .client .util .authenticators .AzureActiveDirectoryAuthenticator ;
21
20
import io .kubernetes .client .util .authenticators .GCPAuthenticator ;
22
21
import java .io .ByteArrayInputStream ;
23
22
import java .io .FileReader ;
@@ -210,30 +209,6 @@ void gcpAuthProviderExpiredTokenWithoutGCloud() {
210
209
assertThat (kc .getCredentials ()).containsEntry (KubeConfig .CRED_TOKEN_KEY , fakeToken );
211
210
}
212
211
213
- @ Test
214
- void azureAuthProvider () {
215
- KubeConfig .registerAuthenticator (new AzureActiveDirectoryAuthenticator ());
216
- String azureConfig =
217
- "apiVersion: v1\n "
218
- + "contexts:\n "
219
- + "- context:\n "
220
- + " user: aks-cluster\n "
221
- + " name: foo-context\n "
222
- + "current-context: foo-context\n "
223
- + "users:\n "
224
- + "- name: aks-cluster\n "
225
- + " user:\n "
226
- + " auth-provider:\n "
227
- + " config:\n "
228
- + " access-token: fake-azure-token\n "
229
- + " expires-on: \" 1841569394\" \n "
230
- + " expiry-key: '{.credential.token_expiry}'\n "
231
- + " token-key: '{.credential.access_token}'\n "
232
- + " name: azure\n " ;
233
- KubeConfig kc = KubeConfig .loadKubeConfig (new StringReader (azureConfig ));
234
- assertThat (kc .getCredentials ()).containsEntry (KubeConfig .CRED_TOKEN_KEY , "fake-azure-token" );
235
- }
236
-
237
212
@ Test
238
213
void namespace () {
239
214
KubeConfig config = KubeConfig .loadKubeConfig (new StringReader (KUBECONFIG_TOKEN ));
You can’t perform that action at this time.
0 commit comments