Skip to content

Commit aa2a7d2

Browse files
committed
test: fix oc login command
1 parent 07d1dba commit aa2a7d2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/setup/platforms/openshift4.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ export async function exportKubeConfig(): Promise<void> {
6262
clusterURL === 'https://api.crc.testing:6443'
6363
? // TODO(ivanstanev): pin to a specific CA certificate
6464
`./oc login -u "${user}" -p "${userPassword}" "${clusterURL}" --insecure-skip-tls-verify=true --kubeconfig ${kubeconfigPath}`
65-
: `./oc login --token="${userPassword}" --server="${clusterURL}" --kubeconfig ${kubeconfigPath}`;
66-
await exec(cmd);
65+
: `./oc login --token="${userPassword}" "${clusterURL}" --kubeconfig ${kubeconfigPath}`;
66+
const result = await exec(cmd);
67+
68+
console.log('oc login result:', result.stderr || result.stdout);
69+
6770
process.env.KUBECONFIG = kubeconfigPath;
6871
}
6972

0 commit comments

Comments
 (0)