summaryrefslogtreecommitdiffstats
path: root/plugins/forwarding-plugins/src/test/java
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2021-11-04 14:25:39 +0000
committeradheli.tavares <adheli.tavares@est.tech>2021-11-04 14:30:07 +0000
commitb93f16723309cdc47f5de6b2840bc410657d41e7 (patch)
tree6872a2a9df7a994cdfffa8a59b9e12025f8d2cae /plugins/forwarding-plugins/src/test/java
parent0d1a0652da4fbb9a717055b632f7bc09f51349ec (diff)
Rename user for API and PAP references.
Use an account other than healthcheck in API and PAP for provisioning of policies. Issue-ID: POLICY-2744 Change-Id: I2d626276daba25d405be24cf81233ae848a8674e Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'plugins/forwarding-plugins/src/test/java')
-rw-r--r--plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiForwarderParametersTest.java6
-rw-r--r--plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarderTest.java8
-rw-r--r--plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/testclasses/CommonTestData.java5
3 files changed, 8 insertions, 11 deletions
diff --git a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiForwarderParametersTest.java b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiForwarderParametersTest.java
index 04bcbeaf..6d4ab363 100644
--- a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiForwarderParametersTest.java
+++ b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiForwarderParametersTest.java
@@ -1,6 +1,6 @@
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019 Nordix Foundation.
+ * Copyright (C) 2019-2021 Nordix Foundation.
* Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -39,11 +39,11 @@ public class LifecycleApiForwarderParametersTest {
private static final String POLICY_API_HOST_NAME = "0.0.0.0";
private static final int POLICY_API_PORT = 6969;
- private static final String POLICY_API_USER = "healthcheck";
+ private static final String POLICY_API_USER = "policyadmin";
private static final String POLICY_API_PASSWORD = "zb!XztG34";
private static final String POLICY_PAP_HOST_NAME = "0.0.0.0";
private static final int POLICY_PAP_PORT = 6969;
- private static final String POLICY_PAP_USER = "healthcheck";
+ private static final String POLICY_PAP_USER = "policyadmin";
private static final String POLICY_PAP_PASSWORD = "zb!XztG34";
diff --git a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarderTest.java b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarderTest.java
index d9b64ce2..759ec1d3 100644
--- a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarderTest.java
+++ b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/lifecycle/api/LifecycleApiPolicyForwarderTest.java
@@ -1,6 +1,6 @@
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019 Nordix Foundation.
+ * Copyright (C) 2019-2021 Nordix Foundation.
* Modifications Copyright (C) 2020 AT&T Inc.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -51,8 +51,8 @@ public class LifecycleApiPolicyForwarderTest {
private static final String POLICY = "src/test/resources/parameters/sample_policy.json";
private static final String POLICY_ERROR = "src/test/resources/parameters/sample_policy_failure.json";
private static final String POLICY_TYPE = "src/test/resources/parameters/sample_policy_type.json";
- private StandardCoder standardCoder = new StandardCoder();
- private static LifecycleApiSimulatorMain simulator = new LifecycleApiSimulatorMain();
+ private final StandardCoder standardCoder = new StandardCoder();
+ private static final LifecycleApiSimulatorMain simulator = new LifecycleApiSimulatorMain();
/**
* Set up.
@@ -126,7 +126,7 @@ public class LifecycleApiPolicyForwarderTest {
.hasMessageContaining("Failed forwarding the following entities:");
}
- class UnsupportedPolicy extends ToscaEntity {
+ static class UnsupportedPolicy extends ToscaEntity {
@Override
public String getName() {
diff --git a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/testclasses/CommonTestData.java b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/testclasses/CommonTestData.java
index 72edc123..2273cec5 100644
--- a/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/testclasses/CommonTestData.java
+++ b/plugins/forwarding-plugins/src/test/java/org/onap/policy/distribution/forwarding/testclasses/CommonTestData.java
@@ -1,6 +1,6 @@
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019 Nordix Foundation.
+ * Copyright (C) 2019-2021 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,7 +21,6 @@
package org.onap.policy.distribution.forwarding.testclasses;
import java.io.File;
-import org.onap.policy.common.utils.coder.Coder;
import org.onap.policy.common.utils.coder.CoderException;
import org.onap.policy.common.utils.coder.StandardCoder;
@@ -32,8 +31,6 @@ import org.onap.policy.common.utils.coder.StandardCoder;
*/
public class CommonTestData {
- public static final Coder coder = new StandardCoder();
-
/**
* Returns PolicyForwarderParameters for test cases.
*