[Security][TCSACR-320][Remove removed API related TCs] 36/236336/2
authorYunjin Lee <yunjin-.lee@samsung.com>
Tue, 16 Jun 2020 08:53:52 +0000 (17:53 +0900)
committerYunjin Lee <yunjin-.lee@samsung.com>
Thu, 18 Jun 2020 05:50:12 +0000 (14:50 +0900)
- 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 <yunjin-.lee@samsung.com>
tct-suite-vs/Tizen.Privilege.Tests/testcase/TSPrivilege.cs

index cfb5f6c..84bee2b 100755 (executable)
@@ -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<bool>(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<bool>(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.");
-            }
-        }
-
     }
 }