mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 06:28:05 +08:00
Merge branch 'feat/tidb-endpoint' of github.com:langgenius/dify into feat/tidb-endpoint
This commit is contained in:
@ -184,8 +184,13 @@ class TestBatchCreateEdgeCases:
|
||||
mock_redis.get.return_value = None
|
||||
|
||||
result = TidbService.batch_create_tidb_serverless_cluster(
|
||||
batch_size=1, project_id="proj", api_url="url", iam_url="iam",
|
||||
public_key="pub", private_key="priv", region="us-east-1",
|
||||
batch_size=1,
|
||||
project_id="proj",
|
||||
api_url="url",
|
||||
iam_url="iam",
|
||||
public_key="pub",
|
||||
private_key="priv",
|
||||
region="us-east-1",
|
||||
)
|
||||
|
||||
assert len(result) == 0
|
||||
@ -203,6 +208,11 @@ class TestBatchCreateEdgeCases:
|
||||
|
||||
with pytest.raises(Exception, match="HTTP 500"):
|
||||
TidbService.batch_create_tidb_serverless_cluster(
|
||||
batch_size=1, project_id="proj", api_url="url", iam_url="iam",
|
||||
public_key="pub", private_key="priv", region="us-east-1",
|
||||
batch_size=1,
|
||||
project_id="proj",
|
||||
api_url="url",
|
||||
iam_url="iam",
|
||||
public_key="pub",
|
||||
private_key="priv",
|
||||
region="us-east-1",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user