summaryrefslogtreecommitdiffstats
path: root/participant
diff options
context:
space:
mode:
authorbrunomilitzer <bruno.militzer@est.tech>2021-11-18 10:26:50 +0000
committerbrunomilitzer <bruno.militzer@est.tech>2021-11-18 11:35:35 +0000
commita72ce28fb60c1903ed3ef3da6bb3faac1ae801ba (patch)
tree3e414037e597133f3881fdc0a17d21b100006ee4 /participant
parent0b59c6652adac854fb524aa8cd1854f4672ceeac (diff)
Added Camel Unit Tests
Added Camel Unit Tests to test creation of instance properties Updated credentials for Rest End point Issue-ID: POLICY-3565 Change-Id: I0899d3052588822f02a8a003eb4bc406bc887713 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
Diffstat (limited to 'participant')
-rw-r--r--participant/participant-impl/participant-impl-policy/src/main/resources/config/application.yaml4
-rw-r--r--participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/controlloop/participant/policy/main/parameters/CommonTestData.java4
-rw-r--r--participant/participant-impl/participant-impl-policy/src/test/resources/application_test.properties2
-rw-r--r--participant/participant-impl/participant-impl-simulator/src/main/resources/config/application.yaml2
-rw-r--r--participant/participant-impl/participant-impl-simulator/src/test/resources/application_test.properties4
5 files changed, 8 insertions, 8 deletions
diff --git a/participant/participant-impl/participant-impl-policy/src/main/resources/config/application.yaml b/participant/participant-impl/participant-impl-policy/src/main/resources/config/application.yaml
index 5839aae66..2aa33c1c4 100644
--- a/participant/participant-impl/participant-impl-policy/src/main/resources/config/application.yaml
+++ b/participant/participant-impl/participant-impl-policy/src/main/resources/config/application.yaml
@@ -11,7 +11,7 @@ participant:
clientName: api
hostname: policy-api
port: 6969
- userName: healthcheck
+ userName: policyadmin
password: zb!XztG34
useHttps: true
allowSelfSignedCerts: true
@@ -19,7 +19,7 @@ participant:
clientName: pap
hostname: policy-pap
port: 6969
- userName: healthcheck
+ userName: policyadmin
password: zb!XztG34
useHttps: true
allowSelfSignedCerts: true
diff --git a/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/controlloop/participant/policy/main/parameters/CommonTestData.java b/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/controlloop/participant/policy/main/parameters/CommonTestData.java
index 41af8a6ec..e965370cc 100644
--- a/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/controlloop/participant/policy/main/parameters/CommonTestData.java
+++ b/participant/participant-impl/participant-impl-policy/src/test/java/org/onap/policy/clamp/controlloop/participant/policy/main/parameters/CommonTestData.java
@@ -84,7 +84,7 @@ public class CommonTestData {
map.put("clientName", "pap");
map.put("hostname", "localhost");
map.put("port", 6968);
- map.put("userName", "healthcheck");
+ map.put("userName", "policyadmin");
map.put("password", "zb!XztG34");
map.put("https", false);
map.put("allowSelfSignedCerts", true);
@@ -101,7 +101,7 @@ public class CommonTestData {
map.put("clientName", "api");
map.put("hostname", "localhost");
map.put("port", 6969);
- map.put("userName", "healthcheck");
+ map.put("userName", "policyadmin");
map.put("password", "zb!XztG34");
map.put("https", false);
map.put("allowSelfSignedCerts", true);
diff --git a/participant/participant-impl/participant-impl-policy/src/test/resources/application_test.properties b/participant/participant-impl/participant-impl-policy/src/test/resources/application_test.properties
index f857704d3..49781407d 100644
--- a/participant/participant-impl/participant-impl-policy/src/test/resources/application_test.properties
+++ b/participant/participant-impl/participant-impl-policy/src/test/resources/application_test.properties
@@ -7,7 +7,7 @@ server.http-port=8085
participant.policyApiParameters.clientName=api
participant.policyApiParameters.hostname=localhost
participant.policyApiParameters.port=6969
-participant.policyApiParameters.userName=healthcheck
+participant.policyApiParameters.userName=policyadmin
participant.policyApiParameters.password=zb!XztG34
participant.policyApiParameters.https=false
participant.policyApiParameters.allowSelfSignedCerts=true
diff --git a/participant/participant-impl/participant-impl-simulator/src/main/resources/config/application.yaml b/participant/participant-impl/participant-impl-simulator/src/main/resources/config/application.yaml
index 320b53805..d750d46d2 100644
--- a/participant/participant-impl/participant-impl-simulator/src/main/resources/config/application.yaml
+++ b/participant/participant-impl/participant-impl-simulator/src/main/resources/config/application.yaml
@@ -1,7 +1,7 @@
spring:
security:
user:
- name: healthcheck
+ name: runtimeUser
password: zb!XztG34
server:
diff --git a/participant/participant-impl/participant-impl-simulator/src/test/resources/application_test.properties b/participant/participant-impl/participant-impl-simulator/src/test/resources/application_test.properties
index f162367f8..a4a1f99e5 100644
--- a/participant/participant-impl/participant-impl-simulator/src/test/resources/application_test.properties
+++ b/participant/participant-impl/participant-impl-simulator/src/test/resources/application_test.properties
@@ -1,4 +1,4 @@
-spring.security.user.name=healthcheck
+spring.security.user.name=runtimeUser
spring.security.user.password=zb!XztG34
server.servlet.context-path=/onap/participantsim
@@ -6,7 +6,7 @@ server.error.path=/error
participant.restServerParameters.host=0.0.0.0
participant.restServerParameters.port=6969
-participant.restServerParameters.userName=healthcheck
+participant.restServerParameters.userName=runtimeUser
participant.restServerParameters.password=zb!XztG34
participant.restServerParameters.https=false
participant.restServerParameters.aaf=false