Fixed unittest error of secure resource provider.
authorChul Lee <chuls.lee@samsung.com>
Thu, 27 Oct 2016 14:58:01 +0000 (23:58 +0900)
committerRandeep Singh <randeep.s@samsung.com>
Fri, 28 Oct 2016 01:05:31 +0000 (01:05 +0000)
Change-Id: If0a7be512046ab14e7539a6ad2d03a3078d98550
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13787
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/security/provisioning/unittest/secureresourceprovider.cpp

index 967e3be..fdb484a 100644 (file)
@@ -310,9 +310,10 @@ TEST_F(SRPTest, SRPSaveOwnCertChainTest)
     key.data = keyData;
     key.len = sizeof(keyData);
 
+    //This test case cannot succeed. because doxm resource has not been initialized.
     result = SRPSaveOwnCertChain(&cert, &key, &credId);
 
-    EXPECT_EQ(OC_STACK_OK, result);
+    EXPECT_EQ(OC_STACK_ERROR, result);
 }
 
 TEST_F(SRPTest, SRPSaveOwnCertChainTestNullCert)