From 1f3087a30ecd2d8547b0aa520c0f0fdf61254b91 Mon Sep 17 00:00:00 2001 From: Yunjin Lee Date: Tue, 16 Jun 2020 17:53:52 +0900 Subject: [PATCH] [Security][TCSACR-320][Remove removed API related TCs] - Native API privilege_info_get_privacy_privilege_status() was deprecated since Tizen 5.0 and removed since Tizen 6.0 hence remove mapped .NET API Privilege.GetPrivacyPrivilegeStatus() and remove all related TCs. Change-Id: Ie29a467cb212d06eb2a5d444d072a9a17692c3ab Signed-off-by: Yunjin Lee --- .../Tizen.Privilege.Tests/testcase/TSPrivilege.cs | 100 --------------------- 1 file changed, 100 deletions(-) diff --git a/tct-suite-vs/Tizen.Privilege.Tests/testcase/TSPrivilege.cs b/tct-suite-vs/Tizen.Privilege.Tests/testcase/TSPrivilege.cs index cfb5f6c..84bee2b 100755 --- a/tct-suite-vs/Tizen.Privilege.Tests/testcase/TSPrivilege.cs +++ b/tct-suite-vs/Tizen.Privilege.Tests/testcase/TSPrivilege.cs @@ -384,105 +384,5 @@ namespace Tizen.Security.Tests Assert.IsTrue(e.GetType().Name.Equals("ArgumentNullException"), "GetPrivacyDisplayName does not accept null input."); } } - - - [Test] - [Category("P1")] - [Description("Check whether privacy privilege status is true for account.read privilege when application itself declares the privilege and it is not offed.")] - [Property("SPEC", "Tizen.Security.Privilege.GetPrivacyPrivilegeStatus M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Yunjin Lee, yunjin-.lee@samsung.com")] - public void GetPrivacyPrivilegeStatus_RETURN_VALUE_TRUE() - { - try - { - var ret = Privilege.GetPrivacyPrivilegeStatus(accountReadPrivilege); - Assert.IsInstanceOf(ret, "Object should be bool type."); - Assert.IsTrue(ret, "Object is not equal"); - } - catch (NotSupportedException) - { - Assert.IsTrue(isPrivacyPrivilegeSupported == false, "Invalid NotSupportedException"); - } - catch (Exception e) - { - Assert.Fail("Privilege.GetPrivacyPrivilegeStatus: " + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Check whether privacy privilege status is false for contact.read privilege when application itself declares the privilege but it is offed.")] - [Property("SPEC", "Tizen.Security.Privilege.GetPrivacyPrivilegeStatus M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "Yunjin Lee, yunjin-.lee@samsung.com")] - public void GetPrivacyPrivilegeStatus_RETURN_VALUE_FALSE() - { - try - { - var ret = Privilege.GetPrivacyPrivilegeStatus(contactReadPrivilege); - Assert.IsInstanceOf(ret, "Object should be bool type."); - Assert.IsFalse(ret, "Object is not equal"); - } - catch (NotSupportedException) - { - Assert.IsTrue(isPrivacyPrivilegeSupported == false, "Invalid NotSupportedException"); - } - catch (Exception e) - { - Assert.Fail("Privilege.GetPrivacyPrivilegeStatus: " + e.ToString()); - } - } - - [Test] - [Category("P1")] - [Description("Get privacy privilege status with non-privacy related privilege to check ArgumentException exception")] - [Property("SPEC", "Tizen.Security.Privilege.GetPrivacyPrivilegeStatus M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MEX")] - [Property("AUTHOR", "Yunjin Lee, yunjin-.lee@samsung.com")] - public void GetPrivacyPrivilegeStatus_NOT_PRIVACY() - { - try - { - var ret = Privilege.GetPrivacyPrivilegeStatus(internetPrivilege); - Assert.Fail("Expects to throw ArgumentException exception when privilege param is not-privacy related, but exception not thrown"); - } - catch (NotSupportedException) - { - Assert.IsTrue(isPrivacyPrivilegeSupported == false, "Invalid NotSupportedException"); - } - catch (Exception e) - { - Assert.IsTrue(e.GetType().Name.Equals("ArgumentException"), "GetPrivacyPrivilegeStatus does not accept non-privacy related privilege."); - } - } - - [Test] - [Category("P1")] - [Description("Get privacy privilege status with null input parameter to check ArgumentException exception")] - [Property("SPEC", "Tizen.Security.Privilege.GetPrivacyPrivilegeStatus M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MEX")] - [Property("AUTHOR", "Yunjin Lee, yunjin-.lee@samsung.com")] - public void GetPrivacyPrivilegeStatus_NULL_PARAM() - { - try - { - var ret = Privilege.GetPrivacyPrivilegeStatus(null); - Assert.Fail("Expects to throw ArgumentException exception when null inputted for version param, but exception not thrown"); - } - catch (NotSupportedException) - { - Assert.IsTrue(isPrivacyPrivilegeSupported == false, "Invalid NotSupportedException"); - } - catch (Exception e) - { - Assert.IsTrue(e.GetType().Name.Equals("ArgumentNullException"), "GetPrivacyPrivilegeStatus does not accept null input parameter."); - } - } - } } -- 2.7.4