changes in response to code review

This commit is contained in:
Mick Grove 2025-08-27 15:43:31 -07:00
commit 96f1784953
4 changed files with 4 additions and 7 deletions

View file

@ -17,7 +17,7 @@ rules:
method: GET
url: "https://api.cerebras.ai/v1/models"
headers:
Authorization: "Bearer {{TOKEN}}"
Authorization: "Bearer {{ TOKEN }}"
response_matcher:
- report_response: true
- type: StatusMatch

View file

@ -17,7 +17,7 @@ rules:
method: GET
url: "https://api.fireworks.ai/inference/v1/models"
headers:
Authorization: "Bearer {{TOKEN}}"
Authorization: "Bearer {{ TOKEN }}"
response_matcher:
- report_response: true
- type: StatusMatch

View file

@ -26,6 +26,5 @@ rules:
- report_response: true
- type: StatusMatch
status: [200]
expected: ["application/json"]
- type: WordMatch
words: ["id", "versionId"]

View file

@ -5,8 +5,6 @@ rules:
(?xi)
\b
(?:wandb|weightsandbiases)
(?:.|[\n\r]){0,32}?
(?:SECRET|PRIVATE|ACCESS|KEY|TOKEN)
(?:.|[\n\r]){0,16}?
(
[a-f0-9]{40}
@ -28,10 +26,10 @@ rules:
Authorization: "Basic {{ 'api:' | append: TOKEN | b64enc }}"
Content-Type: "application/json"
body: |
{"query":"query { viewer { id } }"}
{"query":"query { viewer { email username } }"}
response_matcher:
- report_response: true
- type: JsonValid
- type: WordMatch
words:
- '"id"'
- '"username"'