From 8bbe6df72a20c88774b7258d87f11d2aaec12b3c Mon Sep 17 00:00:00 2001 From: Stanislav Trailov Date: Thu, 29 Jun 2023 12:41:49 +0300 Subject: [PATCH] Add comment in test for specific query parameter usage Signed-off-by: Stanislav Trailov --- .../mgmt/rest/resource/MgmtDistributionSetTagResourceTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hawkbit-rest/hawkbit-mgmt-resource/src/test/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtDistributionSetTagResourceTest.java b/hawkbit-rest/hawkbit-mgmt-resource/src/test/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtDistributionSetTagResourceTest.java index f863e88f7..e136d606f 100644 --- a/hawkbit-rest/hawkbit-mgmt-resource/src/test/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtDistributionSetTagResourceTest.java +++ b/hawkbit-rest/hawkbit-mgmt-resource/src/test/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtDistributionSetTagResourceTest.java @@ -122,6 +122,8 @@ public class MgmtDistributionSetTagResourceTest extends AbstractManagementApiInt distributionSetManagement.toggleTagAssignment(List.of(distributionSet1.getId(), distributionSet2.getId()), tag1.getName()); distributionSetManagement.toggleTagAssignment(List.of(distributionSet1.getId()), tag2.getName()); + // pass here q directly as a pure string because .queryParam method delimiters the parameters in q with , + // which is logical OR, we want AND here mvc.perform(get(MgmtRestConstants.DISTRIBUTIONSET_TAG_V1_REQUEST_MAPPING + "?" + MgmtRestConstants.REQUEST_PARAMETER_SEARCH + "=distributionset.id==" + distributionSet1.getId() + ";description==" + tag1.getDescription())