Skip to content

Commit

Permalink
Use nosec comments for fake AWS credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
richford committed Sep 7, 2020
1 parent e79f511 commit bfb173a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions cloudknot/tests/test_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def deco(f):
def aws_credentials():
"""Mocked AWS Credentials for moto."""
os.environ["AWS_ACCESS_KEY_ID"] = "testing"
os.environ["AWS_SECRET_ACCESS_KEY"] = "testing"
os.environ["AWS_SECURITY_TOKEN"] = "testing"
os.environ["AWS_SESSION_TOKEN"] = "testing"
os.environ["AWS_SECRET_ACCESS_KEY"] = "testing" # nosec
os.environ["AWS_SECURITY_TOKEN"] = "testing" # nosec
os.environ["AWS_SESSION_TOKEN"] = "testing" # nosec


mock_all = composed(
Expand Down
6 changes: 3 additions & 3 deletions cloudknot/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def deco(f):
def aws_credentials():
"""Mocked AWS Credentials for moto."""
os.environ["AWS_ACCESS_KEY_ID"] = "testing"
os.environ["AWS_SECRET_ACCESS_KEY"] = "testing"
os.environ["AWS_SECURITY_TOKEN"] = "testing"
os.environ["AWS_SESSION_TOKEN"] = "testing"
os.environ["AWS_SECRET_ACCESS_KEY"] = "testing" # nosec
os.environ["AWS_SECURITY_TOKEN"] = "testing" # nosec
os.environ["AWS_SESSION_TOKEN"] = "testing" # nosec


mock_all = composed(
Expand Down
6 changes: 3 additions & 3 deletions cloudknot/tests/test_docker_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def deco(f):
def aws_credentials():
"""Mocked AWS Credentials for moto."""
os.environ["AWS_ACCESS_KEY_ID"] = "testing"
os.environ["AWS_SECRET_ACCESS_KEY"] = "testing"
os.environ["AWS_SECURITY_TOKEN"] = "testing"
os.environ["AWS_SESSION_TOKEN"] = "testing"
os.environ["AWS_SECRET_ACCESS_KEY"] = "testing" # nosec
os.environ["AWS_SECURITY_TOKEN"] = "testing" # nosec
os.environ["AWS_SESSION_TOKEN"] = "testing" # nosec


mock_all = composed(
Expand Down
6 changes: 3 additions & 3 deletions cloudknot/tests/test_knot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ def deco(f):
def aws_credentials():
"""Mocked AWS Credentials for moto."""
os.environ["AWS_ACCESS_KEY_ID"] = "testing"
os.environ["AWS_SECRET_ACCESS_KEY"] = "testing"
os.environ["AWS_SECURITY_TOKEN"] = "testing"
os.environ["AWS_SESSION_TOKEN"] = "testing"
os.environ["AWS_SECRET_ACCESS_KEY"] = "testing" # nosec
os.environ["AWS_SECURITY_TOKEN"] = "testing" # nosec
os.environ["AWS_SESSION_TOKEN"] = "testing" # nosec


mock_all = composed(
Expand Down
6 changes: 3 additions & 3 deletions cloudknot/tests/test_pars.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def deco(f):
def aws_credentials():
"""Mocked AWS Credentials for moto."""
os.environ["AWS_ACCESS_KEY_ID"] = "testing"
os.environ["AWS_SECRET_ACCESS_KEY"] = "testing"
os.environ["AWS_SECURITY_TOKEN"] = "testing"
os.environ["AWS_SESSION_TOKEN"] = "testing"
os.environ["AWS_SECRET_ACCESS_KEY"] = "testing" # nosec
os.environ["AWS_SECURITY_TOKEN"] = "testing" # nosec
os.environ["AWS_SESSION_TOKEN"] = "testing" # nosec


mock_all = composed(
Expand Down

0 comments on commit bfb173a

Please sign in to comment.