aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerry Flood <jflood@att.com>2019-04-30 13:31:09 -0400
committerJerry Flood <jflood@att.com>2019-04-30 13:31:59 -0400
commit0d920e8d8e85f712dd1799f8682357afe43819e3 (patch)
tree6f7d28d5a6e7fcc0882e88a60bd3ab9c21f0e200
parent1d4385fb37b42b93a73d4c10318be61d419bd7fc (diff)
Updates to enable local HTTPS testing
Issue-ID: OPTFRA-391 Change-Id: I4826a4ecc7f33d7062f3cd2850c349fbc4f1ec84 Signed-off-by: Jerry Flood <jflood@att.com>
-rw-r--r--cmso-optimizer/etc/config/optimizer.properties20
-rw-r--r--cmso-optimizer/etc/config/org.onap.oof.jksbin0 -> 3711 bytes
-rw-r--r--cmso-optimizer/etc/config/truststoreONAPall.jksbin0 -> 117990 bytes
-rw-r--r--cmso-service/etc/config/optimizer.properties10
-rw-r--r--cmso-service/etc/config/org.onap.oof.jksbin0 -> 3711 bytes
-rw-r--r--cmso-service/etc/config/ticketmgt.properties13
-rw-r--r--cmso-service/etc/config/truststoreONAPall.jksbin0 -> 117990 bytes
-rw-r--r--cmso-service/src/main/java/org/onap/optf/cmso/optimizer/CmsoOptimizerClient.java2
-rw-r--r--cmso-ticketmgt/etc/config/org.onap.oof.jksbin0 -> 3711 bytes
-rw-r--r--cmso-ticketmgt/etc/config/truststoreONAPall.jksbin0 -> 117990 bytes
-rw-r--r--cmso-topology/etc/config/org.onap.oof.jksbin0 -> 3711 bytes
-rw-r--r--cmso-topology/etc/config/truststoreONAPall.jksbin0 -> 117990 bytes
12 files changed, 30 insertions, 15 deletions
diff --git a/cmso-optimizer/etc/config/optimizer.properties b/cmso-optimizer/etc/config/optimizer.properties
index 132408e..9e089fe 100644
--- a/cmso-optimizer/etc/config/optimizer.properties
+++ b/cmso-optimizer/etc/config/optimizer.properties
@@ -43,20 +43,26 @@ logging.level.org.hibernate.SQL=WARN
logging.level.org.hibernate=WARN
-healthcheck.cmso.topology.url=http://127.0.0.1:7998/topology/v1/health?checkInterfaces=true
-healthcheck.cmso.ticketmgt.url=http://127.0.0.1:7999/ticketmgt/v1/health?checkInterfaces=true
+##
+## Update etc/hosts to match. Will work with https configured
+## 127.0.0.1 oof-cmso-ticketmgt oof-cmso-topology oof-cmso-optimizer oof-cmso
+##
+healthcheck.cmso.topology.url=https://oof-cmso-topology:7998/topology/v1/health?checkInterfaces=true
+healthcheck.cmso.ticketmgt.url=https://oof-cmso-ticketmgt:7999/ticketmgt/v1/health?checkInterfaces=true
healthcheck.cmso.topology.title="CMSO Topology Interface"
healthcheck.cmso.ticketmgt.title="CMSO Ticket Management Interface"
-cmso.topology.create.request.url=http://127.0.0.1:7998/topology/v1/current
-cmso.ticket.create.request.url=http://127.0.0.1:7999/ticketmgt/v1/activetickets
+cmso.topology.create.request.url=https://oof-cmso-topology:7998/topology/v1/current
+cmso.ticket.create.request.url=https://oof-cmso-topology:7999/ticketmgt/v1/activetickets
cmso.local.policy.folder=data/policies
## MacOS - minizinc IDE has solvers built in
-cmso.minizinc.command.exe=/Applications/MiniZincIDE.app/Contents/Resources/minizinc
+##cmso.minizinc.command.exe=/Applications/MiniZincIDE.app/Contents/Resources/minizinc
+
## Windows
-##cmso.minizinc.command.exe="C:/Program Files/MiniZinc IDE (bundled)/minizinc.exe"
+cmso.minizinc.command.exe="C:/Program Files/MiniZinc IDE (bundled)/minizinc.exe"
+cmso.minizinc.command.commandline=cmd.exe /C scripts\\minizinc\\run.bat
+
cmso.minizinc.command.solver=OSICBC
cmso.minizinc.command.timelimit=60000
cmso.minizinc.command.mzn=scripts/minizinc/generic_attributes.mzn
-###cmso.minizinc.command.commandline=cmd.exe /C scripts\\minizinc\\run.bat \ No newline at end of file
diff --git a/cmso-optimizer/etc/config/org.onap.oof.jks b/cmso-optimizer/etc/config/org.onap.oof.jks
new file mode 100644
index 0000000..535abaa
--- /dev/null
+++ b/cmso-optimizer/etc/config/org.onap.oof.jks
Binary files differ
diff --git a/cmso-optimizer/etc/config/truststoreONAPall.jks b/cmso-optimizer/etc/config/truststoreONAPall.jks
new file mode 100644
index 0000000..ff844b1
--- /dev/null
+++ b/cmso-optimizer/etc/config/truststoreONAPall.jks
Binary files differ
diff --git a/cmso-service/etc/config/optimizer.properties b/cmso-service/etc/config/optimizer.properties
index aa79e8a..26ea4ec 100644
--- a/cmso-service/etc/config/optimizer.properties
+++ b/cmso-service/etc/config/optimizer.properties
@@ -35,6 +35,10 @@
#cmso.optimizer.health.url=http://localhost:8080/cmso/v1/loopbacktest/optimize/schedule/health
## Local optimizer service
-cmso.optimizer.request.url=http://127.0.0.1:7997/optimizer/v1/optimize/schedule
-cmso.optimizer.status.url=http://127.0.0.1:7997/optimizer/v1/optimize/schedule
-cmso.optimizer.health.url=http://127.0.0.1:7997/optimizer/v1/health?checkInterfaces=true
+##
+## Update etc/hosts to match. Will work with https configured.
+## 127.0.0.1 oof-cmso-ticketmgt oof-cmso-topology oof-cmso-optimizer oof-cmso
+##
+cmso.optimizer.request.url=https://oof-cmso-optimizer:7997/optimizer/v1/optimize/schedule
+cmso.optimizer.status.url=https://oof-cmso-optimizer:7997/optimizer/v1/optimize/schedule
+cmso.optimizer.health.url=https://oof-cmso-optimizer:7997/optimizer/v1/health?checkInterfaces=true
diff --git a/cmso-service/etc/config/org.onap.oof.jks b/cmso-service/etc/config/org.onap.oof.jks
new file mode 100644
index 0000000..535abaa
--- /dev/null
+++ b/cmso-service/etc/config/org.onap.oof.jks
Binary files differ
diff --git a/cmso-service/etc/config/ticketmgt.properties b/cmso-service/etc/config/ticketmgt.properties
index 88db1ee..7758c12 100644
--- a/cmso-service/etc/config/ticketmgt.properties
+++ b/cmso-service/etc/config/ticketmgt.properties
@@ -29,10 +29,15 @@
# limitations under the License.
#-------------------------------------------------------------------------------
+##
+## Update etc/hosts to match. Will work with https configured
+## 127.0.0.1 oof-cmso-ticketmgt oof-cmso-topology oof-cmso-optimizer oof-cmso
+##
+
tm.vnfs.per.ticket=1
-tm.getPath=http://localhost:8080/cmso/v1/tm/getChangeRecord
-tm.createPath=http://localhost:8080/cmso/v1/tm/createChangeRecord
-tm.closePath=http://localhost:8080/cmso/v1/tm/closeCancelChangeRecord
-tm.updatePath=http://localhost:8080/cmso/v1/tm/updateChangeRecord
+tm.getPath=https://oof-cmso:8080/cmso/v1/tm/getChangeRecord
+tm.createPath=https://oof-cmso:8080/cmso/v1/tm/createChangeRecord
+tm.closePath=https://oof-cmso:8080/cmso/v1/tm/closeCancelChangeRecord
+tm.updatePath=https://oof-cmso:8080/cmso/v1/tm/updateChangeRecord
tm.approvalStatus=Approved|Scheduled,Approved|Assigned
tm.template.folder=data/templates/tm
diff --git a/cmso-service/etc/config/truststoreONAPall.jks b/cmso-service/etc/config/truststoreONAPall.jks
new file mode 100644
index 0000000..ff844b1
--- /dev/null
+++ b/cmso-service/etc/config/truststoreONAPall.jks
Binary files differ
diff --git a/cmso-service/src/main/java/org/onap/optf/cmso/optimizer/CmsoOptimizerClient.java b/cmso-service/src/main/java/org/onap/optf/cmso/optimizer/CmsoOptimizerClient.java
index e3974cd..6d8436c 100644
--- a/cmso-service/src/main/java/org/onap/optf/cmso/optimizer/CmsoOptimizerClient.java
+++ b/cmso-service/src/main/java/org/onap/optf/cmso/optimizer/CmsoOptimizerClient.java
@@ -413,7 +413,7 @@ public class CmsoOptimizerClient {
break;
}
} catch (Exception e) {
- Observation.report(LogMessages.UNEXPECTED_EXCEPTION, e.toString());
+ Observation.report(LogMessages.UNEXPECTED_EXCEPTION, e, e.toString());
hcc.setStatus(e.toString());
} finally {
Mdc.restore(mdcSave);
diff --git a/cmso-ticketmgt/etc/config/org.onap.oof.jks b/cmso-ticketmgt/etc/config/org.onap.oof.jks
new file mode 100644
index 0000000..535abaa
--- /dev/null
+++ b/cmso-ticketmgt/etc/config/org.onap.oof.jks
Binary files differ
diff --git a/cmso-ticketmgt/etc/config/truststoreONAPall.jks b/cmso-ticketmgt/etc/config/truststoreONAPall.jks
new file mode 100644
index 0000000..ff844b1
--- /dev/null
+++ b/cmso-ticketmgt/etc/config/truststoreONAPall.jks
Binary files differ
diff --git a/cmso-topology/etc/config/org.onap.oof.jks b/cmso-topology/etc/config/org.onap.oof.jks
new file mode 100644
index 0000000..535abaa
--- /dev/null
+++ b/cmso-topology/etc/config/org.onap.oof.jks
Binary files differ
diff --git a/cmso-topology/etc/config/truststoreONAPall.jks b/cmso-topology/etc/config/truststoreONAPall.jks
new file mode 100644
index 0000000..ff844b1
--- /dev/null
+++ b/cmso-topology/etc/config/truststoreONAPall.jks
Binary files differ