Skip to content

Commit

Permalink
chore: e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sangjanai committed Dec 27, 2024
1 parent 26daec9 commit 5df12cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions engine/e2e-test/test_api_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ def test_engines_install_llamacpp_specific_version_and_null_variant(self):
# engines uninstall
@pytest.mark.asyncio
async def test_engines_install_uninstall_llamacpp_should_be_successful(self):
data = {"version": "v0.1.43"}
response = requests.post("http://localhost:3928/v1/engines/llama-cpp/install", json=data)
response = requests.post("http://localhost:3928/v1/engines/llama-cpp/install")
assert response.status_code == 200
await wait_for_websocket_download_success_event(timeout=None)
time.sleep(30)
Expand Down
3 changes: 1 addition & 2 deletions engine/e2e-test/test_api_engine_install_nightly.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ def setup_and_teardown(self):
stop_server()

def test_engines_install_llamacpp_should_be_successful(self):
data = {"version": "v0.1.43"}
response = requests.post("http://localhost:3928/v1/engines/llama-cpp/install", json=data)
response = requests.post("http://localhost:3928/v1/engines/llama-cpp/install")
assert response.status_code == 200

def test_engines_install_llamacpp_specific_version_and_variant(self):
Expand Down
4 changes: 1 addition & 3 deletions engine/e2e-test/test_api_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ async def test_model_pull_with_direct_url_should_have_desired_name(self):
@pytest.mark.asyncio
async def test_models_start_stop_should_be_successful(self):
print("Install engine")
# TODO(sang) Remove version after marking 0.1.43 as stable
data = {"version": "v0.1.43"}
response = requests.post("http://localhost:3928/v1/engines/llama-cpp/install", json=data)
response = requests.post("http://localhost:3928/v1/engines/llama-cpp/install")
assert response.status_code == 200
await wait_for_websocket_download_success_event(timeout=None)
# TODO(sang) need to fix for cuda download
Expand Down
3 changes: 1 addition & 2 deletions engine/e2e-test/test_cli_engine_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ def setup_and_teardown(self):

@pytest.mark.asyncio
async def test_engines_uninstall_llamacpp_should_be_successfully(self):
data = {"version": "v0.1.43"}
response = requests.post("http://localhost:3928/v1/engines/llama-cpp/install", json=data)
response = requests.post("http://localhost:3928/v1/engines/llama-cpp/install")
await wait_for_websocket_download_success_event(timeout=None)
exit_code, output, error = run(
"Uninstall engine", ["engines", "uninstall", "llama-cpp"]
Expand Down

0 comments on commit 5df12cf

Please sign in to comment.