Skip to content

Commit

Permalink
Remove env::set_var usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai committed Dec 30, 2024
1 parent 026327f commit 5d3f3b3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test-helpers/src/docker_compose.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use docker_compose_runner::*;
use std::{env, time::Duration};
use std::time::Duration;

pub use docker_compose_runner::DockerCompose;

Expand All @@ -12,11 +12,6 @@ pub fn docker_compose(file_path: &str) -> DockerCompose {

/// Creates a new DockerCompose running an instance of moto the AWS mocking server
pub fn new_moto() -> DockerCompose {
// Overwrite any existing AWS credential env vars belonging to the user with dummy values to be sure that
// we wont hit their real AWS account in the case of a bug in shotover or the test
env::set_var("AWS_ACCESS_KEY_ID", "dummy-access-key");
env::set_var("AWS_SECRET_ACCESS_KEY", "dummy-access-key-secret");

docker_compose("tests/transforms/docker-compose-moto.yaml")
}

Expand Down

0 comments on commit 5d3f3b3

Please sign in to comment.