File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ UserNameParameter is not null ?
54
54
55
55
private ReferenceExpression ConnectionString =>
56
56
ReferenceExpression . Create (
57
- $ "Server={ SchemeUri } ://{ PrimaryEndpoint . Property ( EndpointProperty . Host ) } :{ PrimaryEndpoint . Property ( EndpointProperty . Port ) } /rpc;User={ UserNameReference } ;Password={ PasswordParameter } ") ;
57
+ $ "Server={ SchemeUri } ://{ PrimaryEndpoint . Property ( EndpointProperty . Host ) } :{ PrimaryEndpoint . Property ( EndpointProperty . Port ) } /rpc;User={ UserNameReference } ;Password=' { PasswordParameter } ' ") ;
58
58
59
59
/// <summary>
60
60
/// Gets the connection string expression for the SurrealDB instance.
Original file line number Diff line number Diff line change @@ -91,8 +91,8 @@ public async Task SurrealServerCreatesConnectionString()
91
91
var connectionStringResource = Assert . Single ( appModel . Resources . OfType < SurrealDbServerResource > ( ) ) ;
92
92
var connectionString = await connectionStringResource . GetConnectionStringAsync ( default ) ;
93
93
94
- Assert . Equal ( "Server=ws://localhost:8000/rpc;User=root;Password=p@ssw0rd1" , connectionString ) ;
95
- Assert . Equal ( "Server=ws://{surreal.bindings.tcp.host}:{surreal.bindings.tcp.port}/rpc;User=root;Password={pass.value}" , connectionStringResource . ConnectionStringExpression . ValueExpression ) ;
94
+ Assert . Equal ( "Server=ws://localhost:8000/rpc;User=root;Password=' p@ssw0rd1' " , connectionString ) ;
95
+ Assert . Equal ( "Server=ws://{surreal.bindings.tcp.host}:{surreal.bindings.tcp.port}/rpc;User=root;Password=' {pass.value}' " , connectionStringResource . ConnectionStringExpression . ValueExpression ) ;
96
96
}
97
97
98
98
[ Fact ]
@@ -116,7 +116,7 @@ public async Task SurrealServerDatabaseCreatesConnectionString()
116
116
var connectionStringResource = ( IResourceWithConnectionString ) surrealResource ;
117
117
var connectionString = await connectionStringResource . GetConnectionStringAsync ( ) ;
118
118
119
- Assert . Equal ( "Server=ws://localhost:8000/rpc;User=root;Password=p@ssw0rd1;Namespace=myns;Database=mydb" , connectionString ) ;
119
+ Assert . Equal ( "Server=ws://localhost:8000/rpc;User=root;Password=' p@ssw0rd1' ;Namespace=myns;Database=mydb" , connectionString ) ;
120
120
Assert . Equal ( "{ns.connectionString};Database=mydb" , connectionStringResource . ConnectionStringExpression . ValueExpression ) ;
121
121
}
122
122
You can’t perform that action at this time.
0 commit comments