summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Determe <sebastien.determe@intl.att.com>2019-10-01 13:58:53 +0000
committerGerrit Code Review <gerrit@onap.org>2019-10-01 13:58:53 +0000
commit6ea539c92788cce0e2caf1fdf16bd0dd0914de69 (patch)
tree7148229cee4923a2fa67f69f488e352748ee8406
parentf1c0f94253036ec6ae0996f832e7327e9f68fca4 (diff)
parent58c7c977bed829fe010849cdf1b3f654c3c8cc02 (diff)
Merge "Remove Policy dependencies"
-rw-r--r--docs/swagger/swagger.json150
-rw-r--r--docs/swagger/swagger.pdf6
-rw-r--r--pom.xml143
-rw-r--r--src/main/resources/META-INF/resources/swagger.html2
-rw-r--r--src/main/resources/application-noaaf.properties12
5 files changed, 85 insertions, 228 deletions
diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json
index ab7e827b6..0738c6f29 100644
--- a/docs/swagger/swagger.json
+++ b/docs/swagger/swagger.json
@@ -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" : {
@@ -421,14 +421,14 @@
"JsonArray" : {
"type" : "object",
"properties" : {
- "asString" : {
- "type" : "string"
+ "asBoolean" : {
+ "type" : "boolean"
},
"asNumber" : {
"$ref" : "#/definitions/Number"
},
- "asBoolean" : {
- "type" : "boolean"
+ "asString" : {
+ "type" : "string"
},
"asDouble" : {
"type" : "number",
@@ -466,26 +466,26 @@
"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" : {
@@ -531,14 +531,14 @@
"number" : {
"type" : "boolean"
},
- "asString" : {
- "type" : "string"
+ "asBoolean" : {
+ "type" : "boolean"
},
"asNumber" : {
"$ref" : "#/definitions/Number"
},
- "asBoolean" : {
- "type" : "boolean"
+ "asString" : {
+ "type" : "string"
},
"asDouble" : {
"type" : "number",
@@ -579,26 +579,26 @@
"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"
}
}
},
@@ -642,35 +642,17 @@
"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",
@@ -704,6 +686,24 @@
"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" : {
@@ -760,35 +760,17 @@
"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",
@@ -822,6 +804,24 @@
"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"
}
}
},
diff --git a/docs/swagger/swagger.pdf b/docs/swagger/swagger.pdf
index 5f3307b6e..29975894b 100644
--- a/docs/swagger/swagger.pdf
+++ b/docs/swagger/swagger.pdf
@@ -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 fcaf9b72d..17cba6f7d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -463,149 +463,6 @@
<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>
<version>1.3</version>
diff --git a/src/main/resources/META-INF/resources/swagger.html b/src/main/resources/META-INF/resources/swagger.html
index 17507b662..b20d0c26c 100644
--- a/src/main/resources/META-INF/resources/swagger.html
+++ b/src/main/resources/META-INF/resources/swagger.html
@@ -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>
diff --git a/src/main/resources/application-noaaf.properties b/src/main/resources/application-noaaf.properties
index ce4a76fff..580ec3f48 100644
--- a/src/main/resources/application-noaaf.properties
+++ b/src/main/resources/application-noaaf.properties
@@ -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