From 1746b45d8a353eda5239a510a9ea15429e3288f2 Mon Sep 17 00:00:00 2001 From: Matteo Pace Date: Sat, 11 Nov 2023 10:03:19 +0100 Subject: [PATCH] fix: descriptions for v1.0.0 --- types/types.go | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/types/types.go b/types/types.go index 343ff51..5f11bc5 100644 --- a/types/types.go +++ b/types/types.go @@ -177,70 +177,71 @@ type Input struct { DestAddr *string `yaml:"dest_addr,omitempty" koanf:"dest_addr,omitempty"` // description: | - // Port allows you to declare which port on the destination host the tests should connect to. + // Port allows you to declare which port on the destination host the test should connect to. // examples: // - name: Port // value: 80 Port *int `yaml:"port,omitempty" koanf:"port,omitempty"` // description: | - // Protocol allows you to declare which port on the destination host the tests should connect to. + // Protocol allows you to declare which protocol the tests should use to send the request. // examples: // - name: Protocol // value: "\"http\"" Protocol *string `yaml:"protocol,omitempty" koanf:"protocol,omitempty"` // description: | - // URI allows you to declare which port on the destination host the tests should connect to. + // URI allows you to declare the URI the test should use to send the request. // examples: // - name: URI // value: "\"/get?hello=world\"" URI *string `yaml:"uri,omitempty" koanf:"uri,omitempty"` // description: | - // Version it the HTTP version used. + // Version allows you to declare the HTTP version the test should use to send the request. // examples: // - name: Version // value: "\"1.1\"" Version *string `yaml:"version,omitempty" koanf:"version,omitempty"` // description: | - // Method allows you to declare which port on the destination host the tests should connect to. + // Method allows you to declare the HTTP method the test should use. // examples: // - name: Method // value: "\"GET\"" Method *string `yaml:"method,omitempty" koanf:"method,omitempty"` // description: | - // Method allows you to declare which port on the destination host the tests should connect to. + // Method allows you to declare headers that the test should send. // examples: // - name: Headers // value: exampleHeaders Headers map[string]string `yaml:"headers,omitempty" koanf:"headers,omitempty"` // description: | - // Data allows you to declare which port on the destination host the tests should connect to. + // Data allows you to declare the paylaod that the test should send. // examples: // - name: Data // value: "\"Bibitti bopi\"" Data *string `yaml:"data,omitempty" koanf:"data,omitempty"` // description: | - // SaveCookie allows you to declare which port on the destination host the tests should connect to. + // SaveCookie allows you to automatically provide cookies if there are multiple stages and save cookie is set // examples: // - name: SaveCookie // value: 80 SaveCookie bool `yaml:"save_cookie,omitempty" koanf:"save_cookie,omitempty"` // description: | - // StopMagic allows you to declare which port on the destination host the tests should connect to. + // StopMagic blocks the test framework to automatically fill the request with Content-Type and Connection headers. // examples: // - name: StopMagic // value: false StopMagic bool `yaml:"stop_magic" koanf:"stop_magic,omitempty"` // description: | - // EncodedRequest allows you to declare which port on the destination host the tests should connect to. + // EncodedRequest will take a base64 encoded string that will be decoded and sent through as the request. + // It will override all other settings // examples: // - name: EncodedRequest // value: "\"a\"" @@ -278,7 +279,7 @@ type Output struct { LogContains string `yaml:"log_contains,omitempty"` // description: | - // NoLogContains describes the text that should be contained in the WAF logs. + // NoLogContains describes the text that should not be contained in the WAF logs. // examples: // - name: NoLogContains // value: "\"id 920100\""