diff options
author | edepaul <paul.p.dennehy@est.tech> | 2019-03-13 11:54:41 +0000 |
---|---|---|
committer | edepaul <paul.p.dennehy@est.tech> | 2019-03-13 11:54:41 +0000 |
commit | 58553dd3f01290e5b8acac7cfcb63016d7a037da (patch) | |
tree | 4253295c8b1931658707a0ae580d8eb0a7258b70 /datarouter-prov/src/test/java | |
parent | 7744ccb9eb0a755c1dad8fc8ec42e4ad645d20d6 (diff) |
Adding decompression option for user to a feed.
Change-Id: I2276d109fd65052cc043cdc2c7b4eb10655a0ac3
Issue-ID: DMAAP-1043
Signed-off-by: edepaul <paul.p.dennehy@est.tech>
Diffstat (limited to 'datarouter-prov/src/test/java')
2 files changed, 9 insertions, 0 deletions
diff --git a/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/SubscriptionServletTest.java b/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/SubscriptionServletTest.java index 43973d56..aede69cf 100755 --- a/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/SubscriptionServletTest.java +++ b/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/SubscriptionServletTest.java @@ -279,6 +279,7 @@ public class SubscriptionServletTest extends DrServletTestBase { jo.put("metadataOnly", true); jo.put("suspend", true); jo.put("privilegedSubscriber", true); + jo.put("decompress", true); jo.put("delivery", JSObject); jo.put("subscriber", "differentSubscriber"); jo.put("sync", true); @@ -303,6 +304,7 @@ public class SubscriptionServletTest extends DrServletTestBase { jo.put("suspend", true); jo.put("privilegedSubscriber", true); jo.put("delivery", JSObject); + jo.put("decompress", true); jo.put("sync", true); return jo; } @@ -331,6 +333,7 @@ public class SubscriptionServletTest extends DrServletTestBase { jo.put("metadataOnly", true); jo.put("suspend", true); jo.put("privilegedSubscriber", true); + jo.put("decompress", true); jo.put("delivery", JSObject); jo.put("sync", true); jo.put("changeowner", true); @@ -431,6 +434,8 @@ public class SubscriptionServletTest extends DrServletTestBase { jo.put("metadataOnly", true); jo.put("suspend", true); jo.put("delivery", JSObject); + jo.put("privilegedSubscriber", false); + jo.put("decompress", false); jo.put("failed", false); return jo; } @@ -504,6 +509,7 @@ public class SubscriptionServletTest extends DrServletTestBase { subscription.setMetadataOnly(false); subscription.setSuspended(false); subscription.setPrivilegedSubscriber(false); + subscription.setDecompress(false); subscription.doInsert(db.getConnection()); } @@ -518,6 +524,7 @@ public class SubscriptionServletTest extends DrServletTestBase { subscription.setMetadataOnly(false); subscription.setSuspended(false); subscription.setPrivilegedSubscriber(false); + subscription.setDecompress(false); subscription.changeOwnerShip(); subscription.doUpdate(db.getConnection()); } diff --git a/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/beans/SubscriptionTest.java b/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/beans/SubscriptionTest.java index 3e6aed07..d859e082 100644 --- a/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/beans/SubscriptionTest.java +++ b/datarouter-prov/src/test/java/org/onap/dmaap/datarouter/provisioning/beans/SubscriptionTest.java @@ -64,6 +64,7 @@ public class SubscriptionTest { subscription.setSuspended(false); subscription.setPrivilegedSubscriber(false); subscription.setLinks(subLinks); + subscription.setDecompress(false); Assert.assertEquals(2, subscription.getGroupid()); Assert.assertEquals(subDelivery, subscription.getDelivery()); @@ -71,5 +72,6 @@ public class SubscriptionTest { Assert.assertFalse(subscription.isMetadataOnly()); Assert.assertFalse(subscription.isSuspended()); Assert.assertFalse(subscription.isPrivilegedSubscriber()); + Assert.assertFalse(subscription.isDecompress()); } }
\ No newline at end of file |