Skip to content

Commit

Permalink
Remove logger info tests/integration/test_auth.py
Browse files Browse the repository at this point in the history
Co-authored-by: Chuck Daniels <cjdaniels4@gmail.com>
  • Loading branch information
Sherwin-14 and chuckwondo authored Jul 27, 2024
1 parent 1005dc4 commit 316e0d1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/integration/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,12 @@ def test_auth_can_fetch_s3_credentials(daac):
auth = earthaccess.login(strategy="environment")
assert auth.authenticated
try:
logger.info(f"Testing S3 credentials for {daac['short-name']}")
credentials = earthaccess.get_s3_credentials(daac["short-name"])
except requests.RequestException as e:
logger.error(f"Failed to fetch S3 credentials: {e}")
else:
assert isinstance(credentials, dict)
assert "accessKeyId" in credentials
except Exception as e:
logger.error(
f"An error occured while trying to fetch S3 credentials for {daac['short-name']}: {e}"
)


@pytest.mark.parametrize("location", ({"daac": "podaac"}, {"provider": "pocloud"}))
Expand Down

0 comments on commit 316e0d1

Please sign in to comment.