@@ -67,6 +67,7 @@ suite('Connection Controller Test Suite', () => {
67
67
) ;
68
68
const dataService = testConnectionController . getActiveDataService ( ) ;
69
69
assert ( dataService !== null ) ;
70
+ assert ( testConnectionController . _activeConnectionModel ?. appname . startsWith ( 'mongodb-vscode' ) ) ;
70
71
assert ( testConnectionController . isCurrentlyConnected ( ) ) ;
71
72
} )
72
73
. then ( done , done ) ;
@@ -477,7 +478,7 @@ suite('Connection Controller Test Suite', () => {
477
478
assert (
478
479
Object . keys ( connections ) . length === 4 ,
479
480
`Expected 4 connection configurations found ${
480
- Object . keys ( connections ) . length
481
+ Object . keys ( connections ) . length
481
482
} `
482
483
) ;
483
484
assert (
@@ -486,7 +487,7 @@ suite('Connection Controller Test Suite', () => {
486
487
) ;
487
488
assert (
488
489
Object . keys ( connections ) . includes ( 'testWorkspaceConnectionModel2' ) ===
489
- true ,
490
+ true ,
490
491
"Expected connection configurations to include 'testWorkspaceConnectionModel2'"
491
492
) ;
492
493
assert (
@@ -495,7 +496,7 @@ suite('Connection Controller Test Suite', () => {
495
496
) ;
496
497
assert (
497
498
connections . testGlobalConnectionModel2 . driverUrl ===
498
- 'testGlobalConnectionModel2DriverUrl' ,
499
+ 'testGlobalConnectionModel2DriverUrl' ,
499
500
"Expected loaded connection to include driver url 'testGlobalConnectionModel2DriverUrl'"
500
501
) ;
501
502
} ) ;
@@ -525,7 +526,7 @@ suite('Connection Controller Test Suite', () => {
525
526
assert (
526
527
Object . keys ( globalStoreConnections ) . length === 1 ,
527
528
`Expected global store connections to have 1 connection found ${
528
- Object . keys ( globalStoreConnections ) . length
529
+ Object . keys ( globalStoreConnections ) . length
529
530
} `
530
531
) ;
531
532
const id = Object . keys ( globalStoreConnections ) [ 0 ] ;
@@ -573,7 +574,7 @@ suite('Connection Controller Test Suite', () => {
573
574
assert (
574
575
Object . keys ( workspaceStoreConnections ) . length === 1 ,
575
576
`Expected workspace store connections to have 1 connection found ${
576
- Object . keys ( workspaceStoreConnections ) . length
577
+ Object . keys ( workspaceStoreConnections ) . length
577
578
} `
578
579
) ;
579
580
const id = Object . keys ( workspaceStoreConnections ) [ 0 ] ;
@@ -619,7 +620,7 @@ suite('Connection Controller Test Suite', () => {
619
620
assert (
620
621
Object . keys ( workspaceStoreConnections ) . length === 1 ,
621
622
`Expected workspace store connections to have 1 connection found ${
622
- Object . keys ( workspaceStoreConnections ) . length
623
+ Object . keys ( workspaceStoreConnections ) . length
623
624
} `
624
625
) ;
625
626
@@ -635,7 +636,7 @@ suite('Connection Controller Test Suite', () => {
635
636
assert (
636
637
testConnectionController . getSavedConnections ( ) . length === 1 ,
637
638
`Expected 1 connection config, found ${
638
- testConnectionController . getSavedConnections ( ) . length
639
+ testConnectionController . getSavedConnections ( ) . length
639
640
} .`
640
641
) ;
641
642
const id = testConnectionController . getSavedConnections ( ) [ 0 ] . id ;
@@ -655,6 +656,7 @@ suite('Connection Controller Test Suite', () => {
655
656
name === 'localhost:27018' ,
656
657
`Expected the active connection name to be 'localhost:27018', found ${ name } .`
657
658
) ;
659
+ assert ( testConnectionController . _activeConnectionModel ?. appname . startsWith ( 'mongodb-vscode' ) ) ;
658
660
} )
659
661
. then ( done , done ) ;
660
662
} ) ;
@@ -778,7 +780,7 @@ suite('Connection Controller Test Suite', () => {
778
780
assert (
779
781
Object . keys ( workspaceStoreConnections ) . length === 1 ,
780
782
`Expected workspace store connections to have 1 connection found ${
781
- Object . keys ( workspaceStoreConnections ) . length
783
+ Object . keys ( workspaceStoreConnections ) . length
782
784
} `
783
785
) ;
784
786
@@ -793,7 +795,7 @@ suite('Connection Controller Test Suite', () => {
793
795
assert (
794
796
Object . keys ( postWorkspaceStoreConnections ) . length === 0 ,
795
797
`Expected workspace store connections to have 0 connections found ${
796
- Object . keys ( postWorkspaceStoreConnections ) . length
798
+ Object . keys ( postWorkspaceStoreConnections ) . length
797
799
} `
798
800
) ;
799
801
} )
@@ -827,7 +829,7 @@ suite('Connection Controller Test Suite', () => {
827
829
assert (
828
830
Object . keys ( globalStoreConnections ) . length === 1 ,
829
831
`Expected workspace store connections to have 1 connection found ${
830
- Object . keys ( globalStoreConnections ) . length
832
+ Object . keys ( globalStoreConnections ) . length
831
833
} `
832
834
) ;
833
835
@@ -841,7 +843,7 @@ suite('Connection Controller Test Suite', () => {
841
843
assert (
842
844
Object . keys ( postGlobalStoreConnections ) . length === 0 ,
843
845
`Expected global store connections to have 0 connections found ${
844
- Object . keys ( postGlobalStoreConnections ) . length
846
+ Object . keys ( postGlobalStoreConnections ) . length
845
847
} `
846
848
) ;
847
849
} ) ;
@@ -877,7 +879,7 @@ suite('Connection Controller Test Suite', () => {
877
879
assert (
878
880
Object . keys ( workspaceStoreConnections ) . length === 1 ,
879
881
`Expected workspace store connections to have 1 connection found ${
880
- Object . keys ( workspaceStoreConnections ) . length
882
+ Object . keys ( workspaceStoreConnections ) . length
881
883
} `
882
884
) ;
883
885
const connectionId =
@@ -912,7 +914,7 @@ suite('Connection Controller Test Suite', () => {
912
914
testConnectionController . getSavedConnections ( )
913
915
. length === 1 ,
914
916
`Expected 1 connection config, found ${
915
- testConnectionController . getSavedConnections ( ) . length
917
+ testConnectionController . getSavedConnections ( ) . length
916
918
} .`
917
919
) ;
918
920
const id = testConnectionController . getSavedConnections ( ) [ 0 ]
0 commit comments