Remove RT in RD publish unittest.
authorZiran Sun <ziran.sun@samsung.com>
Fri, 25 Aug 2017 09:01:48 +0000 (10:01 +0100)
committerZiran Sun <ziran.sun@samsung.com>
Fri, 1 Sep 2017 08:24:31 +0000 (08:24 +0000)
Remove rt referece of oic.wk.rdpub in RD unitests to be inline with spec.

Change-Id: I0ed49dcca1634617fd4b21280c7a7e14833989ca
Signed-off-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/22131
Reviewed-by: Todd Malsbary <todd.malsbary@intel.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
resource/csdk/resource-directory/unittests/rdtests.cpp

index b4cbf24..410bdb6 100644 (file)
@@ -556,7 +556,7 @@ TEST_P(RDDiscoverTests, ResourceQueryMatchesRemoteOnly)
     OIC_LOG_PAYLOAD(DEBUG, (OCPayload *)repPayload);
 
     itst::Callback publishCB(&handlePublishCB);
-    EXPECT_EQ(OC_STACK_OK, OCDoResource(NULL, OC_REST_POST, "127.0.0.1/oic/rd?rt=oic.wk.rdpub", NULL,
+    EXPECT_EQ(OC_STACK_OK, OCDoResource(NULL, OC_REST_POST, "127.0.0.1/oic/rd", NULL,
                     (OCPayload *)repPayload, CT_DEFAULT, OC_HIGH_QOS, publishCB, options, numOptions));
     EXPECT_EQ(OC_STACK_OK, publishCB.Wait(100));