Fix provisioning unit tests 47/20247/3
authorOleksandr Dmytrenko <o.dmytrenko@samsung.com>
Mon, 22 May 2017 10:58:28 +0000 (13:58 +0300)
committerRandeep Singh <randeep.s@samsung.com>
Mon, 22 May 2017 17:07:21 +0000 (17:07 +0000)
Update test due to DOS enabling

Change-Id: I9f0c4b0b01ee3fe79a2126cd580cca4e6d374afd
Signed-off-by: Oleksandr Dmytrenko <o.dmytrenko@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20247
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/security/provisioning/unittest/secureresourceprovider.cpp

index 764bc64..449f14d 100644 (file)
@@ -97,7 +97,7 @@ TEST(SRPProvisionACLTest, NullACL)
 
 TEST(SRPProvisionACLTest, InvalidVersion)
 {
-    EXPECT_EQ(OC_STACK_INVALID_PARAM, SRPProvisionACL(NULL, &pDev1, &acl, OIC_SEC_ACL_UNKNOWN, &provisioningCB));
+    EXPECT_EQ(OC_STACK_ERROR, SRPProvisionACL(NULL, &pDev1, &acl, OIC_SEC_ACL_UNKNOWN, &provisioningCB));
 }
 
 TEST(SRPProvisionCredentialsTest, NullDevice1)
@@ -455,7 +455,7 @@ TEST_F(SRPTest, SRPProvisionTrustCertChainNoResource)
     OCProvisionDev_t deviceInfo;
 
     result = SRPProvisionTrustCertChain(&ctx, type, credId, &deviceInfo, provisioningCB);
-    EXPECT_EQ(OC_STACK_NO_RESOURCE, result);
+    EXPECT_EQ(OC_STACK_ERROR, result);
 }
 
 TEST(SRPProvisionTrustCertChainTest, SRPGetACLResourceNoCallback)