From c0db3b4ba59f2dfedfa0870e56e43769b82b701e Mon Sep 17 00:00:00 2001 From: thc202 Date: Thu, 31 Jul 2025 15:34:43 +0100 Subject: [PATCH] Replace full paths in AF itest plans Allow to use the plans without running in a test container. Signed-off-by: thc202 --- docker/integration_tests/configs/plans/auth-ajax-simple.yaml | 2 +- .../configs/plans/auth-client-script-ajax-spider.yaml | 2 +- .../configs/plans/auth-client-script-client-spider.yaml | 2 +- ...h-client-script-simple-json-blocking-ui-scroll-fields.yaml | 4 ++-- .../plans/auth-client-script-simple-json-blocking-ui.yaml | 4 ++-- .../integration_tests/configs/plans/auth-client-simple.yaml | 2 +- .../configs/plans/auth-json-bearer-cookie.yaml | 2 +- .../configs/plans/auth-json-bearer-js-cookie.yaml | 2 +- docker/integration_tests/configs/plans/auth-json-bearer.yaml | 2 +- .../configs/plans/auth-json-diff-cookies.yaml | 2 +- .../configs/plans/auth-non-std-json-bearer.yaml | 2 +- .../configs/plans/auth-password-added-json.yaml | 2 +- .../configs/plans/auth-password-hidden-json.yaml | 2 +- .../configs/plans/auth-password-new-json.yaml | 2 +- .../configs/plans/auth-simple-json-shadow-dom.yaml | 2 +- docker/integration_tests/configs/plans/auth-simple-json.yaml | 2 +- docker/integration_tests/configs/plans/jigsaw-basic-user.yaml | 2 +- docker/integration_tests/configs/plans/petstore-openapi.yaml | 2 +- docker/integration_tests/configs/plans/seq-simple.yaml | 2 +- .../integration_tests/configs/plans/testfire-form-user.yaml | 2 +- 20 files changed, 22 insertions(+), 22 deletions(-) diff --git a/docker/integration_tests/configs/plans/auth-ajax-simple.yaml b/docker/integration_tests/configs/plans/auth-ajax-simple.yaml index 8f9532f8803..7c3e1a2be8c 100644 --- a/docker/integration_tests/configs/plans/auth-ajax-simple.yaml +++ b/docker/integration_tests/configs/plans/auth-ajax-simple.yaml @@ -60,7 +60,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-client-script-ajax-spider.yaml b/docker/integration_tests/configs/plans/auth-client-script-ajax-spider.yaml index 9c973613b66..4bd90b700f5 100644 --- a/docker/integration_tests/configs/plans/auth-client-script-ajax-spider.yaml +++ b/docker/integration_tests/configs/plans/auth-client-script-ajax-spider.yaml @@ -8,7 +8,7 @@ env: authentication: method: client parameters: - script: /zap/wrk/configs/scripts/auth/clientScriptAuth.zst + script: ../scripts/auth/clientScriptAuth.zst scriptEngine: Mozilla Zest verification: method: poll diff --git a/docker/integration_tests/configs/plans/auth-client-script-client-spider.yaml b/docker/integration_tests/configs/plans/auth-client-script-client-spider.yaml index 784183f239a..7f7e0254563 100644 --- a/docker/integration_tests/configs/plans/auth-client-script-client-spider.yaml +++ b/docker/integration_tests/configs/plans/auth-client-script-client-spider.yaml @@ -8,7 +8,7 @@ env: authentication: method: client parameters: - script: /zap/wrk/configs/scripts/auth/clientScriptAuth.zst + script: ../scripts/auth/clientScriptAuth.zst scriptEngine: Mozilla Zest verification: method: poll diff --git a/docker/integration_tests/configs/plans/auth-client-script-simple-json-blocking-ui-scroll-fields.yaml b/docker/integration_tests/configs/plans/auth-client-script-simple-json-blocking-ui-scroll-fields.yaml index 2be6dfa47f6..f7a9fe50cca 100644 --- a/docker/integration_tests/configs/plans/auth-client-script-simple-json-blocking-ui-scroll-fields.yaml +++ b/docker/integration_tests/configs/plans/auth-client-script-simple-json-blocking-ui-scroll-fields.yaml @@ -12,7 +12,7 @@ env: parameters: loginPageUrl: "http://localhost:9091/auth/simple-json-blocking-ui-scroll-fields/" loginPageWait: 5 - script: /zap/wrk/configs/scripts/auth/clientScriptAuthBlockingScrolls.zst + script: ../scripts/auth/clientScriptAuthBlockingScrolls.zst scriptEngine: Mozilla Zest verification: method: "autodetect" @@ -102,7 +102,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-client-script-simple-json-blocking-ui.yaml b/docker/integration_tests/configs/plans/auth-client-script-simple-json-blocking-ui.yaml index c178a381c49..25f23513999 100644 --- a/docker/integration_tests/configs/plans/auth-client-script-simple-json-blocking-ui.yaml +++ b/docker/integration_tests/configs/plans/auth-client-script-simple-json-blocking-ui.yaml @@ -12,7 +12,7 @@ env: parameters: loginPageUrl: "http://localhost:9091/auth/simple-json-blocking-ui/" loginPageWait: 5 - script: /zap/wrk/configs/scripts/auth/clientScriptAuthBlocking.zst + script: ../scripts/auth/clientScriptAuthBlocking.zst scriptEngine: Mozilla Zest verification: method: "autodetect" @@ -102,7 +102,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-client-simple.yaml b/docker/integration_tests/configs/plans/auth-client-simple.yaml index 6401d6ffa9d..a0aeb2a4b21 100644 --- a/docker/integration_tests/configs/plans/auth-client-simple.yaml +++ b/docker/integration_tests/configs/plans/auth-client-simple.yaml @@ -59,7 +59,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-json-bearer-cookie.yaml b/docker/integration_tests/configs/plans/auth-json-bearer-cookie.yaml index ef02fb0d9b8..ea56b3eeef5 100644 --- a/docker/integration_tests/configs/plans/auth-json-bearer-cookie.yaml +++ b/docker/integration_tests/configs/plans/auth-json-bearer-cookie.yaml @@ -101,7 +101,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-json-bearer-js-cookie.yaml b/docker/integration_tests/configs/plans/auth-json-bearer-js-cookie.yaml index 7a1804e0e56..795628c4546 100644 --- a/docker/integration_tests/configs/plans/auth-json-bearer-js-cookie.yaml +++ b/docker/integration_tests/configs/plans/auth-json-bearer-js-cookie.yaml @@ -101,7 +101,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-json-bearer.yaml b/docker/integration_tests/configs/plans/auth-json-bearer.yaml index 4158928b1b1..3695c137552 100644 --- a/docker/integration_tests/configs/plans/auth-json-bearer.yaml +++ b/docker/integration_tests/configs/plans/auth-json-bearer.yaml @@ -101,7 +101,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-json-diff-cookies.yaml b/docker/integration_tests/configs/plans/auth-json-diff-cookies.yaml index d499b4f3ce5..bbf48f7ac69 100644 --- a/docker/integration_tests/configs/plans/auth-json-diff-cookies.yaml +++ b/docker/integration_tests/configs/plans/auth-json-diff-cookies.yaml @@ -80,7 +80,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-non-std-json-bearer.yaml b/docker/integration_tests/configs/plans/auth-non-std-json-bearer.yaml index 6cc5cdaf5df..cea8b2dba2d 100644 --- a/docker/integration_tests/configs/plans/auth-non-std-json-bearer.yaml +++ b/docker/integration_tests/configs/plans/auth-non-std-json-bearer.yaml @@ -91,7 +91,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-password-added-json.yaml b/docker/integration_tests/configs/plans/auth-password-added-json.yaml index d4705ff3cc1..e3d06f30376 100644 --- a/docker/integration_tests/configs/plans/auth-password-added-json.yaml +++ b/docker/integration_tests/configs/plans/auth-password-added-json.yaml @@ -101,7 +101,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-password-hidden-json.yaml b/docker/integration_tests/configs/plans/auth-password-hidden-json.yaml index d21a83d6456..fb2e35fd890 100644 --- a/docker/integration_tests/configs/plans/auth-password-hidden-json.yaml +++ b/docker/integration_tests/configs/plans/auth-password-hidden-json.yaml @@ -101,7 +101,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-password-new-json.yaml b/docker/integration_tests/configs/plans/auth-password-new-json.yaml index 6de2895620c..b841dd30bd8 100644 --- a/docker/integration_tests/configs/plans/auth-password-new-json.yaml +++ b/docker/integration_tests/configs/plans/auth-password-new-json.yaml @@ -100,7 +100,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-simple-json-shadow-dom.yaml b/docker/integration_tests/configs/plans/auth-simple-json-shadow-dom.yaml index ae0eef4145d..e4dca78ba4f 100644 --- a/docker/integration_tests/configs/plans/auth-simple-json-shadow-dom.yaml +++ b/docker/integration_tests/configs/plans/auth-simple-json-shadow-dom.yaml @@ -101,7 +101,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/auth-simple-json.yaml b/docker/integration_tests/configs/plans/auth-simple-json.yaml index 8ea24f80805..9e86e030ab5 100644 --- a/docker/integration_tests/configs/plans/auth-simple-json.yaml +++ b/docker/integration_tests/configs/plans/auth-simple-json.yaml @@ -101,7 +101,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/jigsaw-basic-user.yaml b/docker/integration_tests/configs/plans/jigsaw-basic-user.yaml index a47b3b80812..13a26a1c5c3 100644 --- a/docker/integration_tests/configs/plans/jigsaw-basic-user.yaml +++ b/docker/integration_tests/configs/plans/jigsaw-basic-user.yaml @@ -94,7 +94,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/petstore-openapi.yaml b/docker/integration_tests/configs/plans/petstore-openapi.yaml index f8f273e7c42..d4589ff010c 100644 --- a/docker/integration_tests/configs/plans/petstore-openapi.yaml +++ b/docker/integration_tests/configs/plans/petstore-openapi.yaml @@ -45,7 +45,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: diff --git a/docker/integration_tests/configs/plans/seq-simple.yaml b/docker/integration_tests/configs/plans/seq-simple.yaml index 23b1e737d3d..29762c3b938 100644 --- a/docker/integration_tests/configs/plans/seq-simple.yaml +++ b/docker/integration_tests/configs/plans/seq-simple.yaml @@ -17,7 +17,7 @@ jobs: - type: sequence-import parameters: name: seq-simple - path: /zap/wrk/configs/plans/data/seq-simple.har + path: data/seq-simple.har assertCode: true assertLength: 10 - type: sequence-activeScan diff --git a/docker/integration_tests/configs/plans/testfire-form-user.yaml b/docker/integration_tests/configs/plans/testfire-form-user.yaml index fe2394843b5..aeb045e170d 100644 --- a/docker/integration_tests/configs/plans/testfire-form-user.yaml +++ b/docker/integration_tests/configs/plans/testfire-form-user.yaml @@ -58,7 +58,7 @@ jobs: engine: "ECMAScript : Graal.js" name: "af-diags.js" target: "" - source: "/zap/wrk/configs/scripts/standalone/af-diags.js" + source: "../scripts/standalone/af-diags.js" name: "script" type: "script" - parameters: