File tree Expand file tree Collapse file tree 6 files changed +5
-68
lines changed
Expand file tree Collapse file tree 6 files changed +5
-68
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ crate-type = ["cdylib"]
1010
1111[dependencies ]
1212anyhow = " 1.0.99"
13- atlas-local = { git = " https://github.com/mongodb/atlas-local-lib.git" , rev = " 0cc744d3af8b39c5db674d6d8d227c1f453536b5 " }
13+ atlas-local = { git = " https://github.com/mongodb/atlas-local-lib.git" , rev = " 532d5f3c52788cb14f746e7b10edb3ce33dad89e " }
1414bollard = " 0.19.2"
1515napi = { version = " ^3.3.0" , features = [" async" , " anyhow" ] }
1616napi-derive = " ^3.2.5"
Original file line number Diff line number Diff line change @@ -46,10 +46,7 @@ test('smoke test', async (t) => {
4646 let getDeployment = await client . getDeployment ( createDeploymentOptions . name )
4747 t . is ( getDeployment . name , createDeploymentOptions . name )
4848
49- let getConnectionStringOptions = {
50- containerIdOrName : createDeploymentOptions . name ,
51- }
52- let connString = await client . getConnectionString ( getConnectionStringOptions )
49+ let connString = await client . getConnectionString ( createDeploymentOptions . name )
5350 t . assert ( connString === `mongodb://127.0.0.1:${ getDeployment . portBindings . port } /?directConnection=true` )
5451
5552 // Count deployments after creation
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export declare class Client {
66 listDeployments ( ) : Promise < Array < Deployment > >
77 deleteDeployment ( deploymentName : string ) : Promise < void >
88 getDeployment ( deploymentName : string ) : Promise < Deployment >
9- getConnectionString ( options : GetConnectionStringOptions ) : Promise < string >
9+ getConnectionString ( deploymentName : string ) : Promise < string >
1010 getDeploymentId ( clusterIdOrName : string ) : Promise < string >
1111}
1212
@@ -68,12 +68,6 @@ export interface Deployment {
6868 telemetryBaseUrl ?: string
6969}
7070
71- export interface GetConnectionStringOptions {
72- containerIdOrName : string
73- dbUsername ?: string
74- dbPassword ?: string
75- }
76-
7771export interface MongoDbPortBinding {
7872 type : BindingType
7973 ip : string
Original file line number Diff line number Diff line change @@ -71,14 +71,10 @@ impl Client {
7171 }
7272
7373 #[ napi]
74- pub async fn get_connection_string (
75- & self ,
76- options : crate :: models:: get_connection_string:: GetConnectionStringOptions ,
77- ) -> Result < String > {
78- let options: atlas_local:: models:: GetConnectionStringOptions = options. into ( ) ;
74+ pub async fn get_connection_string ( & self , deployment_name : String ) -> Result < String > {
7975 self
8076 . client
81- . get_connection_string ( options )
77+ . get_connection_string ( deployment_name )
8278 . await
8379 . context ( "get connection string" )
8480 }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11pub mod create_deployment;
2- pub mod get_connection_string;
32pub mod list_deployments;
You can’t perform that action at this time.
0 commit comments