Skip to content

Instantly share code, notes, and snippets.

@tatsuya0429
Last active June 11, 2023 10:32
Show Gist options
  • Save tatsuya0429/0dc66fb59ac2aafc4dcc4fffaad134f4 to your computer and use it in GitHub Desktop.
Save tatsuya0429/0dc66fb59ac2aafc4dcc4fffaad134f4 to your computer and use it in GitHub Desktop.
runn specの定義ファイル
#runbook: {
desc?: string
runners?: #runners
vars?: #vars
steps: #steps
debug?: bool
interval?: string
"if"?: string
skipTest?: bool
loop?: #loop
concurrency?: string
force?: bool
}
#runners: [string]: string | #httpRunner | #grpcRunner | #sshRunner
#vars: [string]: _
#steps: #stepMap | #stepList
#stepMap: [string]: #step
#stepList: [...#step]
#step: {
desc?: string
test?: _
[string]?: #path
}
#path: {
get?: #operation
put?: #operation
post?: #operation
delete?: #operation
options?: #operation
}
#operation: {
headers: [string]: string
body: [string]: _
}
#loop: {
count?: string
interval?: string
minInterval?: string
maxInterval?: string
jitter?: float
multiplier?: float
until: string
}
#httpRunner: {
endpoint: string
openapi3?: string
skipValidateRequest?: bool
skipValidateResponse?: bool
notFollowRedirect?: bool
multipartBoundary?: string
cacert?: string
cert?: string
key?: string
skipVerify?: bool
}
#grpcRunner: {
addr: string
tls?: bool
cacert?: string
cert?: string
key?: string
skipVerify?: bool
importPaths: [...string]
protos: [...string]
}
#sshRunner: {
sshConfig?: string
host?: string
hostname?: string
user?: string
port?: int
identityFile?: string
identityKey?: string
keepSession?: bool
localForward?: string
keyboardInteractive?: [...#sshAnswer]
}
#sshAnswer: {
match: string
answer: string
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment