Set of fixes for pnfsimulator startup 49/104049/1
authorTomasz Golabek <tomasz.golabek@nokia.com>
Fri, 20 Mar 2020 10:49:04 +0000 (11:49 +0100)
committerTomasz Golabek <tomasz.golabek@nokia.com>
Fri, 20 Mar 2020 11:58:30 +0000 (12:58 +0100)
* v0.7.7 of netopeer used
* SSLAuthenticationHelper marked as primary bean to avoid duplicated-bean exception
* spring props properly mounted into container

Change-Id: Ib6bb32f32a7f60786901ffbf592b1a26b5cb1cbf
Issue-ID: INT-1320
Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
test/mocks/pnfsimulator/netconfsimulator/Dockerfile_netopeer
test/mocks/pnfsimulator/pnfsimulator/docker-compose.yml
test/mocks/pnfsimulator/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/utils/ssl/SSLAuthenticationHelper.java

index 876b786..9fe56e1 100644 (file)
@@ -1,4 +1,4 @@
-FROM sysrepo/sysrepo-netopeer2:latest
+FROM sysrepo/sysrepo-netopeer2:v0.7.7
 ADD apt.conf /etc/apt/apt.conf
 RUN apt-get update &&  apt-get install -y python3 python3-pip python-pip && pip3 install flask flask_restful kafka-python && pip install kafka-python
 RUN cd /opt/dev/sysrepo && cmake -DGEN_PYTHON_VERSION=2 -DREPOSITORY_LOC:PATH=/etc/sysrepo . && make install
index 3ec8931..23797fe 100644 (file)
@@ -31,6 +31,7 @@ services:
       - ./logs:/var/log
       - ./templates:/app/templates
       - ./store:/app/store
+      - ./src/main/resources/application.properties:/app/application.properties
     restart: on-failure
     depends_on:
       - mongo
index 40b8ab3..eda17ef 100644 (file)
@@ -22,11 +22,13 @@ package org.onap.pnfsimulator.simulator.client.utils.ssl;
 import java.io.Serializable;
 import org.springframework.boot.context.properties.ConfigurationProperties;
 import org.springframework.cloud.context.config.annotation.RefreshScope;
+import org.springframework.context.annotation.Primary;
 import org.springframework.stereotype.Component;
 
 @Component
 @ConfigurationProperties(prefix = "ssl")
 @RefreshScope
+@Primary
 public class SSLAuthenticationHelper implements Serializable {
 
     private boolean clientCertificateEnabled;