Skip to content

Commit af3ef77

Browse files
committed
mark private keys in tests as obviously fake
1 parent 8084a2f commit af3ef77

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/platform/notebooks/deepnote/sqlIntegrationEnvironmentVariablesProvider.unit.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,8 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
449449
test('Returns environment variable for Snowflake with SERVICE_ACCOUNT_KEY_PAIR auth', async () => {
450450
const uri = Uri.file('/test/notebook.deepnote');
451451
const integrationId = 'snowflake-keypair';
452-
const privateKey = '-----BEGIN ' + 'PRIVATE KEY-----\nMIIEvQIBADANBg...\n-----END ' + 'PRIVATE KEY-----';
452+
const privateKey =
453+
'-----BEGIN ' + 'PRIVATE KEY-----\nfakekey-MIIEvQIBADANBg...\n-----END ' + 'PRIVATE KEY-----';
453454
const config: SnowflakeIntegrationConfig = {
454455
id: integrationId,
455456
name: 'Snowflake KeyPair',
@@ -491,7 +492,8 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
491492
test('Returns environment variable for Snowflake with SERVICE_ACCOUNT_KEY_PAIR auth without passphrase', async () => {
492493
const uri = Uri.file('/test/notebook.deepnote');
493494
const integrationId = 'snowflake-keypair-no-pass';
494-
const privateKey = '-----BEGIN ' + 'PRIVATE KEY-----\nMIIEvQIBADANBg...\n-----END ' + 'PRIVATE KEY-----';
495+
const privateKey =
496+
'-----BEGIN ' + 'PRIVATE KEY-----\nfakekey-MIIEvQIBADANBg...\n-----END ' + 'PRIVATE KEY-----';
495497
const config: SnowflakeIntegrationConfig = {
496498
id: integrationId,
497499
name: 'Snowflake KeyPair No Pass',

0 commit comments

Comments
 (0)