Skip to content

Commit

Permalink
feat: make default password publicly available
Browse files Browse the repository at this point in the history
  • Loading branch information
DDtKey authored Sep 25, 2024
1 parent a44e7d3 commit 24d4984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mssql_server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub struct MssqlServer {
impl MssqlServer {
const NAME: &'static str = "mcr.microsoft.com/mssql/server";
const TAG: &'static str = "2022-CU14-ubuntu-22.04";
const DEFAULT_SA_PASSWORD: &'static str = "yourStrong(!)Password";
pub const DEFAULT_SA_PASSWORD: &'static str = "yourStrong(!)Password";

/// Sets the password as `MSSQL_SA_PASSWORD`.
pub fn with_sa_password(mut self, password: impl Into<String>) -> Self {
Expand Down Expand Up @@ -152,7 +152,7 @@ mod tests {
let config = new_config(
container.get_host().await?,
container.get_host_port_ipv4(1433).await?,
"yourStrongPassword123!",
MssqlServer::DEFAULT_SA_PASSWORD,
);
let mut client = get_mssql_client(config).await?;

Expand Down

0 comments on commit 24d4984

Please sign in to comment.