Skip to content

Commit

Permalink
Fix admin secret error
Browse files Browse the repository at this point in the history
the local, non-cli set, session had stopped receiving the header
  • Loading branch information
Navarro-Jonathan committed Aug 3, 2023
1 parent dddea1f commit f9c2eee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration_tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
AUTH_METHOD = AuthMethod.AERIE_NATIVE
USERNAME = ""
PASSWORD = ""
# This should only ever be set to the admin secret for a local instance of aerie
HASURA_ADMIN_SECRET = os.environ.get("HASURA_GRAPHQL_ADMIN_SECRET")

session = AerieHostSession.session_helper(
Expand All @@ -34,6 +35,7 @@
USERNAME,
PASSWORD
)
session.session.headers["x-hasura-admin-secret"] = HASURA_ADMIN_SECRET
client = AerieClient(session)

test_dir = os.path.dirname(os.path.abspath(__file__))
Expand Down

0 comments on commit f9c2eee

Please sign in to comment.