Skip to content

Commit

Permalink
test(mssql): correct password usage
Browse files Browse the repository at this point in the history
  • Loading branch information
DDtKey committed Sep 25, 2024
1 parent 1c29a89 commit 361f08b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/mssql_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + 'static>> {
config.port(container.get_host_port_ipv4(1433).await?);
config.authentication(tiberius::AuthMethod::sql_server(
"sa",
"yourStrong(!)Password",
MssqlServer::DEFAULT_SA_PASSWORD,
));
config.trust_cert();

Expand Down
6 changes: 3 additions & 3 deletions src/mssql_server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl Image for MssqlServer {
mod tests {
use std::error;

use testcontainers::{runners::AsyncRunner, ImageExt};
use testcontainers::runners::AsyncRunner;
use tiberius::{AuthMethod, Client, Config};
use tokio::net::TcpStream;
use tokio_util::compat::{Compat, TokioAsyncWriteCompatExt};
Expand All @@ -131,7 +131,7 @@ mod tests {
let config = new_config(
container.get_host().await?,
container.get_host_port_ipv4(1433).await?,
"Strong@Passw0rd",
MssqlServer::DEFAULT_SA_PASSWORD,
);
let mut client = get_mssql_client(config).await?;

Expand All @@ -152,7 +152,7 @@ mod tests {
let config = new_config(
container.get_host().await?,
container.get_host_port_ipv4(1433).await?,
MssqlServer::DEFAULT_SA_PASSWORD,
"yourStrongPassword123!",
);
let mut client = get_mssql_client(config).await?;

Expand Down

0 comments on commit 361f08b

Please sign in to comment.