diff options
author | 2019-06-07 11:33:59 -0400 | |
---|---|---|
committer | 2019-06-07 11:52:37 -0400 | |
commit | de6a7d44138a968b798eab678f20885e7d48ebc9 (patch) | |
tree | 778941f47eb01cabeb200eeff02fb79a340fcd2d /main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestProviderBase.java | |
parent | 9f41ede37c78dd5dcea1851e114b7bdf9a5df7a5 (diff) |
Undeploy all versions of a policy
Modified the code to undeploy all versions of a policy if the
version is not specified.
Change-Id: Ic3815733b918e1cff8f381d54bceb710a35319b7
Issue-ID: POLICY-1782
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestProviderBase.java')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestProviderBase.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestProviderBase.java b/main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestProviderBase.java index c171e946..3a91363f 100644 --- a/main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestProviderBase.java +++ b/main/src/test/java/org/onap/policy/pap/main/rest/depundep/TestProviderBase.java @@ -345,7 +345,9 @@ public class TestProviderBase extends ProviderSuper { } @Override - protected BiFunction<PdpGroup, PdpSubGroup, Boolean> makeUpdater(ToscaPolicy policy) { + protected BiFunction<PdpGroup, PdpSubGroup, Boolean> makeUpdater(ToscaPolicy policy, + ToscaPolicyIdentifierOptVersion desiredPolicy) { + return (group, subgroup) -> { if (shouldUpdate.remove()) { // queue indicated that the update should succeed |