From a5fe56e498a7171fc5c54f7fb6f7cd0d9d815bc9 Mon Sep 17 00:00:00 2001 From: fjtirado Date: Wed, 24 Sep 2025 17:24:06 +0200 Subject: [PATCH] Moving resource files OpenID auth test definitions files are moved to the same location than other test definitions Signed-off-by: fjtirado --- .../OpenIDCHTTPWorkflowDefinitionTest.java | 35 ++++++++++++------- ...etPostClientCredentialsParamsHttpCall.yaml | 0 ...ntCredentialsParamsNoEndPointHttpCall.yaml | 0 ...ntSecretPostPasswordAllGrantsHttpCall.yaml | 0 ...ClientSecretPostPasswordAsArgHttpCall.yaml | 0 ...enidcClientSecretPostPasswordHttpCall.yaml | 0 .../openidcJSONClientCredentialsHttpCall.yaml | 0 ...dcJSONClientCredentialsParamsHttpCall.yaml | 0 ...ntCredentialsParamsNoEndPointHttpCall.yaml | 0 .../openidcJSONPasswordAllGrantsHttpCall.yaml | 0 .../openidcJSONPasswordAsArgHttpCall.yaml | 0 .../openidcJSONPasswordHttpCall.yaml | 0 ...penidcJSONPasswordNoEndpointsHttpCall.yaml | 0 13 files changed, 23 insertions(+), 12 deletions(-) rename impl/test/src/test/resources/{ => workflows-samples}/openidcClientSecretPostClientCredentialsParamsHttpCall.yaml (100%) rename impl/test/src/test/resources/{ => workflows-samples}/openidcClientSecretPostClientCredentialsParamsNoEndPointHttpCall.yaml (100%) rename impl/test/src/test/resources/{ => workflows-samples}/openidcClientSecretPostPasswordAllGrantsHttpCall.yaml (100%) rename impl/test/src/test/resources/{ => workflows-samples}/openidcClientSecretPostPasswordAsArgHttpCall.yaml (100%) rename impl/test/src/test/resources/{ => workflows-samples}/openidcClientSecretPostPasswordHttpCall.yaml (100%) rename impl/test/src/test/resources/{ => workflows-samples}/openidcJSONClientCredentialsHttpCall.yaml (100%) rename impl/test/src/test/resources/{ => workflows-samples}/openidcJSONClientCredentialsParamsHttpCall.yaml (100%) rename impl/test/src/test/resources/{ => workflows-samples}/openidcJSONClientCredentialsParamsNoEndPointHttpCall.yaml (100%) rename impl/test/src/test/resources/{ => workflows-samples}/openidcJSONPasswordAllGrantsHttpCall.yaml (100%) rename impl/test/src/test/resources/{ => workflows-samples}/openidcJSONPasswordAsArgHttpCall.yaml (100%) rename impl/test/src/test/resources/{ => workflows-samples}/openidcJSONPasswordHttpCall.yaml (100%) rename impl/test/src/test/resources/{ => workflows-samples}/openidcJSONPasswordNoEndpointsHttpCall.yaml (100%) diff --git a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java b/impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java index f3e34f36..7dbd2f5a 100644 --- a/impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java +++ b/impl/test/src/test/java/io/serverlessworkflow/impl/test/OpenIDCHTTPWorkflowDefinitionTest.java @@ -97,7 +97,8 @@ public void testOpenIDCClientSecretPostPasswordWorkflowExecution() throws Except .setHeader("Content-Type", "application/json") .setResponseCode(200)); - Workflow workflow = readWorkflowFromClasspath("openidcClientSecretPostPasswordHttpCall.yaml"); + Workflow workflow = + readWorkflowFromClasspath("workflows-samples/openidcClientSecretPostPasswordHttpCall.yaml"); Map result; System.err.println("START"); try (WorkflowApplication app = WorkflowApplication.builder().build()) { @@ -145,7 +146,8 @@ public void testOpenIDCClientSecretPostWithArgsWorkflowExecution() throws Except .setResponseCode(200)); Workflow workflow = - readWorkflowFromClasspath("openidcClientSecretPostPasswordAsArgHttpCall.yaml"); + readWorkflowFromClasspath( + "workflows-samples/openidcClientSecretPostPasswordAsArgHttpCall.yaml"); Map result; Map params = Map.of( @@ -198,7 +200,8 @@ public void testOpenIDCClientSecretPostWithArgsAllGrantsWorkflowExecution() thro .setResponseCode(200)); Workflow workflow = - readWorkflowFromClasspath("openidcClientSecretPostPasswordAllGrantsHttpCall.yaml"); + readWorkflowFromClasspath( + "workflows-samples/openidcClientSecretPostPasswordAllGrantsHttpCall.yaml"); Map result; Map params = Map.of( @@ -259,7 +262,8 @@ public void testOpenIDCClientSecretPostClientCredentialsParamsWorkflowExecution( .setResponseCode(200)); Workflow workflow = - readWorkflowFromClasspath("openidcClientSecretPostClientCredentialsParamsHttpCall.yaml"); + readWorkflowFromClasspath( + "workflows-samples/openidcClientSecretPostClientCredentialsParamsHttpCall.yaml"); Map result; Map params = Map.of( @@ -311,7 +315,7 @@ public void testOpenIDCClientSecretPostClientCredentialsParamsNoEndpointWorkflow Workflow workflow = readWorkflowFromClasspath( - "openidcClientSecretPostClientCredentialsParamsNoEndPointHttpCall.yaml"); + "workflows-samples/openidcClientSecretPostClientCredentialsParamsNoEndPointHttpCall.yaml"); Map result; Map params = Map.of( @@ -358,7 +362,8 @@ public void testOpenIDCJSONPasswordWorkflowExecution() throws Exception { .setHeader("Content-Type", "application/json") .setResponseCode(200)); - Workflow workflow = readWorkflowFromClasspath("openidcJSONPasswordHttpCall.yaml"); + Workflow workflow = + readWorkflowFromClasspath("workflows-samples/openidcJSONPasswordHttpCall.yaml"); Map result; try (WorkflowApplication app = WorkflowApplication.builder().build()) { result = @@ -415,7 +420,8 @@ public void testOpenIDCJSONWithArgsWorkflowExecution() throws Exception { .setHeader("Content-Type", "application/json") .setResponseCode(200)); - Workflow workflow = readWorkflowFromClasspath("openidcJSONPasswordAsArgHttpCall.yaml"); + Workflow workflow = + readWorkflowFromClasspath("workflows-samples/openidcJSONPasswordAsArgHttpCall.yaml"); Map result; Map params = Map.of( @@ -476,7 +482,8 @@ public void testOpenIDCJSONWithArgsNoEndPointWorkflowExecution() throws Exceptio .setHeader("Content-Type", "application/json") .setResponseCode(200)); - Workflow workflow = readWorkflowFromClasspath("openidcJSONPasswordNoEndpointsHttpCall.yaml"); + Workflow workflow = + readWorkflowFromClasspath("workflows-samples/openidcJSONPasswordNoEndpointsHttpCall.yaml"); Map result; Map params = Map.of( @@ -536,7 +543,8 @@ public void testOpenIDCJSONWithArgsAllGrantsWorkflowExecution() throws Exception .setHeader("Content-Type", "application/json") .setResponseCode(200)); - Workflow workflow = readWorkflowFromClasspath("openidcJSONPasswordAllGrantsHttpCall.yaml"); + Workflow workflow = + readWorkflowFromClasspath("workflows-samples/openidcJSONPasswordAllGrantsHttpCall.yaml"); Map result; Map params = Map.of( @@ -610,7 +618,8 @@ public void testOpenIDCJSONClientCredentialsWorkflowExecution() throws Exception .setHeader("Content-Type", "application/json") .setResponseCode(200)); - Workflow workflow = readWorkflowFromClasspath("openidcJSONClientCredentialsHttpCall.yaml"); + Workflow workflow = + readWorkflowFromClasspath("workflows-samples/openidcJSONClientCredentialsHttpCall.yaml"); Map result; try (WorkflowApplication app = WorkflowApplication.builder().build()) { result = @@ -660,7 +669,8 @@ public void testOpenIDCJSONClientCredentialsParamsWorkflowExecution() throws Exc .setResponseCode(200)); Workflow workflow = - readWorkflowFromClasspath("openidcJSONClientCredentialsParamsHttpCall.yaml"); + readWorkflowFromClasspath( + "workflows-samples/openidcJSONClientCredentialsParamsHttpCall.yaml"); Map result; Map params = Map.of( @@ -715,7 +725,8 @@ public void testOpenIDCJSONClientCredentialsParamsNoEndpointWorkflowExecution() .setResponseCode(200)); Workflow workflow = - readWorkflowFromClasspath("openidcJSONClientCredentialsParamsNoEndPointHttpCall.yaml"); + readWorkflowFromClasspath( + "workflows-samples/openidcJSONClientCredentialsParamsNoEndPointHttpCall.yaml"); Map result; Map params = Map.of( diff --git a/impl/test/src/test/resources/openidcClientSecretPostClientCredentialsParamsHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcClientSecretPostClientCredentialsParamsHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcClientSecretPostClientCredentialsParamsHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcClientSecretPostClientCredentialsParamsHttpCall.yaml diff --git a/impl/test/src/test/resources/openidcClientSecretPostClientCredentialsParamsNoEndPointHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcClientSecretPostClientCredentialsParamsNoEndPointHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcClientSecretPostClientCredentialsParamsNoEndPointHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcClientSecretPostClientCredentialsParamsNoEndPointHttpCall.yaml diff --git a/impl/test/src/test/resources/openidcClientSecretPostPasswordAllGrantsHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcClientSecretPostPasswordAllGrantsHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcClientSecretPostPasswordAllGrantsHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcClientSecretPostPasswordAllGrantsHttpCall.yaml diff --git a/impl/test/src/test/resources/openidcClientSecretPostPasswordAsArgHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcClientSecretPostPasswordAsArgHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcClientSecretPostPasswordAsArgHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcClientSecretPostPasswordAsArgHttpCall.yaml diff --git a/impl/test/src/test/resources/openidcClientSecretPostPasswordHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcClientSecretPostPasswordHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcClientSecretPostPasswordHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcClientSecretPostPasswordHttpCall.yaml diff --git a/impl/test/src/test/resources/openidcJSONClientCredentialsHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcJSONClientCredentialsHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcJSONClientCredentialsHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcJSONClientCredentialsHttpCall.yaml diff --git a/impl/test/src/test/resources/openidcJSONClientCredentialsParamsHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcJSONClientCredentialsParamsHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcJSONClientCredentialsParamsHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcJSONClientCredentialsParamsHttpCall.yaml diff --git a/impl/test/src/test/resources/openidcJSONClientCredentialsParamsNoEndPointHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcJSONClientCredentialsParamsNoEndPointHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcJSONClientCredentialsParamsNoEndPointHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcJSONClientCredentialsParamsNoEndPointHttpCall.yaml diff --git a/impl/test/src/test/resources/openidcJSONPasswordAllGrantsHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcJSONPasswordAllGrantsHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcJSONPasswordAllGrantsHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcJSONPasswordAllGrantsHttpCall.yaml diff --git a/impl/test/src/test/resources/openidcJSONPasswordAsArgHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcJSONPasswordAsArgHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcJSONPasswordAsArgHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcJSONPasswordAsArgHttpCall.yaml diff --git a/impl/test/src/test/resources/openidcJSONPasswordHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcJSONPasswordHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcJSONPasswordHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcJSONPasswordHttpCall.yaml diff --git a/impl/test/src/test/resources/openidcJSONPasswordNoEndpointsHttpCall.yaml b/impl/test/src/test/resources/workflows-samples/openidcJSONPasswordNoEndpointsHttpCall.yaml similarity index 100% rename from impl/test/src/test/resources/openidcJSONPasswordNoEndpointsHttpCall.yaml rename to impl/test/src/test/resources/workflows-samples/openidcJSONPasswordNoEndpointsHttpCall.yaml