summaryrefslogtreecommitdiffstats
path: root/plugins/forwarding-plugins/src/test/resources
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-07-19 16:21:25 -0400
committerJim Hahn <jrh3@att.com>2021-07-30 09:59:53 -0400
commit1b21a87140899dd453d2f8766dd1aa98aec6ce14 (patch)
tree995df7175f51668f2f2173c2f5901dd93bb7fad3 /plugins/forwarding-plugins/src/test/resources
parent9eba753aed9d5575fa24ab8806e4d614668c75cb (diff)
Use new RestClientParameters class in distribution
This is a re-do of a previously reverted review. It's mostly the same as before, but there are some minor differences. Replaced LifecycleApiForwarderParameters with RestClientParameters. Also modified the code to get the HttpClient objects once. Also removed some unused json test files. This requires changes to property files in CSITs and OOM: - add "clientName" to the api & pap structures - rename "hostName" to "hostname" - rename "isHttps" to "useHttps" and move it inside the api & pap structures Issue-ID: POLICY-3456 Change-Id: I32b04bc3b6880ec7798814dad268143bc3b06faf Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'plugins/forwarding-plugins/src/test/resources')
-rw-r--r--plugins/forwarding-plugins/src/test/resources/parameters/ApexPdpPolicyForwarderParameters.json6
-rw-r--r--plugins/forwarding-plugins/src/test/resources/parameters/ApexPdpPolicyForwarderParametersInvalid.json6
-rw-r--r--plugins/forwarding-plugins/src/test/resources/parameters/LifecycleApiPolicyForwarderParameters.json11
-rw-r--r--plugins/forwarding-plugins/src/test/resources/parameters/LifecycleApiPolicyForwarderParametersInvalid.json11
-rw-r--r--plugins/forwarding-plugins/src/test/resources/parameters/XacmlPdpPolicyForwarderParameters.json10
-rw-r--r--plugins/forwarding-plugins/src/test/resources/parameters/XacmlPdpPolicyForwarderParametersInvalid.json10
6 files changed, 14 insertions, 40 deletions
diff --git a/plugins/forwarding-plugins/src/test/resources/parameters/ApexPdpPolicyForwarderParameters.json b/plugins/forwarding-plugins/src/test/resources/parameters/ApexPdpPolicyForwarderParameters.json
deleted file mode 100644
index d244e0be..00000000
--- a/plugins/forwarding-plugins/src/test/resources/parameters/ApexPdpPolicyForwarderParameters.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "hostname":"10.10.10.10",
- "port":"1234",
- "ignoreConflicts": false,
- "forceUpdate": true
-} \ No newline at end of file
diff --git a/plugins/forwarding-plugins/src/test/resources/parameters/ApexPdpPolicyForwarderParametersInvalid.json b/plugins/forwarding-plugins/src/test/resources/parameters/ApexPdpPolicyForwarderParametersInvalid.json
deleted file mode 100644
index c87b7767..00000000
--- a/plugins/forwarding-plugins/src/test/resources/parameters/ApexPdpPolicyForwarderParametersInvalid.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "hostname":"",
- "port":"-1",
- "ignoreConflicts": false,
- "forceUpdate": true
-}
diff --git a/plugins/forwarding-plugins/src/test/resources/parameters/LifecycleApiPolicyForwarderParameters.json b/plugins/forwarding-plugins/src/test/resources/parameters/LifecycleApiPolicyForwarderParameters.json
index 0791e1ae..ba6058b2 100644
--- a/plugins/forwarding-plugins/src/test/resources/parameters/LifecycleApiPolicyForwarderParameters.json
+++ b/plugins/forwarding-plugins/src/test/resources/parameters/LifecycleApiPolicyForwarderParameters.json
@@ -1,16 +1,19 @@
{
"apiParameters": {
- "hostName": "0.0.0.0",
+ "clientName": "policy-api",
+ "hostname": "0.0.0.0",
"port": 6969,
+ "useHttps": false,
"userName": "healthcheck",
"password": "zb!XztG34"
},
"papParameters": {
- "hostName": "0.0.0.0",
+ "clientName": "policy-pap",
+ "hostname": "0.0.0.0",
"port": 6969,
+ "useHttps": false,
"userName": "healthcheck",
"password": "zb!XztG34"
},
- "isHttps": false,
"deployPolicies": true
-} \ No newline at end of file
+}
diff --git a/plugins/forwarding-plugins/src/test/resources/parameters/LifecycleApiPolicyForwarderParametersInvalid.json b/plugins/forwarding-plugins/src/test/resources/parameters/LifecycleApiPolicyForwarderParametersInvalid.json
index ca0558a6..88dd74ba 100644
--- a/plugins/forwarding-plugins/src/test/resources/parameters/LifecycleApiPolicyForwarderParametersInvalid.json
+++ b/plugins/forwarding-plugins/src/test/resources/parameters/LifecycleApiPolicyForwarderParametersInvalid.json
@@ -1,16 +1,19 @@
{
"apiParameters": {
- "hostName": "",
+ "clientName": "policy-api",
+ "hostname": "",
"port": -1,
+ "useHttps": false,
"userName": "healthcheck",
"password": "zb!XztG34"
},
"papParameters": {
- "hostName": "",
+ "clientName": "policy-pap",
+ "hostname": "",
"port": -2,
+ "useHttps": false,
"userName": "healthcheck",
"password": "zb!XztG34"
},
- "isHttps": false,
"deployPolicies": true
-} \ No newline at end of file
+}
diff --git a/plugins/forwarding-plugins/src/test/resources/parameters/XacmlPdpPolicyForwarderParameters.json b/plugins/forwarding-plugins/src/test/resources/parameters/XacmlPdpPolicyForwarderParameters.json
deleted file mode 100644
index 0e115ef2..00000000
--- a/plugins/forwarding-plugins/src/test/resources/parameters/XacmlPdpPolicyForwarderParameters.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "useHttps": true,
- "hostname": "10.10.10.10",
- "port": 1234,
- "userName": "myUser",
- "password": "myPassword",
- "clientAuth": "myClientAuth",
- "isManaged": false,
- "pdpGroup": "myPdpGroup"
-} \ No newline at end of file
diff --git a/plugins/forwarding-plugins/src/test/resources/parameters/XacmlPdpPolicyForwarderParametersInvalid.json b/plugins/forwarding-plugins/src/test/resources/parameters/XacmlPdpPolicyForwarderParametersInvalid.json
deleted file mode 100644
index 03e342b6..00000000
--- a/plugins/forwarding-plugins/src/test/resources/parameters/XacmlPdpPolicyForwarderParametersInvalid.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "useHttps": true,
- "hostname": "",
- "port": -2,
- "userName": "",
- "password": "",
- "clientAuth": "myClientAuth",
- "isManaged": false,
- "pdpGroup": "default"
-} \ No newline at end of file