File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ def test_managament_api_with_token():
102
102
setup_torchserve ()
103
103
key = read_key_file ("management" )
104
104
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 )
106
107
time .sleep (5 )
107
108
print (response .text )
108
109
print (key )
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def run_pytest():
62
62
if status != 0 :
63
63
print ("Could not generate gRPC client stubs" )
64
64
sys .exit (1 )
65
- cmd = "python -m pytest -v ./"
65
+ cmd = "python -m pytest -v ./test_token_authorization.py" # cmd = "python -m pytest -v ./ "
66
66
print (f"## In directory: { os .getcwd ()} | Executing command: { cmd } " )
67
67
status = os .system (cmd )
68
68
rm_file ("*_pb2*.py" , True )
You can’t perform that action at this time.
0 commit comments