@@ -21,9 +21,6 @@ def get_plugin_jar():
21
21
os .chdir (plugin_folder )
22
22
subprocess .run (["./gradlew" , "formatJava" ])
23
23
result = subprocess .run (["./gradlew" , "build" ])
24
- print ("build output 2:" )
25
- print (result .stdout )
26
-
27
24
jar_path = os .path .join (plugin_folder , "endpoints/build/libs" )
28
25
jar_file = [file for file in os .listdir (jar_path ) if file .endswith (".jar" )]
29
26
if jar_file :
@@ -108,6 +105,7 @@ def test_managament_api_with_token():
108
105
response = requests .get (f"http://localhost:8081/models/resnet18" , headers = header )
109
106
time .sleep (5 )
110
107
print (response .text )
108
+ print (key )
111
109
112
110
assert response .status_code == 200 , "Token check failed"
113
111
@@ -142,6 +140,7 @@ def test_inference_api_with_token():
142
140
)
143
141
time .sleep (5 )
144
142
print (response .text )
143
+ print (key )
145
144
146
145
assert response .status_code == 200 , "Token check failed"
147
146
@@ -174,6 +173,7 @@ def test_token_inference_api():
174
173
)
175
174
time .sleep (5 )
176
175
print (response .text )
176
+ print (token_key )
177
177
178
178
assert response .status_code == 200 , "Token check failed"
179
179
assert inference_key != read_key_file ("inference" ), "Key file not updated"
@@ -190,6 +190,8 @@ def test_token_management_api():
190
190
url = "http://localhost:8081/token" , params = params , headers = header
191
191
)
192
192
time .sleep (5 )
193
+ print (response .text )
194
+ print (token_key )
193
195
194
196
assert management_key != read_key_file ("management" ), "Key file not updated"
195
197
assert response .status_code == 200 , "Token check failed"
0 commit comments