Remove Policy dependencies 79/96279/2
authorxuegao <xg353y@intl.att.com>
Thu, 26 Sep 2019 11:29:10 +0000 (13:29 +0200)
committerxuegao <xg353y@intl.att.com>
Tue, 1 Oct 2019 13:33:11 +0000 (15:33 +0200)
Remove policy related dependencies from the pom.xml

Issue-ID: CLAMP-512y
Change-Id: I734539be2c80eacd2340f865dffc50f47c55dd86
Signed-off-by: xuegao <xg353y@intl.att.com>
docs/swagger/swagger.json
docs/swagger/swagger.pdf
pom.xml
src/main/resources/META-INF/resources/swagger.html
src/main/resources/application-noaaf.properties

index ab7e827..0738c6f 100644 (file)
@@ -4,7 +4,7 @@
     "version" : "4.1.2-SNAPSHOT",
     "title" : "Clamp Rest API"
   },
-  "host" : "localhost:38405",
+  "host" : "localhost:34219",
   "basePath" : "/restservices/clds/",
   "schemes" : [ "http" ],
   "paths" : {
     "JsonArray" : {
       "type" : "object",
       "properties" : {
-        "asString" : {
-          "type" : "string"
+        "asBoolean" : {
+          "type" : "boolean"
         },
         "asNumber" : {
           "$ref" : "#/definitions/Number"
         },
-        "asBoolean" : {
-          "type" : "boolean"
+        "asString" : {
+          "type" : "string"
         },
         "asDouble" : {
           "type" : "number",
         "asJsonPrimitive" : {
           "$ref" : "#/definitions/JsonPrimitive"
         },
-        "asJsonObject" : {
-          "$ref" : "#/definitions/JsonObject"
+        "asJsonNull" : {
+          "$ref" : "#/definitions/JsonNull"
         },
-        "jsonPrimitive" : {
+        "jsonArray" : {
           "type" : "boolean"
         },
-        "asJsonArray" : {
-          "$ref" : "#/definitions/JsonArray"
-        },
         "jsonObject" : {
           "type" : "boolean"
         },
         "jsonNull" : {
           "type" : "boolean"
         },
-        "asJsonNull" : {
-          "$ref" : "#/definitions/JsonNull"
-        },
-        "jsonArray" : {
+        "jsonPrimitive" : {
           "type" : "boolean"
+        },
+        "asJsonObject" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
         }
       },
       "x-className" : {
         "number" : {
           "type" : "boolean"
         },
-        "asString" : {
-          "type" : "string"
+        "asBoolean" : {
+          "type" : "boolean"
         },
         "asNumber" : {
           "$ref" : "#/definitions/Number"
         },
-        "asBoolean" : {
-          "type" : "boolean"
+        "asString" : {
+          "type" : "string"
         },
         "asDouble" : {
           "type" : "number",
         "asJsonPrimitive" : {
           "$ref" : "#/definitions/JsonPrimitive"
         },
-        "asJsonObject" : {
-          "$ref" : "#/definitions/JsonObject"
+        "asJsonNull" : {
+          "$ref" : "#/definitions/JsonNull"
         },
-        "jsonPrimitive" : {
+        "jsonArray" : {
           "type" : "boolean"
         },
-        "asJsonArray" : {
-          "$ref" : "#/definitions/JsonArray"
-        },
         "jsonObject" : {
           "type" : "boolean"
         },
         "jsonNull" : {
           "type" : "boolean"
         },
-        "asJsonNull" : {
-          "$ref" : "#/definitions/JsonNull"
-        },
-        "jsonArray" : {
+        "jsonPrimitive" : {
           "type" : "boolean"
+        },
+        "asJsonObject" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
         }
       }
     },
         "asJsonPrimitive" : {
           "$ref" : "#/definitions/JsonPrimitive"
         },
-        "asString" : {
-          "type" : "string"
-        },
-        "asJsonObject" : {
-          "$ref" : "#/definitions/JsonObject"
-        },
-        "jsonPrimitive" : {
-          "type" : "boolean"
-        },
-        "asJsonArray" : {
-          "$ref" : "#/definitions/JsonArray"
+        "asJsonNull" : {
+          "$ref" : "#/definitions/JsonNull"
         },
-        "jsonObject" : {
+        "asBoolean" : {
           "type" : "boolean"
         },
         "asNumber" : {
           "$ref" : "#/definitions/Number"
         },
-        "jsonNull" : {
-          "type" : "boolean"
-        },
-        "asJsonNull" : {
-          "$ref" : "#/definitions/JsonNull"
-        },
-        "jsonArray" : {
-          "type" : "boolean"
-        },
-        "asBoolean" : {
-          "type" : "boolean"
+        "asString" : {
+          "type" : "string"
         },
         "asDouble" : {
           "type" : "number",
         "asShort" : {
           "type" : "integer",
           "format" : "int32"
+        },
+        "jsonArray" : {
+          "type" : "boolean"
+        },
+        "jsonObject" : {
+          "type" : "boolean"
+        },
+        "jsonNull" : {
+          "type" : "boolean"
+        },
+        "jsonPrimitive" : {
+          "type" : "boolean"
+        },
+        "asJsonObject" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
         }
       },
       "x-className" : {
         "asJsonPrimitive" : {
           "$ref" : "#/definitions/JsonPrimitive"
         },
-        "asString" : {
-          "type" : "string"
-        },
-        "asJsonObject" : {
-          "$ref" : "#/definitions/JsonObject"
-        },
-        "jsonPrimitive" : {
-          "type" : "boolean"
-        },
-        "asJsonArray" : {
-          "$ref" : "#/definitions/JsonArray"
+        "asJsonNull" : {
+          "$ref" : "#/definitions/JsonNull"
         },
-        "jsonObject" : {
+        "asBoolean" : {
           "type" : "boolean"
         },
         "asNumber" : {
           "$ref" : "#/definitions/Number"
         },
-        "jsonNull" : {
-          "type" : "boolean"
-        },
-        "asJsonNull" : {
-          "$ref" : "#/definitions/JsonNull"
-        },
-        "jsonArray" : {
-          "type" : "boolean"
-        },
-        "asBoolean" : {
-          "type" : "boolean"
+        "asString" : {
+          "type" : "string"
         },
         "asDouble" : {
           "type" : "number",
         "asShort" : {
           "type" : "integer",
           "format" : "int32"
+        },
+        "jsonArray" : {
+          "type" : "boolean"
+        },
+        "jsonObject" : {
+          "type" : "boolean"
+        },
+        "jsonNull" : {
+          "type" : "boolean"
+        },
+        "jsonPrimitive" : {
+          "type" : "boolean"
+        },
+        "asJsonObject" : {
+          "$ref" : "#/definitions/JsonObject"
+        },
+        "asJsonArray" : {
+          "$ref" : "#/definitions/JsonArray"
         }
       }
     },
index 5f3307b..2997589 100644 (file)
@@ -4,8 +4,8 @@
 << /Title (Clamp Rest API)
 /Creator (Asciidoctor PDF 1.5.0.alpha.10, based on Prawn 1.3.0)
 /Producer (Asciidoctor PDF 1.5.0.alpha.10, based on Prawn 1.3.0)
-/CreationDate (D:20190919142605+02'00')
-/ModDate (D:20190919142605+02'00')
+/CreationDate (D:20190924114758+02'00')
+/ModDate (D:20190924114758+02'00')
 >>
 endobj
 2 0 obj
@@ -3447,7 +3447,7 @@ ET
 BT
 71.30850000000001 592.176 Td
 /F1.0 10.5 Tf
-<203a206c6f63616c686f73743a3338343035> Tj
+<203a206c6f63616c686f73743a3334323139> Tj
 ET
 
 0.000 0.000 0.000 SCN
diff --git a/pom.xml b/pom.xml
index 5d0c767..eb0a70b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                        <artifactId>persistence-api</artifactId>
                        <version>1.0.2</version>
                </dependency>
-               <dependency>
-                       <groupId>org.onap.policy.engine</groupId>
-                       <artifactId>PolicyEngineAPI</artifactId>
-                       <version>1.3.3</version>
-                       <exclusions>
-                               <exclusion>
-                                       <groupId>com.google.guava</groupId>
-                                       <artifactId>guava</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <artifactId>log4j</artifactId>
-                                       <groupId>log4j</groupId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>org.slf4j</groupId>
-                                       <artifactId>slf4j-log4j12</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <artifactId>apache-log4j-extras</artifactId>
-                                       <groupId>log4j</groupId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>mysql</groupId>
-                                       <artifactId>mysql-connector-java</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>commons-io</groupId>
-                                       <artifactId>commons-io</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <artifactId>grizzly-http-server</artifactId>
-                                       <groupId>org.glassfish.grizzly</groupId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
-                                       <artifactId>dmaapClient</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>org.onap.policy.common</groupId>
-                                       <artifactId>integrity-monitor</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>org.onap.policy.common</groupId>
-                                       <artifactId>integrity-audit</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>com.fasterxml.jackson.core</groupId>
-                                       <artifactId>jackson-databind</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>org.onap.aaf.cadi</groupId>
-                                       <artifactId>cadi-aaf</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>javax.jms</groupId>
-                                       <artifactId>jms</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>commons-fileupload</groupId>
-                                       <artifactId>commons-fileupload</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>com.att.research.xacml</groupId>
-                                       <artifactId>xacml</artifactId>
-                               </exclusion>
-                       </exclusions>
-               </dependency>
-               <dependency>
-                       <groupId>org.onap.policy.common</groupId>
-                       <artifactId>ONAP-Logging</artifactId>
-                       <version>1.2.3</version>
-                       <exclusions>
-                               <exclusion>
-                                       <artifactId>log4j</artifactId>
-                                       <groupId>log4j</groupId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>org.slf4j</groupId>
-                                       <artifactId>slf4j-log4j12</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <artifactId>apache-log4j-extras</artifactId>
-                                       <groupId>log4j</groupId>
-                               </exclusion>
-                       </exclusions>
-               </dependency>
-               <dependency>
-                       <groupId>org.onap.policy.drools-applications.controlloop.common</groupId>
-                       <artifactId>policy-yaml</artifactId>
-                       <version>1.2.3</version>
-                       <exclusions>
-                               <exclusion>
-                                       <artifactId>log4j</artifactId>
-                                       <groupId>log4j</groupId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>org.slf4j</groupId>
-                                       <artifactId>slf4j-log4j12</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <artifactId>apache-log4j-extras</artifactId>
-                                       <groupId>log4j</groupId>
-                               </exclusion>
-                       </exclusions>
-               </dependency>
-               <dependency>
-                       <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
-                       <artifactId>sdc</artifactId>
-                       <version>1.2.3</version>
-                       <exclusions>
-                               <exclusion>
-                                       <artifactId>log4j</artifactId>
-                                       <groupId>log4j</groupId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>org.slf4j</groupId>
-                                       <artifactId>slf4j-log4j12</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <artifactId>apache-log4j-extras</artifactId>
-                                       <groupId>log4j</groupId>
-                               </exclusion>
-                       </exclusions>
-               </dependency>
-               <dependency>
-                       <groupId>org.onap.policy.drools-applications.controlloop.common.model-impl</groupId>
-                       <artifactId>aai</artifactId>
-                       <version>1.2.3</version>
-                       <exclusions>
-                               <exclusion>
-                                       <artifactId>log4j</artifactId>
-                                       <groupId>log4j</groupId>
-                               </exclusion>
-                               <exclusion>
-                                       <groupId>org.slf4j</groupId>
-                                       <artifactId>slf4j-log4j12</artifactId>
-                               </exclusion>
-                               <exclusion>
-                                       <artifactId>apache-log4j-extras</artifactId>
-                                       <groupId>log4j</groupId>
-                               </exclusion>
-                       </exclusions>
-               </dependency>
                <dependency>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>commons-csv</artifactId>
index 17507b6..b20d0c2 100644 (file)
@@ -589,7 +589,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
 <div class="sect2">
 <h3 id="_uri_scheme"><a class="anchor" href="#_uri_scheme"></a><a class="link" href="#_uri_scheme">1.2. URI scheme</a></h3>
 <div class="paragraph">
-<p><em>Host</em> : localhost:38405<br>
+<p><em>Host</em> : localhost:34219<br>
 <em>BasePath</em> : /restservices/clds/<br>
 <em>Schemes</em> : HTTP</p>
 </div>
index ce4a76f..580ec3f 100644 (file)
@@ -97,7 +97,7 @@ camel.springboot.xmlRests=classpath:/clds/camel/rest/*.xml
 
 #clds datasource connection details
 spring.datasource.cldsdb.driverClassName=org.mariadb.jdbc.Driver
-spring.datasource.cldsdb.url=jdbc:mariadb:sequential://third-party-proxy:3306/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3
+spring.datasource.cldsdb.url=jdbc:mariadb:sequential://localhost:3306/cldsdb4?autoReconnect=true&connectTimeout=10000&socketTimeout=10000&retriesAllDown=3
 spring.datasource.cldsdb.username=clds
 spring.datasource.cldsdb.password=4c90a0b48204383f4283448d23e0b885a47237b2a23588e7c4651604f51c1067
 spring.datasource.cldsdb.validationQuery=SELECT 1
@@ -149,10 +149,10 @@ clamp.config.dcae.deployment.template=classpath:/clds/templates/dcae-deployment-
 #
 #
 # Configuration Settings for Policy Engine Components
-clamp.config.policy.api.url=http4://third-party-proxy:8085
+clamp.config.policy.api.url=http4://localhost:8085
 clamp.config.policy.api.userName=healthcheck
 clamp.config.policy.api.password=zb!XztG34
-clamp.config.policy.pap.url=http4://third-party-proxy:8085
+clamp.config.policy.pap.url=http4://localhost:8085
 clamp.config.policy.pap.userName=healthcheck
 clamp.config.policy.pap.password=zb!XztG34
 
@@ -208,17 +208,17 @@ clamp.config.action.insert.test.event=false
 clamp.config.clds.service.cache.invalidate.after.seconds=120
 
 #DCAE Inventory Url Properties
-clamp.config.dcae.inventory.url=http://third-party-proxy:8085
+clamp.config.dcae.inventory.url=http://localhost:8085
 clamp.config.dcae.intentory.retry.interval=10000
 clamp.config.dcae.intentory.retry.limit=5
 
 #DCAE Dispatcher Url Properties
-clamp.config.dcae.dispatcher.url=http://third-party-proxy:8085
+clamp.config.dcae.dispatcher.url=http://localhost:8085
 clamp.config.dcae.dispatcher.retry.interval=20000
 clamp.config.dcae.dispatcher.retry.limit=30
 
 #DCAE Deployment Url Properties
-clamp.config.dcae.deployment.url=http4://third-party-proxy:8085
+clamp.config.dcae.deployment.url=http4://localhost:8085
 clamp.config.dcae.deployment.userName=test
 clamp.config.dcae.deployment.password=test