@@ -7,9 +7,9 @@ import { IntegrationStorage } from './integrationStorage';
77import { SqlIntegrationEnvironmentVariablesProvider } from './sqlIntegrationEnvironmentVariablesProvider' ;
88import {
99 LegacyIntegrationType ,
10- PostgresIntegrationConfig ,
11- BigQueryIntegrationConfig ,
12- SnowflakeIntegrationConfig ,
10+ LegacyPostgresIntegrationConfig ,
11+ LegacyBigQueryIntegrationConfig ,
12+ LegacySnowflakeIntegrationConfig ,
1313 SnowflakeAuthMethods
1414} from './integrationTypes' ;
1515import { IPlatformNotebookEditorProvider , IPlatformDeepnoteNotebookManager } from './types' ;
@@ -131,7 +131,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
131131 test ( 'Returns environment variable for PostgreSQL integration' , async ( ) => {
132132 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
133133 const integrationId = 'my-postgres-db' ;
134- const config : PostgresIntegrationConfig = {
134+ const config : LegacyPostgresIntegrationConfig = {
135135 id : integrationId ,
136136 name : 'My Postgres DB' ,
137137 type : LegacyIntegrationType . Postgres ,
@@ -164,7 +164,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
164164 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
165165 const integrationId = 'my-bigquery' ;
166166 const serviceAccountJson = JSON . stringify ( { type : 'service_account' , project_id : 'my-project' } ) ;
167- const config : BigQueryIntegrationConfig = {
167+ const config : LegacyBigQueryIntegrationConfig = {
168168 id : integrationId ,
169169 name : 'My BigQuery' ,
170170 type : LegacyIntegrationType . BigQuery ,
@@ -197,7 +197,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
197197 const postgresId = 'my-postgres-db' ;
198198 const bigqueryId = 'my-bigquery' ;
199199
200- const postgresConfig : PostgresIntegrationConfig = {
200+ const postgresConfig : LegacyPostgresIntegrationConfig = {
201201 id : postgresId ,
202202 name : 'My Postgres DB' ,
203203 type : LegacyIntegrationType . Postgres ,
@@ -208,7 +208,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
208208 password : 'pass'
209209 } ;
210210
211- const bigqueryConfig : BigQueryIntegrationConfig = {
211+ const bigqueryConfig : LegacyBigQueryIntegrationConfig = {
212212 id : bigqueryId ,
213213 name : 'My BigQuery' ,
214214 type : LegacyIntegrationType . BigQuery ,
@@ -238,7 +238,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
238238 test ( 'Properly encodes special characters in PostgreSQL credentials' , async ( ) => {
239239 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
240240 const integrationId = 'special-chars-db' ;
241- const config : PostgresIntegrationConfig = {
241+ const config : LegacyPostgresIntegrationConfig = {
242242 id : integrationId ,
243243 name : 'Special Chars DB' ,
244244 type : LegacyIntegrationType . Postgres ,
@@ -275,7 +275,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
275275 test ( 'Normalizes integration ID with spaces and mixed case for env var name' , async ( ) => {
276276 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
277277 const integrationId = 'My Production DB' ;
278- const config : PostgresIntegrationConfig = {
278+ const config : LegacyPostgresIntegrationConfig = {
279279 id : integrationId ,
280280 name : 'Production Database' ,
281281 type : LegacyIntegrationType . Postgres ,
@@ -308,7 +308,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
308308 test ( 'Normalizes integration ID with special characters for env var name' , async ( ) => {
309309 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
310310 const integrationId = 'my-db@2024!' ;
311- const config : PostgresIntegrationConfig = {
311+ const config : LegacyPostgresIntegrationConfig = {
312312 id : integrationId ,
313313 name : 'Test DB' ,
314314 type : LegacyIntegrationType . Postgres ,
@@ -348,7 +348,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
348348 test ( 'Returns environment variable for Snowflake with PASSWORD auth' , async ( ) => {
349349 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
350350 const integrationId = 'my-snowflake' ;
351- const config : SnowflakeIntegrationConfig = {
351+ const config : LegacySnowflakeIntegrationConfig = {
352352 id : integrationId ,
353353 name : 'My Snowflake' ,
354354 type : LegacyIntegrationType . Snowflake ,
@@ -383,7 +383,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
383383 test ( 'Returns environment variable for Snowflake with legacy null auth (username+password)' , async ( ) => {
384384 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
385385 const integrationId = 'legacy-snowflake' ;
386- const config : SnowflakeIntegrationConfig = {
386+ const config : LegacySnowflakeIntegrationConfig = {
387387 id : integrationId ,
388388 name : 'Legacy Snowflake' ,
389389 type : LegacyIntegrationType . Snowflake ,
@@ -418,7 +418,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
418418 const integrationId = 'snowflake-keypair' ;
419419 const privateKey =
420420 '-----BEGIN ' + 'PRIVATE KEY-----\nfakekey-MIIEvQIBADANBg...\n-----END ' + 'PRIVATE KEY-----' ;
421- const config : SnowflakeIntegrationConfig = {
421+ const config : LegacySnowflakeIntegrationConfig = {
422422 id : integrationId ,
423423 name : 'Snowflake KeyPair' ,
424424 type : LegacyIntegrationType . Snowflake ,
@@ -459,7 +459,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
459459 const integrationId = 'snowflake-keypair-no-pass' ;
460460 const privateKey =
461461 '-----BEGIN ' + 'PRIVATE KEY-----\nfakekey-MIIEvQIBADANBg...\n-----END ' + 'PRIVATE KEY-----' ;
462- const config : SnowflakeIntegrationConfig = {
462+ const config : LegacySnowflakeIntegrationConfig = {
463463 id : integrationId ,
464464 name : 'Snowflake KeyPair No Pass' ,
465465 type : LegacyIntegrationType . Snowflake ,
@@ -496,7 +496,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
496496 test ( 'Properly encodes special characters in Snowflake credentials' , async ( ) => {
497497 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
498498 const integrationId = 'snowflake-special' ;
499- const config : SnowflakeIntegrationConfig = {
499+ const config : LegacySnowflakeIntegrationConfig = {
500500 id : integrationId ,
501501 name : 'Snowflake Special' ,
502502 type : LegacyIntegrationType . Snowflake ,
@@ -530,7 +530,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
530530 test ( 'Handles Snowflake with minimal optional fields' , async ( ) => {
531531 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
532532 const integrationId = 'snowflake-minimal' ;
533- const config : SnowflakeIntegrationConfig = {
533+ const config : LegacySnowflakeIntegrationConfig = {
534534 id : integrationId ,
535535 name : 'Snowflake Minimal' ,
536536 type : LegacyIntegrationType . Snowflake ,
@@ -559,7 +559,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
559559 test ( 'Skips unsupported Snowflake auth method (OKTA)' , async ( ) => {
560560 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
561561 const integrationId = 'snowflake-okta' ;
562- const config : SnowflakeIntegrationConfig = {
562+ const config : LegacySnowflakeIntegrationConfig = {
563563 id : integrationId ,
564564 name : 'Snowflake OKTA' ,
565565 type : LegacyIntegrationType . Snowflake ,
@@ -582,7 +582,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
582582 test ( 'Skips unsupported Snowflake auth method (AZURE_AD)' , async ( ) => {
583583 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
584584 const integrationId = 'snowflake-azure' ;
585- const config : SnowflakeIntegrationConfig = {
585+ const config : LegacySnowflakeIntegrationConfig = {
586586 id : integrationId ,
587587 name : 'Snowflake Azure' ,
588588 type : LegacyIntegrationType . Snowflake ,
@@ -604,7 +604,7 @@ suite('SqlIntegrationEnvironmentVariablesProvider', () => {
604604 test ( 'Skips unsupported Snowflake auth method (KEY_PAIR)' , async ( ) => {
605605 const uri = Uri . file ( '/test/notebook.deepnote' ) ;
606606 const integrationId = 'snowflake-keypair-user' ;
607- const config : SnowflakeIntegrationConfig = {
607+ const config : LegacySnowflakeIntegrationConfig = {
608608 id : integrationId ,
609609 name : 'Snowflake KeyPair User' ,
610610 type : LegacyIntegrationType . Snowflake ,
0 commit comments