From 104c0766e075d7d3c529f4032d47594f9034afbd Mon Sep 17 00:00:00 2001 From: sebdet Date: Wed, 21 Apr 2021 00:37:56 +0200 Subject: Fix issue in log + Pdp payload Fix log issue that prevent the error to be reported properly + fix the pdp payload construction Issue-ID: POLICY-3205 Signed-off-by: sebdet Change-Id: Ic80ea4f679719378fc8134f7282b361306d797b0 --- .../policy/pdp-group-multi-policies-payload.json | 30 ++++------------------ .../example/policy/pdp-group-policy-payload.json | 14 ++-------- 2 files changed, 7 insertions(+), 37 deletions(-) (limited to 'src/test/resources/example') diff --git a/src/test/resources/example/policy/pdp-group-multi-policies-payload.json b/src/test/resources/example/policy/pdp-group-multi-policies-payload.json index f8625ebbb..5e9c77f45 100644 --- a/src/test/resources/example/policy/pdp-group-multi-policies-payload.json +++ b/src/test/resources/example/policy/pdp-group-multi-policies-payload.json @@ -12,12 +12,7 @@ "version": "1.0.0" } ] - } - ] - }, - { - "name": "pdpgroup1", - "deploymentSubgroups": [ + }, { "pdpType": "pdpsubgroup1", "action": "POST", @@ -27,12 +22,7 @@ "version": "1.0.0" } ] - } - ] - }, - { - "name": "pdpgroup1", - "deploymentSubgroups": [ + }, { "pdpType": "pdpsubgroup1", "action": "POST", @@ -57,12 +47,7 @@ "version": "1.0.0" } ] - } - ] - }, - { - "name": "pdpgroup2", - "deploymentSubgroups": [ + }, { "pdpType": "pdpsubgroup2", "action": "POST", @@ -72,12 +57,7 @@ "version": "2.0.0" } ] - } - ] - }, - { - "name": "pdpgroup2", - "deploymentSubgroups": [ + }, { "pdpType": "pdpsubgroup2", "action": "DELETE", @@ -91,4 +71,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/src/test/resources/example/policy/pdp-group-policy-payload.json b/src/test/resources/example/policy/pdp-group-policy-payload.json index 44a48dacb..897fb43be 100644 --- a/src/test/resources/example/policy/pdp-group-policy-payload.json +++ b/src/test/resources/example/policy/pdp-group-policy-payload.json @@ -12,12 +12,7 @@ "version": "1.0.0" } ] - } - ] - }, - { - "name": "pdpGroup2", - "deploymentSubgroups": [ + }, { "pdpType": "pdpSubgroup2", "action": "POST", @@ -27,12 +22,7 @@ "version": "1.0.0" } ] - } - ] - }, - { - "name": "pdpGroup2", - "deploymentSubgroups": [ + }, { "pdpType": "pdpSubgroup1", "action": "POST", -- cgit 1.2.3-korg