This commit is contained in:
r8zavetr8v 2024-09-08 01:41:48 +03:00
parent 5a1f062597
commit b7d485fd77

View File

@ -10,48 +10,48 @@ name: "My pipeline" # The name of pipeline
description: "Test pipeline" description: "Test pipeline"
steps: # Steps steps: # Steps
step1: step1:
# The preparatory phase of our pipeline. Here we can perform authorizations and other actions that must # The preparatory phase of our pipeline. Here we can perform authorizations and other actions that must
# be performed BEFORE the main part. # be performed BEFORE the main part.
prepare: prepare:
type: "http_call" # Call type. type: "http_call" # Call type.
expected_codes: [200] # Expected return codes expected_codes: [200] # Expected return codes
# The name of the variable in which the result of this call will be stored. # The name of the variable in which the result of this call will be stored.
# This value will be accessible only in scope of current stop. # This value will be accessible only in scope of current stop.
save_into: "prepare_step1_result" save_into: "prepare_step1_result"
# The name of the variable in which the result of this call will be stored. # The name of the variable in which the result of this call will be stored.
# This value will be accessible globally. # This value will be accessible globally.
global_save_into: "global_variable" global_save_into: "global_variable"
call: # Request configuration call: # Request configuration
target: "http://127.0.0.1:8080/login" # Endpoint target: "http://127.0.0.1:8080/login" # Endpoint
headers: headers:
secret: "xxx" secret: "xxx"
logon-with: "password" logon-with: "password"
method: "POST" method: "POST"
body: |- body: |-
{ {
"login":"admin", "login":"admin",
"password":"password" "password":"password"
} }
repeat: 1000 repeat: 1000
# The main part of the step. The set of requests that will be executed. # The main part of the step. The set of requests that will be executed.
# They will be looped until the repeat number reached # They will be looped until the repeat number reached
shells: shells:
shell1: shell1:
type: "http_call" type: "http_call"
call: call:
target: "http://127.0.0.1:8080/main" target: "http://127.0.0.1:8080/main"
headers: headers:
secret: "xxx" secret: "xxx"
token: "${REGISTRY}.token" ## Accessing prepare step result from registry token: "${REGISTRY}.token" ## Accessing prepare step result from registry
method: "GET" method: "GET"
shell2: shell2:
type: "http_call" type: "http_call"
call: call:
target: "http://127.0.0.1:8080/profile" target: "http://127.0.0.1:8080/profile"
headers: headers:
secret: "xxx" secret: "xxx"
token: "${REGISTRY}.token" ## Accessing prepare step result from registry token: "${REGISTRY}.token" ## Accessing prepare step result from registry
method: "GET" method: "GET"
# ... # ...
``` ```