Skip to content

Commit c3caf97

Browse files
committed
test changes
1 parent b50131e commit c3caf97

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/pytest/test_token_authorization.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ def test_managament_api_with_token():
102102
setup_torchserve()
103103
key = read_key_file("management")
104104
header = {"Authorization": f"Bearer {key}"}
105-
response = requests.get(f"http://localhost:8081/models/resnet18", headers=header)
105+
print(header)
106+
response = requests.get("http://localhost:8081/models/resnet18", headers=header)
106107
time.sleep(5)
107108
print(response.text)
108109
print(key)

ts_scripts/regression_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def run_pytest():
6262
if status != 0:
6363
print("Could not generate gRPC client stubs")
6464
sys.exit(1)
65-
cmd = "python -m pytest -v ./"
65+
cmd = "python -m pytest -v ./test_token_authorization.py" # cmd = "python -m pytest -v ./"
6666
print(f"## In directory: {os.getcwd()} | Executing command: {cmd}")
6767
status = os.system(cmd)
6868
rm_file("*_pb2*.py", True)

0 commit comments

Comments
 (0)