File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,7 @@ test('smoke test', async (t) => {
46
46
let getDeployment = await client . getDeployment ( createDeploymentOptions . name )
47
47
t . is ( getDeployment . name , createDeploymentOptions . name )
48
48
49
- let getConnectionStringOptions = {
50
- containerIdOrName : createDeploymentOptions . name ,
51
- dbUsername : "user" ,
52
- dbPassword : "password"
53
- }
54
-
55
- let connString = await client . getConnectionString ( getConnectionStringOptions )
56
- console . log ( connString )
49
+ let connString = await client . getConnectionString ( createDeploymentOptions . name )
57
50
t . assert ( connString === `mongodb://user:[email protected] :${ getDeployment . portBindings . port } /?directConnection=true` )
58
51
59
52
// Count deployments after creation
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export declare class Client {
6
6
listDeployments ( ) : Promise < Array < Deployment > >
7
7
deleteDeployment ( deploymentName : string ) : Promise < void >
8
8
getDeployment ( deploymentName : string ) : Promise < Deployment >
9
- getConnectionString ( options : GetConnectionStringOptions ) : Promise < string >
9
+ getConnectionString ( deploymentName : string ) : Promise < string >
10
10
getDeploymentId ( clusterIdOrName : string ) : Promise < string >
11
11
}
12
12
@@ -68,12 +68,6 @@ export interface Deployment {
68
68
telemetryBaseUrl ?: string
69
69
}
70
70
71
- export interface GetConnectionStringOptions {
72
- containerIdOrName : string
73
- dbUsername ?: string
74
- dbPassword ?: string
75
- }
76
-
77
71
export interface MongoDbPortBinding {
78
72
type : BindingType
79
73
ip : string
You can’t perform that action at this time.
0 commit comments