forked from mirrors/kingfisher
changes in response to code review
This commit is contained in:
parent
332f2c59f9
commit
96f1784953
4 changed files with 4 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -26,6 +26,5 @@ rules:
|
|||
- report_response: true
|
||||
- type: StatusMatch
|
||||
status: [200]
|
||||
expected: ["application/json"]
|
||||
- type: WordMatch
|
||||
words: ["id", "versionId"]
|
||||
|
|
|
|||
|
|
@ -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"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue