Add env for bdd

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:20:51 -08:00
parent 52870c4bdc
commit 582f0bc067
3 changed files with 18 additions and 6 deletions
+3 -5
View File
@@ -10,11 +10,9 @@ logging.getLogger("httpx").setLevel(logging.DEBUG)
load_dotenv()
BASE_URL = os.environ.get("INFISICAL_API_URL", "http://localhost:8080")
PROJECT_ID = os.environ.get("PROJECT_ID", "c051e74c-48a7-4724-832c-d5b496698546")
CERT_CA_ID = os.environ.get("CERT_CA_ID", "2f0d9820-e5a8-48bb-aac8-deed9d868a1e")
CERT_TEMPLATE_ID = os.environ.get(
"CERT_TEMPLATE_ID", "4dbf6bb0-6e86-4ee6-8550-9171428c8e82"
)
PROJECT_ID = os.environ.get("PROJECT_ID")
CERT_CA_ID = os.environ.get("CERT_CA_ID")
CERT_TEMPLATE_ID = os.environ.get("CERT_TEMPLATE_ID")
AUTH_TOKEN = os.environ.get("INFISICAL_TOKEN")
+1 -1
View File
@@ -137,7 +137,7 @@ def step_impl(context: Context, profile_var: str):
# TODO: Fixed value for now, just to make test much easier,
# we should call infisical API to create such profile instead
# in the future
profile_id = "9fda66ee-03f0-4b7c-95ad-542feff77177"
profile_id = os.getenv("PROFILE_ID")
kid = profile_id
secret = os.getenv("EAB_SECRET")
context.vars[profile_var] = AcmeProfile(