Skip to content

Commit

Permalink
Remove tests for removed code.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Apr 28, 2024
1 parent 0e37378 commit 835fd70
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions util/src/test/java/io/kubernetes/client/util/KubeConfigTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.google.auth.oauth2.AccessToken;
import com.google.auth.oauth2.GoogleCredentials;
import io.kubernetes.client.util.authenticators.Authenticator;
import io.kubernetes.client.util.authenticators.AzureActiveDirectoryAuthenticator;
import io.kubernetes.client.util.authenticators.GCPAuthenticator;
import java.io.ByteArrayInputStream;
import java.io.FileReader;
Expand Down Expand Up @@ -210,30 +209,6 @@ void gcpAuthProviderExpiredTokenWithoutGCloud() {
assertThat(kc.getCredentials()).containsEntry(KubeConfig.CRED_TOKEN_KEY, fakeToken);
}

@Test
void azureAuthProvider() {
KubeConfig.registerAuthenticator(new AzureActiveDirectoryAuthenticator());
String azureConfig =
"apiVersion: v1\n"
+ "contexts:\n"
+ "- context:\n"
+ " user: aks-cluster\n"
+ " name: foo-context\n"
+ "current-context: foo-context\n"
+ "users:\n"
+ "- name: aks-cluster\n"
+ " user:\n"
+ " auth-provider:\n"
+ " config:\n"
+ " access-token: fake-azure-token\n"
+ " expires-on: \"1841569394\"\n"
+ " expiry-key: '{.credential.token_expiry}'\n"
+ " token-key: '{.credential.access_token}'\n"
+ " name: azure\n";
KubeConfig kc = KubeConfig.loadKubeConfig(new StringReader(azureConfig));
assertThat(kc.getCredentials()).containsEntry(KubeConfig.CRED_TOKEN_KEY, "fake-azure-token");
}

@Test
void namespace() {
KubeConfig config = KubeConfig.loadKubeConfig(new StringReader(KUBECONFIG_TOKEN));
Expand Down

0 comments on commit 835fd70

Please sign in to comment.