30 lines
757 B
YAML
30 lines
757 B
YAML
#!api-testing
|
|
# yaml-language-server: $schema=https://linuxsuren.github.io/api-testing/api-testing-schema.json
|
|
# https://docs.gitlab.com/ee/api/api_resources.html
|
|
name: atest
|
|
api: |
|
|
{{default "http://localhost:8080" (env "SERVER")}}/server.Runner
|
|
param:
|
|
server: |
|
|
{{default "http://localhost:8080" (env "SERVER")}}
|
|
items:
|
|
- name: healthz
|
|
before:
|
|
items:
|
|
- httpReady("{{.param.server}}/healthz", 6000)
|
|
request:
|
|
api: |
|
|
{{default "http://localhost:8080" (env "SERVER")}}/healthz
|
|
- name: CreateStore
|
|
request:
|
|
api: /CreateStore
|
|
method: POST
|
|
body: |
|
|
{
|
|
"name": "git",
|
|
"url": "https://gitee.com/linuxsuren/api-testing-hub",
|
|
"kind": {
|
|
"name": "atest-store-git"
|
|
}
|
|
}
|