diff options
author | Jim Hahn <jrh3@att.com> | 2021-07-20 14:07:35 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-07-21 16:58:06 -0400 |
commit | f15f54b93718d7cefce2a81689662fc0f09e8958 (patch) | |
tree | d6d6fbbcbcfefbe7424a6aad04ecb98c5c883631 /models-interactions/model-simulators/src/test | |
parent | 1755cdd3b3b44dce9369358cdc89f76a5bf848fe (diff) |
Added Xacml actor
Cloned the guard actor to use as a starting point for creating a more
generic actor for interacting with the xacml-pdp.
Also renamed various classes.
Issue-ID: POLICY-3501
Change-Id: I9bd0107845de41a349d56259e6cfa6a3180efa25
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-interactions/model-simulators/src/test')
-rw-r--r-- | models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/XacmlSimulatorTest.java (renamed from models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/GuardSimulatorTest.java) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/GuardSimulatorTest.java b/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/XacmlSimulatorTest.java index e553636ec..53b476fb2 100644 --- a/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/GuardSimulatorTest.java +++ b/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/XacmlSimulatorTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * simulators * ================================================================================ - * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2019, 2021 AT&T Intellectual Property. All rights reserved. * Modifications Copyright (C) 2019-2020 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); @@ -38,7 +38,7 @@ import org.onap.policy.models.decisions.concepts.DecisionRequest; import org.onap.policy.models.decisions.concepts.DecisionResponse; import org.onap.policy.rest.RestManager; -public class GuardSimulatorTest { +public class XacmlSimulatorTest { private static final StandardCoder coder = new StandardCoder(); /** @@ -47,7 +47,7 @@ public class GuardSimulatorTest { @BeforeClass public static void setupSimulator() { try { - org.onap.policy.simulators.Util.buildGuardSim(); + org.onap.policy.simulators.Util.buildXacmlSim(); } catch (Exception e) { fail(e.getMessage()); } @@ -61,7 +61,7 @@ public class GuardSimulatorTest { @Test public void testGuard() throws CoderException { String request = makeRequest("test_actor_id", "test_op_id", "test_target", "test_clName"); - String url = "http://localhost:" + Util.GUARDSIM_SERVER_PORT + "/policy/pdpx/v1/decision"; + String url = "http://localhost:" + Util.XACMLSIM_SERVER_PORT + "/policy/pdpx/v1/decision"; Pair<Integer, String> response = new RestManager().post(url, "testUname", "testPass", null, "application/json", request); assertNotNull(response); |