diff options
author | 2021-11-03 08:42:47 +0000 | |
---|---|---|
committer | 2021-11-03 13:06:22 +0000 | |
commit | eb7277b143841b36da32637264971686a5c9ad7d (patch) | |
tree | bc6ab909dd9ee196f8d56b62467b68bd259f9a0e /main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java | |
parent | d95be7b4bc9e97385dd77ae97556358e7fd00e94 (diff) |
Rename username for PAP operations.
Use an account other than healthcheck in PAP for provisioning of policies.
Issue-ID: POLICY-2744
Change-Id: I897f7a4fffbac2d4bbd9cceb059bae1794753aa7
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java b/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java index e1d1e14a..98a24a62 100644 --- a/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java +++ b/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java @@ -60,7 +60,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** - * Class to perform unit test of {@link PapRestServer}. + * Class to perform unit test of {@link PapRestControllerV1}. * * @author Ram Krishna Verma (ram.krishna.verma@est.tech) */ @@ -214,7 +214,7 @@ public class CommonPapRestServer { /** * Stops the "Main". * - * @throws Exception if an error occurs + * @throws PolicyPapException if an error occurs */ private static void stopMain() throws PolicyPapException { if (main != null) { @@ -294,7 +294,7 @@ public class CommonPapRestServer { client.register(GsonMessageBodyHandler.class); if (includeAuth) { - final HttpAuthenticationFeature feature = HttpAuthenticationFeature.basic("healthcheck", "zb!XztG34"); + final HttpAuthenticationFeature feature = HttpAuthenticationFeature.basic("policyadmin", "zb!XztG34"); client.register(feature); } |