From d7914bc1f3c9505539304bd23b795c7b061dc6db Mon Sep 17 00:00:00 2001 From: ToineSiebelink Date: Thu, 4 Jul 2024 15:15:36 +0100 Subject: Create PolicyExecutor Stub - Generate interface from OpenApi in RTD docs - Fixed Content Type in OpenAPI - Fixed Paths in OpenAPI - Made Authorization header compulsory in OpenAPI - All 'enum' values in OpenAPI lowercase (in linr with CPS/NCMP conventions) - Added impl with some basic functionality - Added testware - Pom includes docker image creation - Docker compose updated to deploy stub Issue-ID: CPS-2301 Change-Id: I462ad5c70474b2813fc04005c0d20a1b15b574ec Signed-off-by: ToineSiebelink Signed-off-by: sourabh_sourabh --- policy-executor-stub/pom.xml | 188 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 188 insertions(+) create mode 100644 policy-executor-stub/pom.xml (limited to 'policy-executor-stub/pom.xml') diff --git a/policy-executor-stub/pom.xml b/policy-executor-stub/pom.xml new file mode 100644 index 0000000000..99e621d8a9 --- /dev/null +++ b/policy-executor-stub/pom.xml @@ -0,0 +1,188 @@ + + + 4.0.0 + + org.onap.cps + cps-parent + 3.5.1-SNAPSHOT + ../cps-parent/pom.xml + + + policy-executor-stub + + + org.onap.cps.policyexecutor.stub.PolicyExecutorApplication + yyyyMMdd'T'HHmmss'Z' + ${docker.pull.registry}/onap/integration-java17:12.0.0 + policy-executor-stub + ${project.version}-${maven.build.timestamp} + UTF-8 + + + + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-tomcat + + + + + org.springframework.boot + spring-boot-starter-jetty + + + org.springframework.boot + spring-boot-starter-validation + + + + io.swagger.core.v3 + swagger-annotations + + + org.springdoc + springdoc-openapi-starter-webmvc-ui + + + + org.codehaus.groovy + groovy + test + + + org.codehaus.groovy + groovy-json + test + + + org.spockframework + spock-core + test + + + org.spockframework + spock-spring + test + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + + com.google.cloud.tools + jib-maven-plugin + + + ${app} + USE_CURRENT_TIMESTAMP + + + ${base.image} + + + + latest + + ${docker.push.registry}/onap/${image.name}:${image.tag} + + + + + package + build + + dockerBuild + + + + deploy + buildAndPush + + build + + + + + + + + + + org.openapitools + openapi-generator-maven-plugin + 6.6.0 + + + code-gen + + generate + + + ${project.parent.basedir}/../docs/api/swagger/policy-executor/openapi.yaml + org.onap.cps.policyexecutor.stub.model + org.onap.cps.policyexecutor.stub.api + spring + false + + src/gen/java + java11 + true + true + true + false + true + + + + + openapi-yaml-gen + + generate + + compile + + ${project.parent.basedir}/../docs/api/swagger/policy-executor/openapi.yaml + openapi-yaml + + openapi.yaml + + + + + + + + + + + docker + + true + + + + + com.google.cloud.tools + jib-maven-plugin + 3.3.2 + + + + + + + + -- cgit 1.2.3-korg