test(playbook): avoid live rag in service unit tests
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 2m12s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 2m12s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped
This commit is contained in:
@@ -272,7 +272,11 @@ class TestPlaybookService:
|
||||
severity_range=["P1"],
|
||||
)
|
||||
|
||||
recommendations = await service.get_recommendations(symptoms, top_k=3)
|
||||
recommendations = await service.get_recommendations(
|
||||
symptoms,
|
||||
top_k=3,
|
||||
use_rag=False,
|
||||
)
|
||||
|
||||
assert len(recommendations) == 1
|
||||
assert recommendations[0].playbook.playbook_id == playbook.playbook_id
|
||||
@@ -293,7 +297,11 @@ class TestPlaybookService:
|
||||
affected_services=["api-gateway"],
|
||||
)
|
||||
|
||||
recommendations = await service.get_recommendations(symptoms, top_k=3)
|
||||
recommendations = await service.get_recommendations(
|
||||
symptoms,
|
||||
top_k=3,
|
||||
use_rag=False,
|
||||
)
|
||||
|
||||
# Should be empty or have very low similarity
|
||||
assert len(recommendations) == 0 or recommendations[0].similarity_score < 0.4
|
||||
|
||||
Reference in New Issue
Block a user