From a1a9f88c087108feb60c1596fe8c9ec964363c28 Mon Sep 17 00:00:00 2001 From: arcuri82 Date: Fri, 17 Oct 2025 09:18:49 +0200 Subject: [PATCH] added further example/test for cleanup --- .../static/openapi/callgraphdelete.yaml | 38 ++++++++++++++++++- .../callgraphdelete/CallGraphDeleteTest.kt | 4 ++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/core-it/src/main/resources/static/openapi/callgraphdelete.yaml b/core-it/src/main/resources/static/openapi/callgraphdelete.yaml index 3ba19acfbc..e38a8b04e4 100644 --- a/core-it/src/main/resources/static/openapi/callgraphdelete.yaml +++ b/core-it/src/main/resources/static/openapi/callgraphdelete.yaml @@ -109,4 +109,40 @@ paths: responses: "200": description: "ok" - + "/vw/users": + "get": + responses: + "200": + description: "ok" + "post": + responses: + "200": + description: "ok" + "/vw/users/login": + "post": + responses: + "200": + description: "ok" + "/vw/users/user/{id}": + "get": + responses: + "200": + description: "ok" + "put": + responses: + "200": + description: "ok" + "delete": + responses: + "200": + description: "ok" + "/vw/users/vw-user-and-api-key/{vwUser}/{apiKey}": + "get": + responses: + "200": + description: "ok" + "/vw/users/vw-user/{vwUser}": + "get": + responses: + "200": + description: "ok" diff --git a/core-it/src/test/kotlin/org/evomaster/core/problem/rest/callgraphdelete/CallGraphDeleteTest.kt b/core-it/src/test/kotlin/org/evomaster/core/problem/rest/callgraphdelete/CallGraphDeleteTest.kt index 1816a287ce..45d3ccf37a 100644 --- a/core-it/src/test/kotlin/org/evomaster/core/problem/rest/callgraphdelete/CallGraphDeleteTest.kt +++ b/core-it/src/test/kotlin/org/evomaster/core/problem/rest/callgraphdelete/CallGraphDeleteTest.kt @@ -73,6 +73,10 @@ class CallGraphDeleteTest : IntegrationTestRestBase() { val l = pirTest.fromVerbPath("post", "/l/foo")!! res = graph.findDeleteFor(l)!! assertEquals("/l/bar", res.path.toString()) + + val vw = pirTest.fromVerbPath("post", "/vw/users")!! + res = graph.findDeleteFor(vw)!! + assertEquals("/vw/users/user/{id}", res.path.toString()) } } \ No newline at end of file