diff --git a/integration_tests/dns/variables.yaml b/integration_tests/dns/variables.yaml index 13b10bbb9..f8b105bc3 100644 --- a/integration_tests/dns/variables.yaml +++ b/integration_tests/dns/variables.yaml @@ -6,11 +6,10 @@ info: severity: info variables: - a1: "FQDN" - a2: "IN" + a1: "IN" dns: - - name: "{{a1}}" + - name: "{{FQDN}}" type: A class: inet recursion: true @@ -18,4 +17,4 @@ dns: matchers: - type: word words: - - "{{a2}}" \ No newline at end of file + - "{{a1}}" \ No newline at end of file diff --git a/integration_tests/headless/variables.yaml b/integration_tests/headless/variables.yaml index d64cba974..aaec1282d 100644 --- a/integration_tests/headless/variables.yaml +++ b/integration_tests/headless/variables.yaml @@ -6,7 +6,7 @@ info: severity: info variables: - a1: "value" + a1: "{{base64('hello')}}" headless: - steps: diff --git a/integration_tests/http/variables.yaml b/integration_tests/http/variables.yaml index 97137f192..ad3e3348d 100644 --- a/integration_tests/http/variables.yaml +++ b/integration_tests/http/variables.yaml @@ -7,7 +7,7 @@ info: variables: a1: "value" - a2: "rand_base(5)" + a2: "{{base64('hello')}}" requests: - raw: @@ -22,5 +22,5 @@ requests: matchers: - type: word words: - - "{{a1}}" - - "{{a2}}" \ No newline at end of file + - "value" + - "aGVsbG8=" \ No newline at end of file diff --git a/integration_tests/network/variables.yaml b/integration_tests/network/variables.yaml index 3c6a06fd2..4a1e3785b 100644 --- a/integration_tests/network/variables.yaml +++ b/integration_tests/network/variables.yaml @@ -6,18 +6,17 @@ info: severity: info variables: - a1: "Hostname" - a2: "PING" - a3: "PONG" + a1: "PING" + a2: "{{base64('hello')}}" network: - host: - - "{{a1}}" + - "{{Hostname}}" inputs: - - data: "{{a2}}\r\n" - read-size: 4 + - data: "{{a1}}" + read-size: 8 matchers: - type: word part: data words: - - "{{a3}}" \ No newline at end of file + - "{{a2}}" \ No newline at end of file diff --git a/v2/cmd/integration-test/headless.go b/v2/cmd/integration-test/headless.go index 3f75c628a..475441ad2 100644 --- a/v2/cmd/integration-test/headless.go +++ b/v2/cmd/integration-test/headless.go @@ -100,7 +100,7 @@ type headlessVariables struct{} func (h *headlessVariables) Execute(filePath string) error { router := httprouter.New() router.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { - _, _ = w.Write([]byte("value")) + _, _ = w.Write([]byte("aGVsbG8=")) }) ts := httptest.NewServer(router) defer ts.Close() diff --git a/v2/cmd/integration-test/network.go b/v2/cmd/integration-test/network.go index fc49b299f..936c82c98 100644 --- a/v2/cmd/integration-test/network.go +++ b/v2/cmd/integration-test/network.go @@ -133,7 +133,7 @@ func (h *networkVariables) Execute(filePath string) error { return } if string(data) == "PING" { - _, _ = conn.Write([]byte("PONG")) + _, _ = conn.Write([]byte("aGVsbG8=")) } }) defer ts.Close()