Skip to content

Commit

Permalink
fix test references
Browse files Browse the repository at this point in the history
  • Loading branch information
Franr committed Sep 8, 2024
1 parent 7bdefe5 commit 23f11e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ classifiers = [
packages = [
{ include = "leverage" },
{ include = "leverage/modules" },
{ include = "leverage/containers" },
{ include = "leverage/scripts" }
{ include = "leverage/containers" }
]

[tool.poetry.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_containers/test_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_sso_login(mocked_new_tab, aws_container, fake_os_user, propagate_logs,

container_args = aws_container.client.api.create_container.call_args_list[0][1]
# make sure we: point to the correct script
assert container_args["command"] == "/opt/scripts/aws-sso/aws-sso-login.sh"
assert container_args["command"] == "/home/leverage/scripts/aws-sso/aws-sso-login.sh"
# the browser tab points to the correct code and the correct region
assert mocked_new_tab.call_args[0][0] == "https://device.sso.us-east-1.amazonaws.com/?user_code=TEST-CODE"
# and the fallback method is printed
Expand Down
2 changes: 1 addition & 1 deletion tests/test_containers/test_kubectl.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_start_shell_mfa(kubectl_container):

# we want a shell, so -> /bin/bash with no entrypoint
assert container_args["command"] == "/bin/bash"
assert container_args["entrypoint"] == "/opt/scripts/aws-mfa/aws-mfa-entrypoint.sh -- "
assert container_args["entrypoint"] == "/home/leverage/scripts/aws-mfa/aws-mfa-entrypoint.sh -- "

# make sure we are pointing to the right AWS credentials: /.aws/ folder for MFA
assert container_args["environment"]["AWS_CONFIG_FILE"] == "/home/leverage/.aws/test/config"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_containers/test_terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_auth_method_mfa_enabled(terraform_container):
terraform_container.sso_enabled = False
terraform_container.mfa_enabled = True

assert terraform_container.auth_method() == "/opt/scripts/aws-mfa/aws-mfa-entrypoint.sh -- "
assert terraform_container.auth_method() == "/home/leverage/scripts/aws-mfa/aws-mfa-entrypoint.sh -- "


def test_auth_method_else(terraform_container):
Expand Down

0 comments on commit 23f11e1

Please sign in to comment.