-
Notifications
You must be signed in to change notification settings - Fork 52
LCORE-816: Add new E2E tests for shields endpoint #682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -37,7 +37,7 @@ Feature: Info tests | |||||
| And The body of the response has proper model structure | ||||||
|
|
||||||
|
|
||||||
| Scenario: Check if models endpoint is working | ||||||
| Scenario: Check if models endpoint reports error when llama-stack in unreachable | ||||||
| Given The system is in default state | ||||||
| And The llama-stack connection is disrupted | ||||||
| When I access REST API endpoint "models" using HTTP GET method | ||||||
|
|
@@ -47,6 +47,22 @@ Feature: Info tests | |||||
| {"detail": {"response": "Unable to connect to Llama Stack", "cause": "Connection error."}} | ||||||
| """ | ||||||
|
|
||||||
| Scenario: Check if shields endpoint is working | ||||||
| Given The system is in default state | ||||||
| When I access REST API endpoint "shields" using HTTP GET method | ||||||
| Then The status code of the response is 200 | ||||||
| And The body of the response has proper shield structure | ||||||
|
|
||||||
|
|
||||||
| Scenario: Check if shields endpoint reports error when llama-stack in unreachable | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix grammar error in scenario title. The scenario title contains the same grammar error: "llama-stack in unreachable" should be "llama-stack is unreachable". Apply this diff: - Scenario: Check if shields endpoint reports error when llama-stack in unreachable
+ Scenario: Check if shields endpoint reports error when llama-stack is unreachable📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| Given The system is in default state | ||||||
| And The llama-stack connection is disrupted | ||||||
| When I access REST API endpoint "shields" using HTTP GET method | ||||||
| Then The status code of the response is 500 | ||||||
| And The body of the response is the following | ||||||
| """ | ||||||
| {"detail": {"response": "Unable to connect to Llama Stack", "cause": "Connection error."}} | ||||||
| """ | ||||||
|
|
||||||
| Scenario: Check if metrics endpoint is working | ||||||
| Given The system is in default state | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix grammar error in scenario title.
The scenario title contains a grammar error: "llama-stack in unreachable" should be "llama-stack is unreachable".
Apply this diff:
📝 Committable suggestion
🤖 Prompt for AI Agents