mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
test: drop test_deployed_proxy_keygen.py and its workflow entry
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
349223fd8b
commit
cb4d4e9bfd
2 changed files with 0 additions and 64 deletions
1
.github/workflows/test-unit-proxy-db.yml
vendored
1
.github/workflows/test-unit-proxy-db.yml
vendored
|
|
@ -94,7 +94,6 @@ jobs:
|
|||
tests/proxy_unit_tests/test_jwt_key_mapping.py
|
||||
tests/proxy_unit_tests/test_proxy_custom_auth.py
|
||||
tests/proxy_unit_tests/test_key_generate_dynamodb.py
|
||||
tests/proxy_unit_tests/test_deployed_proxy_keygen.py
|
||||
workers: 4
|
||||
dist: loadscope
|
||||
timeout: 15
|
||||
|
|
|
|||
|
|
@ -1,63 +0,0 @@
|
|||
# import sys, os, time
|
||||
# import traceback
|
||||
# from dotenv import load_dotenv
|
||||
|
||||
# load_dotenv()
|
||||
# import os, io
|
||||
|
||||
# # this file is to test litellm/proxy
|
||||
|
||||
# sys.path.insert(
|
||||
# 0, os.path.abspath("../..")
|
||||
# ) # Adds the parent directory to the system path
|
||||
# import pytest, logging, requests
|
||||
# import litellm
|
||||
# from litellm import embedding, completion, completion_cost, Timeout
|
||||
# from litellm import RateLimitError
|
||||
|
||||
|
||||
# def test_add_new_key():
|
||||
# max_retries = 3
|
||||
# retry_delay = 1 # seconds
|
||||
|
||||
# for retry in range(max_retries + 1):
|
||||
# try:
|
||||
# # Your test data
|
||||
# test_data = {
|
||||
# "models": ["gpt-3.5-turbo", "gpt-4", "claude-2", "azure-model"],
|
||||
# "aliases": {"mistral-7b": "gpt-3.5-turbo"},
|
||||
# "duration": "20m",
|
||||
# }
|
||||
# print("testing proxy server")
|
||||
|
||||
# # Your bearer token
|
||||
# token = os.getenv("PROXY_MASTER_KEY")
|
||||
# headers = {"Authorization": f"Bearer {token}"}
|
||||
|
||||
# staging_endpoint = "https://litellm-litellm-pr-1376.up.railway.app"
|
||||
# main_endpoint = "https://litellm-staging.up.railway.app"
|
||||
|
||||
# # Make a request to the staging endpoint
|
||||
# response = requests.post(
|
||||
# main_endpoint + "/key/generate", json=test_data, headers=headers
|
||||
# )
|
||||
|
||||
# print(f"response: {response.text}")
|
||||
|
||||
# if response.status_code == 200:
|
||||
# result = response.json()
|
||||
# break # Successful response, exit the loop
|
||||
# elif response.status_code == 503 and retry < max_retries:
|
||||
# print(
|
||||
# f"Retrying in {retry_delay} seconds... (Retry {retry + 1}/{max_retries})"
|
||||
# )
|
||||
# time.sleep(retry_delay)
|
||||
# else:
|
||||
# assert False, f"Unexpected response status code: {response.status_code}"
|
||||
|
||||
# except Exception as e:
|
||||
# print(traceback.format_exc())
|
||||
# pytest.fail(f"An error occurred {e}")
|
||||
|
||||
|
||||
# test_add_new_key()
|
||||
Loading…
Add table
Reference in a new issue