Skip to content

Commit 835fd70

Browse files
committed
Remove tests for removed code.
1 parent 0e37378 commit 835fd70

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

util/src/test/java/io/kubernetes/client/util/KubeConfigTest.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import com.google.auth.oauth2.AccessToken;
1818
import com.google.auth.oauth2.GoogleCredentials;
1919
import io.kubernetes.client.util.authenticators.Authenticator;
20-
import io.kubernetes.client.util.authenticators.AzureActiveDirectoryAuthenticator;
2120
import io.kubernetes.client.util.authenticators.GCPAuthenticator;
2221
import java.io.ByteArrayInputStream;
2322
import java.io.FileReader;
@@ -210,30 +209,6 @@ void gcpAuthProviderExpiredTokenWithoutGCloud() {
210209
assertThat(kc.getCredentials()).containsEntry(KubeConfig.CRED_TOKEN_KEY, fakeToken);
211210
}
212211

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-
237212
@Test
238213
void namespace() {
239214
KubeConfig config = KubeConfig.loadKubeConfig(new StringReader(KUBECONFIG_TOKEN));

0 commit comments

Comments
 (0)