Skip to content

Commit b50131e

Browse files
committed
debug messages
1 parent 6f61c5a commit b50131e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/pytest/test_token_authorization.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ def get_plugin_jar():
2121
os.chdir(plugin_folder)
2222
subprocess.run(["./gradlew", "formatJava"])
2323
result = subprocess.run(["./gradlew", "build"])
24-
print("build output 2:")
25-
print(result.stdout)
26-
2724
jar_path = os.path.join(plugin_folder, "endpoints/build/libs")
2825
jar_file = [file for file in os.listdir(jar_path) if file.endswith(".jar")]
2926
if jar_file:
@@ -108,6 +105,7 @@ def test_managament_api_with_token():
108105
response = requests.get(f"http://localhost:8081/models/resnet18", headers=header)
109106
time.sleep(5)
110107
print(response.text)
108+
print(key)
111109

112110
assert response.status_code == 200, "Token check failed"
113111

@@ -142,6 +140,7 @@ def test_inference_api_with_token():
142140
)
143141
time.sleep(5)
144142
print(response.text)
143+
print(key)
145144

146145
assert response.status_code == 200, "Token check failed"
147146

@@ -174,6 +173,7 @@ def test_token_inference_api():
174173
)
175174
time.sleep(5)
176175
print(response.text)
176+
print(token_key)
177177

178178
assert response.status_code == 200, "Token check failed"
179179
assert inference_key != read_key_file("inference"), "Key file not updated"
@@ -190,6 +190,8 @@ def test_token_management_api():
190190
url="http://localhost:8081/token", params=params, headers=header
191191
)
192192
time.sleep(5)
193+
print(response.text)
194+
print(token_key)
193195

194196
assert management_key != read_key_file("management"), "Key file not updated"
195197
assert response.status_code == 200, "Token check failed"

0 commit comments

Comments
 (0)