Skip to content

Commit

Permalink
add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-akolodziejczyk committed Dec 4, 2024
1 parent 6445bec commit bff75dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/test_authentication.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ docker run \
-v $(cd $THIS_DIR/.. && pwd):/mnt/host \
-v $WORKSPACE:/mnt/workspace \
--rm \
nexus.int.snowflakecomputing.com:8086/docker/snowdrivers-test-external-browser:2 \
nexus.int.snowflakecomputing.com:8086/docker/snowdrivers-test-external-browser:3 \
"/mnt/host/ci/container/test_authentication.sh"
1 change: 1 addition & 0 deletions test/authentication/testKeyPair.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ describe('Key-pair authentication', function () {
await authTest.verifyConnectionIsUp();
});

//todo SNOW-1844747 improve error message
it('Invalid private key password', async function () {
const connectionOption = { ...connParameters.keypairEncryptedPrivateKeyPath, privateKeyPass: 'invalid' };
authTest.createConnection(connectionOption);
Expand Down
5 changes: 3 additions & 2 deletions test/authentication/testOkta.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ describe('Okta authentication', function () {
await authTest.verifyConnectionIsNotUp();
});

it.skip('Wrong okta url', async function () {
//todo SNOW-1844747 improve error message
it('Wrong okta url', async function () {
const connectionOption = { ...connParameters.okta, authenticator: 'https://testinvalidaccoount.com' };
authTest.createConnection(connectionOption);
await authTest.connectAsync();
authTest.verifyErrorWasThrown('');
authTest.verifyErrorWasThrown('Cannot read properties of null (reading \'ssoUrl\')');
await authTest.verifyConnectionIsNotUp();
});
});

0 comments on commit bff75dd

Please sign in to comment.