@@ -35,7 +35,7 @@ import KeytarStub from './keytarStub';
35
35
import { ext } from '../../extensionConstants' ;
36
36
import type { KeytarInterface } from '../../utils/keytar' ;
37
37
38
- const testDatabaseConnectionName = 'localhost:27018 ' ;
38
+ const testDatabaseConnectionName = 'localhost:27088 ' ;
39
39
const testDatabaseURI2WithTimeout =
40
40
'mongodb://shouldfail?connectTimeoutMS=1000&serverSelectionTimeoutMS=1000' ;
41
41
@@ -96,7 +96,7 @@ suite('Connection Controller Test Suite', function () {
96
96
testConnectionController . getSavedConnections ( ) . length ,
97
97
1
98
98
) ;
99
- assert . strictEqual ( name , 'localhost:27018 ' ) ;
99
+ assert . strictEqual ( name , 'localhost:27088 ' ) ;
100
100
assert . strictEqual ( testConnectionController . isCurrentlyConnected ( ) , true ) ;
101
101
102
102
assert . notStrictEqual ( dataService , null ) ;
@@ -253,7 +253,7 @@ suite('Connection Controller Test Suite', function () {
253
253
254
254
test ( 'the connection model loads both global and workspace stored connection models' , async ( ) => {
255
255
const expectedDriverUrl =
256
- 'mongodb://localhost:27018 /?appname=mongodb-vscode+0.0.0-dev.0' ;
256
+ 'mongodb://localhost:27088 /?appname=mongodb-vscode+0.0.0-dev.0' ;
257
257
258
258
await vscode . workspace
259
259
. getConfiguration ( 'mdb.connectionSaving' )
@@ -285,7 +285,7 @@ suite('Connection Controller Test Suite', function () {
285
285
assert . strictEqual ( Object . keys ( connections ) . length , 4 ) ;
286
286
assert . strictEqual (
287
287
connections [ Object . keys ( connections ) [ 0 ] ] . name ,
288
- 'localhost:27018 '
288
+ 'localhost:27088 '
289
289
) ;
290
290
assert . strictEqual (
291
291
connections [ Object . keys ( connections ) [ 2 ] ] . connectionOptions
@@ -419,11 +419,11 @@ suite('Connection Controller Test Suite', function () {
419
419
const name = testConnectionController . _connections [ activeId || '' ] . name ;
420
420
421
421
assert . strictEqual ( activeId , id ) ;
422
- assert . strictEqual ( name , 'localhost:27018 ' ) ;
422
+ assert . strictEqual ( name , 'localhost:27088 ' ) ;
423
423
} ) ;
424
424
425
425
test ( '"copyConnectionStringByConnectionId" returns the driver uri of a connection' , async ( ) => {
426
- const expectedDriverUrl = 'mongodb://localhost:27018 /' ;
426
+ const expectedDriverUrl = 'mongodb://localhost:27088 /' ;
427
427
428
428
await testConnectionController . loadSavedConnections ( ) ;
429
429
await testConnectionController . addNewConnectionStringAndConnect (
@@ -667,8 +667,8 @@ suite('Connection Controller Test Suite', function () {
667
667
const connectionIds = Object . keys ( connections ) ;
668
668
669
669
assert . strictEqual ( connectionIds . length , 2 ) ;
670
- assert . strictEqual ( connections [ connectionIds [ 0 ] ] . name , 'localhost:27018 ' ) ;
671
- assert . strictEqual ( connections [ connectionIds [ 1 ] ] . name , 'localhost:27018 ' ) ;
670
+ assert . strictEqual ( connections [ connectionIds [ 0 ] ] . name , 'localhost:27088 ' ) ;
671
+ assert . strictEqual ( connections [ connectionIds [ 1 ] ] . name , 'localhost:27088 ' ) ;
672
672
673
673
const inputBoxResolvesStub = sandbox . stub ( ) ;
674
674
inputBoxResolvesStub . onCall ( 0 ) . resolves ( 'Lynx' ) ;
@@ -689,7 +689,7 @@ suite('Connection Controller Test Suite', function () {
689
689
690
690
assert . strictEqual ( connectionQuickPicks . length , 3 ) ;
691
691
assert . strictEqual ( connectionQuickPicks [ 0 ] . label , 'Add new connection' ) ;
692
- assert . strictEqual ( connectionQuickPicks [ 1 ] . label , 'localhost:27018 ' ) ;
692
+ assert . strictEqual ( connectionQuickPicks [ 1 ] . label , 'localhost:27088 ' ) ;
693
693
assert . strictEqual ( connectionQuickPicks [ 2 ] . label , 'Lynx' ) ;
694
694
} ) ;
695
695
@@ -711,7 +711,7 @@ suite('Connection Controller Test Suite', function () {
711
711
assert . strictEqual ( testConnectionController . isCurrentlyConnected ( ) , true ) ;
712
712
assert . strictEqual (
713
713
testConnectionController . getActiveConnectionName ( ) ,
714
- 'localhost:27018 '
714
+ 'localhost:27088 '
715
715
) ;
716
716
} ) ;
717
717
@@ -1144,7 +1144,7 @@ suite('Connection Controller Test Suite', function () {
1144
1144
) ;
1145
1145
assert . strictEqual (
1146
1146
testConnectionController . _connections [ connections [ 0 ] . id ] . name ,
1147
- 'localhost:27018 '
1147
+ 'localhost:27088 '
1148
1148
) ;
1149
1149
} ) ;
1150
1150
@@ -1195,7 +1195,7 @@ suite('Connection Controller Test Suite', function () {
1195
1195
delete mongoClientConnectionOptions . options . parentHandle ;
1196
1196
1197
1197
assert . deepStrictEqual ( mongoClientConnectionOptions , {
1198
- url : 'mongodb://localhost:27018 /?appname=mongodb-vscode+0.0.0-dev.0' ,
1198
+ url : 'mongodb://localhost:27088 /?appname=mongodb-vscode+0.0.0-dev.0' ,
1199
1199
options : {
1200
1200
autoEncryption : undefined ,
1201
1201
monitorCommands : true ,
@@ -1211,10 +1211,10 @@ suite('Connection Controller Test Suite', function () {
1211
1211
1212
1212
test ( '_getConnectionStringWithProxy returns string with proxy options' , ( ) => {
1213
1213
const expectedConnectionStringWithProxy =
1214
- 'mongodb://localhost:27018 /?appname=mongodb-vscode+0.0.0-dev.0&proxyHost=localhost&proxyPassword=gwce7tr8733ujbr&proxyPort=3378&proxyUsername=test' ;
1214
+ 'mongodb://localhost:27088 /?appname=mongodb-vscode+0.0.0-dev.0&proxyHost=localhost&proxyPassword=gwce7tr8733ujbr&proxyPort=3378&proxyUsername=test' ;
1215
1215
const connectionString =
1216
1216
testConnectionController . _getConnectionStringWithProxy ( {
1217
- url : 'mongodb://localhost:27018 /?appname=mongodb-vscode+0.0.0-dev.0' ,
1217
+ url : 'mongodb://localhost:27088 /?appname=mongodb-vscode+0.0.0-dev.0' ,
1218
1218
options : {
1219
1219
proxyHost : 'localhost' ,
1220
1220
proxyPassword : 'gwce7tr8733ujbr' ,
@@ -1671,11 +1671,11 @@ suite('Connection Controller Test Suite', function () {
1671
1671
} ,
1672
1672
'random-connection-3' : {
1673
1673
id : 'random-connection-3' ,
1674
- name : 'localhost:27018 ' ,
1674
+ name : 'localhost:27088 ' ,
1675
1675
storageLocation : 'GLOBAL' ,
1676
1676
connectionOptions : {
1677
1677
connectionString :
1678
- 'mongodb://localhost:27018 /?readPreference=primary&ssl=false' ,
1678
+ 'mongodb://localhost:27088 /?readPreference=primary&ssl=false' ,
1679
1679
} ,
1680
1680
} ,
1681
1681
} as any ;
@@ -1737,12 +1737,12 @@ suite('Connection Controller Test Suite', function () {
1737
1737
} ,
1738
1738
'random-connection-2' : {
1739
1739
id : 'random-connection-2' ,
1740
- name : 'localhost:27018 ' ,
1740
+ name : 'localhost:27088 ' ,
1741
1741
storageLocation : 'GLOBAL' ,
1742
1742
secretStorageLocation : SecretStorageLocation . KeytarSecondAttempt ,
1743
1743
connectionOptions : {
1744
1744
connectionString :
1745
- 'mongodb://localhost:27018 /?readPreference=primary&ssl=false' ,
1745
+ 'mongodb://localhost:27088 /?readPreference=primary&ssl=false' ,
1746
1746
} ,
1747
1747
} ,
1748
1748
} as any ;
@@ -1794,32 +1794,32 @@ suite('Connection Controller Test Suite', function () {
1794
1794
} ,
1795
1795
'random-connection-2' : {
1796
1796
id : 'random-connection-2' ,
1797
- name : 'localhost:27018 ' ,
1797
+ name : 'localhost:27088 ' ,
1798
1798
storageLocation : 'GLOBAL' ,
1799
1799
secretStorageLocation : SecretStorageLocation . SecretStorage ,
1800
1800
connectionOptions : {
1801
1801
connectionString :
1802
- 'mongodb://localhost:27018 /?readPreference=primary&ssl=false' ,
1802
+ 'mongodb://localhost:27088 /?readPreference=primary&ssl=false' ,
1803
1803
} ,
1804
1804
} ,
1805
1805
'random-connection-3' : {
1806
1806
id : 'random-connection-3' ,
1807
- name : 'localhost:27018 ' ,
1807
+ name : 'localhost:27088 ' ,
1808
1808
storageLocation : 'GLOBAL' ,
1809
1809
secretStorageLocation : SecretStorageLocation . Keytar ,
1810
1810
connectionOptions : {
1811
1811
connectionString :
1812
- 'mongodb://localhost:27018 /?readPreference=primary&ssl=false' ,
1812
+ 'mongodb://localhost:27088 /?readPreference=primary&ssl=false' ,
1813
1813
} ,
1814
1814
} ,
1815
1815
'random-connection-4' : {
1816
1816
id : 'random-connection-4' ,
1817
- name : 'localhost:27018 ' ,
1817
+ name : 'localhost:27088 ' ,
1818
1818
storageLocation : 'GLOBAL' ,
1819
1819
secretStorageLocation : SecretStorageLocation . KeytarSecondAttempt ,
1820
1820
connectionOptions : {
1821
1821
connectionString :
1822
- 'mongodb://localhost:27018 /?readPreference=primary&ssl=false' ,
1822
+ 'mongodb://localhost:27088 /?readPreference=primary&ssl=false' ,
1823
1823
} ,
1824
1824
} ,
1825
1825
} as any ;
0 commit comments