Skip to content

Commit

Permalink
[Test Proxy] Restore PROXY_URL setting functionality via .env (Azure#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mccoyp authored Apr 18, 2023
1 parent 6efd7b6 commit 571cbd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/azure-sdk-tools/devtools_testutils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
# --------------------------------------------------------------------------
import os

from dotenv import load_dotenv, find_dotenv

load_dotenv(find_dotenv())

PROXY_URL = os.getenv("PROXY_URL", "https://localhost:5001").rstrip("/")
TEST_SETTING_FILENAME = "testsettings_local.cfg"
3 changes: 3 additions & 0 deletions tools/azure-sdk-tools/devtools_testutils/proxy_startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import zipfile

import certifi
from dotenv import load_dotenv, find_dotenv
import pytest
import subprocess
from urllib3 import PoolManager, Retry
Expand All @@ -28,6 +29,8 @@
from .sanitizers import add_remove_header_sanitizer, set_custom_default_matcher


load_dotenv(find_dotenv())

_LOGGER = logging.getLogger()

CONTAINER_STARTUP_TIMEOUT = 60
Expand Down

0 comments on commit 571cbd3

Please sign in to comment.