[OAuth2][Non-ACR][Removed OAuth2 manual suite] 58/206758/1
authorSanghoon Lee <shooney.lee@samsung.com>
Fri, 24 May 2019 09:34:31 +0000 (18:34 +0900)
committerSanghoon Lee <shooney.lee@samsung.com>
Fri, 24 May 2019 09:34:31 +0000 (18:34 +0900)
Change-Id: Ic51a1c62f14f2e46e9fe34cc9dc5fb1047f57975

tct-suite-vs/CSharpTCT.sln
tct-suite-vs/Tizen.OAuth2.Manual.Tests/Program.cs [deleted file]
tct-suite-vs/Tizen.OAuth2.Manual.Tests/Tizen.OAuth2.Manual.Tests.csproj [deleted file]
tct-suite-vs/Tizen.OAuth2.Manual.Tests/Tizen.OAuth2.Manual.Tests.sln [deleted file]
tct-suite-vs/Tizen.OAuth2.Manual.Tests/shared/res/Tizen.OAuth2.Manual.Tests.png [deleted file]
tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSAuthorizationResponse.cs [deleted file]
tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSClientCredentialsAuthorizer.cs [deleted file]
tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSCodeGrantAuthorizer.cs [deleted file]
tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSImplicitGrantAuthorizer.cs [deleted file]
tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/support/TestHelper.cs [deleted file]
tct-suite-vs/Tizen.OAuth2.Manual.Tests/tizen-manifest.xml [deleted file]

index 2a7d1af..ec34fee 100755 (executable)
@@ -84,8 +84,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Geofence.Tests", "Tiz
 EndProject\r
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.MediaKey.Tests", "Tizen.MediaKey.Tests\Tizen.MediaKey.Tests.csproj", "{677328F9-470B-41ED-8405-1AB096E71410}"\r
 EndProject\r
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.OAuth2.Manual.Tests", "Tizen.OAuth2.Manual.Tests\Tizen.OAuth2.Manual.Tests.csproj", "{A7A01D3B-C221-45A7-BB6B-2875DBDA7E92}"\r
-EndProject\r
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Telephony.Manual.Tests", "Tizen.Telephony.Manual.Tests\Tizen.Telephony.Manual.Tests.csproj", "{B4BF4012-F2B9-4DAA-9634-DA04F05998EE}"\r
 EndProject\r
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Telephony.Tests", "Tizen.Telephony.Tests\Tizen.Telephony.Tests.csproj", "{00CCBAB3-E915-495D-A9D6-446A556C05AF}"\r
@@ -486,11 +484,6 @@ Global
                {677328F9-470B-41ED-8405-1AB096E71410}.NUI|Any CPU.ActiveCfg = Release|Any CPU\r
                {677328F9-470B-41ED-8405-1AB096E71410}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
                {677328F9-470B-41ED-8405-1AB096E71410}.Release|Any CPU.Build.0 = Release|Any CPU\r
-               {A7A01D3B-C221-45A7-BB6B-2875DBDA7E92}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
-               {A7A01D3B-C221-45A7-BB6B-2875DBDA7E92}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
-               {A7A01D3B-C221-45A7-BB6B-2875DBDA7E92}.NUI|Any CPU.ActiveCfg = Release|Any CPU\r
-               {A7A01D3B-C221-45A7-BB6B-2875DBDA7E92}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
-               {A7A01D3B-C221-45A7-BB6B-2875DBDA7E92}.Release|Any CPU.Build.0 = Release|Any CPU\r
                {B4BF4012-F2B9-4DAA-9634-DA04F05998EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
                {B4BF4012-F2B9-4DAA-9634-DA04F05998EE}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
                {B4BF4012-F2B9-4DAA-9634-DA04F05998EE}.NUI|Any CPU.ActiveCfg = Release|Any CPU\r
diff --git a/tct-suite-vs/Tizen.OAuth2.Manual.Tests/Program.cs b/tct-suite-vs/Tizen.OAuth2.Manual.Tests/Program.cs
deleted file mode 100755 (executable)
index 4010ccf..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- *  Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
- *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License
- */
-
-using System;
-using NUnit.Framework;
-using Xamarin.Forms;
-
-namespace XamarinApplication.Tizen
-{
-    class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
-    {
-        private Application _app;
-        protected override void OnCreate()
-        {
-            Console.WriteLine("TCT : OnCreate()");
-            base.OnCreate();
-            if (ManualTest.IsWearable())
-            {
-                _app = new WearableTemplate.MainPage();
-            }
-            else
-            {
-                _app = new ManualTemplate.MainPage();
-            }
-            LoadApplication(_app);
-        }
-
-        static void Main(string[] args)
-        {
-            Console.WriteLine("TCT : Main()");
-            var app = new Program();
-            global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);
-            app.Run(args);
-        }
-    }
-}
diff --git a/tct-suite-vs/Tizen.OAuth2.Manual.Tests/Tizen.OAuth2.Manual.Tests.csproj b/tct-suite-vs/Tizen.OAuth2.Manual.Tests/Tizen.OAuth2.Manual.Tests.csproj
deleted file mode 100644 (file)
index a171ef7..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
-
-  <!-- Property Group for .NET Core Project -->
-  <PropertyGroup>
-    <OutputType>Exe</OutputType>
-    <TargetFramework>tizen60</TargetFramework>
-  </PropertyGroup>
-
-  <!-- Property Group for Tizen Project -->
-  <PropertyGroup>
-    <TizenCreateTpkOnBuild>true</TizenCreateTpkOnBuild>
-  </PropertyGroup>
-
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <DebugType>portable</DebugType>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>None</DebugType>
-  </PropertyGroup>
-
-  <ItemGroup>
-       <Folder Include="lib\" />
-  </ItemGroup>
-
-  <Import Project="..\Common\dependencies.props" />
-
-  <ItemGroup>
-    <PackageReference Include="Tizen.NET" Version="$(TizenNETVersion)">
-      <ExcludeAssets>Runtime</ExcludeAssets>
-    </PackageReference>
-    <PackageReference Include="Tizen.NET.Sdk" Version="$(TizenNETSdkVersion)" />
-  </ItemGroup>
-
-  <!-- Include Nuget Package for Tizen Project building -->
-  <ItemGroup>
-    <ProjectReference Include="..\Template\ManualTemplate\ManualTemplate.csproj" />
-  </ItemGroup>
-
-</Project>
diff --git a/tct-suite-vs/Tizen.OAuth2.Manual.Tests/Tizen.OAuth2.Manual.Tests.sln b/tct-suite-vs/Tizen.OAuth2.Manual.Tests/Tizen.OAuth2.Manual.Tests.sln
deleted file mode 100755 (executable)
index fa1ab85..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.26730.15
-MinimumVisualStudioVersion = 15.0.26124.0
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.OAuth2.Manual.Tests", "Tizen.OAuth2.Manual.Tests.csproj", "{D92BEEAC-3B2A-45F8-8C53-53B92550404A}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunit.framework", "..\nunit.framework\nunit.framework.csproj", "{B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunitlite", "..\nunitlite\nunitlite.csproj", "{FDB8025A-C029-461F-895E-287B4C65939B}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ManualTemplate", "..\Template\ManualTemplate\ManualTemplate.csproj", "{269F89A7-E648-4811-8421-844E00ACF5F0}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ManualTemplateForWearable", "..\Template\ManualTemplateForWearable\ManualTemplateForWearable.csproj", "{D36CED01-29BD-4EB3-8903-62E0BF2A822D}"
-EndProject
-Global
-       GlobalSection(SolutionConfigurationPlatforms) = preSolution
-               Debug|Any CPU = Debug|Any CPU
-               Debug|x64 = Debug|x64
-               Debug|x86 = Debug|x86
-               Release|Any CPU = Release|Any CPU
-               Release|x64 = Release|x64
-               Release|x86 = Release|x86
-       EndGlobalSection
-       GlobalSection(ProjectConfigurationPlatforms) = postSolution
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|Any CPU.Build.0 = Debug|Any CPU
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x64.ActiveCfg = Debug|Any CPU
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x64.Build.0 = Debug|Any CPU
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x86.ActiveCfg = Debug|Any CPU
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Debug|x86.Build.0 = Debug|Any CPU
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|Any CPU.ActiveCfg = Release|Any CPU
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|Any CPU.Build.0 = Release|Any CPU
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x64.ActiveCfg = Release|Any CPU
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x64.Build.0 = Release|Any CPU
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x86.ActiveCfg = Release|Any CPU
-               {D92BEEAC-3B2A-45F8-8C53-53B92550404A}.Release|x86.Build.0 = Release|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|Any CPU.Build.0 = Debug|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x64.ActiveCfg = Debug|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x64.Build.0 = Debug|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x86.ActiveCfg = Debug|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Debug|x86.Build.0 = Debug|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|Any CPU.ActiveCfg = Release|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|Any CPU.Build.0 = Release|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x64.ActiveCfg = Release|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x64.Build.0 = Release|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x86.ActiveCfg = Release|Any CPU
-               {B9E7C1FD-CB38-42F7-AC43-7BD2E5B4D216}.Release|x86.Build.0 = Release|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|Any CPU.Build.0 = Debug|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x64.ActiveCfg = Debug|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x64.Build.0 = Debug|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x86.ActiveCfg = Debug|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Debug|x86.Build.0 = Debug|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Release|Any CPU.ActiveCfg = Release|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Release|Any CPU.Build.0 = Release|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x64.ActiveCfg = Release|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x64.Build.0 = Release|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x86.ActiveCfg = Release|Any CPU
-               {FDB8025A-C029-461F-895E-287B4C65939B}.Release|x86.Build.0 = Release|Any CPU
-               {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-               {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Debug|Any CPU.Build.0 = Debug|Any CPU
-               {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.NUI|Any CPU.ActiveCfg = Debug|Any CPU
-               {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.NUI|Any CPU.Build.0 = Debug|Any CPU
-               {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Release|Any CPU.ActiveCfg = Release|Any CPU
-               {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Release|Any CPU.Build.0 = Release|Any CPU
-               {269F89A7-E648-4811-8421-844E00ACF5F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-               {269F89A7-E648-4811-8421-844E00ACF5F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
-               {269F89A7-E648-4811-8421-844E00ACF5F0}.NUI|Any CPU.ActiveCfg = Debug|Any CPU
-               {269F89A7-E648-4811-8421-844E00ACF5F0}.NUI|Any CPU.Build.0 = Debug|Any CPU
-               {269F89A7-E648-4811-8421-844E00ACF5F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
-               {269F89A7-E648-4811-8421-844E00ACF5F0}.Release|Any CPU.Build.0 = Release|Any CPU
-       EndGlobalSection
-       GlobalSection(SolutionProperties) = preSolution
-               HideSolutionNode = FALSE
-       EndGlobalSection
-       GlobalSection(ExtensibilityGlobals) = postSolution
-               SolutionGuid = {ED382B91-9930-40B6-B3D7-362304C78680}
-       EndGlobalSection
-EndGlobal
diff --git a/tct-suite-vs/Tizen.OAuth2.Manual.Tests/shared/res/Tizen.OAuth2.Manual.Tests.png b/tct-suite-vs/Tizen.OAuth2.Manual.Tests/shared/res/Tizen.OAuth2.Manual.Tests.png
deleted file mode 100755 (executable)
index 9765b1b..0000000
Binary files a/tct-suite-vs/Tizen.OAuth2.Manual.Tests/shared/res/Tizen.OAuth2.Manual.Tests.png and /dev/null differ
diff --git a/tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSAuthorizationResponse.cs b/tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSAuthorizationResponse.cs
deleted file mode 100755 (executable)
index 3cb6622..0000000
+++ /dev/null
@@ -1,169 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Collections.Generic;
-using System.Threading.Tasks;
-using NUnit.Framework.TUnit;
-using NUnit.Framework;
-
-namespace Tizen.Account.OAuth2.Tests
-{
-    [TestFixture]
-    [Description("Tests Tizen.Account.OAuth2.AuthorizationResponse class")]
-    public class AuthorizationResponseTests
-    {
-        [SetUp]
-        public void Init()
-        {
-        }
-
-        [TearDown]
-        public void Destroy()
-        {
-        }
-
-        //[Test]
-        [Category("P1")]
-        [Description("Checks the Code property of AuthorizationResponse object")]
-        [Property("SPEC", "Tizen.Account.OAuth2.AuthorizationResponse.Code A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRO")]
-        [Property("AUTHOR", "Jyothi Kumar Sambolu, s.jyothi@samsung.com")]
-        [Precondition(1, "Internet connection should be available")]
-        [Step(1, "Tap the Run button")]
-        [Step(2, "Authorize the request by entering your LinkedIn user credentials on the webpage")]
-        [Postcondition(1, "None")]
-        public async Task Code_PROPERTY_READ_ONLY()
-        {
-            /*
-             * PRECONDITION
-             * 1. A valid CodeGrantAuthorizer object
-             * 2. Prepare CodeGrantAuthorizationRequest parameters
-             * 3. Request for Authorization Grant
-             */
-            var authorizer = new CodeGrantAuthorizer();
-            Assert.IsNotNull(authorizer, "Object should not be null after construction");
-
-            var request = OAuth2Helper.CreateCodeGrantAuthRequest();
-            Assert.IsNotNull(request, "Object should not be null after construction");
-
-            try
-            {
-                var response = await authorizer.AuthorizeAsync(request);
-                Assert.IsNotNull(response, "response cannot be null!");
-
-                /* TESTCODE */
-                Assert.IsInstanceOf<string>(response.Code,"Code should be of type string");
-                Assert.IsTrue(response.Code.Length > 0, "Wrong Code value for AuthorizationResponse");
-            }
-
-            catch (Exception ex)
-            {
-                LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, ex.ToString());
-                Assert.IsTrue(false, "Exception shouldn't be thrown" + ex.GetType().FullName);
-            }
-
-            /* POSTCONDITION */
-            authorizer.Dispose();
-        }
-
-        //[Test]
-        [Category("P1")]
-        [Description("Checks the State property of AuthorizationResponse object")]
-        [Property("SPEC", "Tizen.Account.OAuth2.AuthorizationResponse.State A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRO")]
-        [Property("AUTHOR", "Jyothi Kumar Sambolu, s.jyothi@samsung.com")]
-        [Precondition(1, "Internet connection should be available")]
-        [Step(1, "Tap the Run button")]
-        [Step(2, "Authorize the request by entering your LinkedIn user credentials on the webpage")]
-        [Postcondition(1, "None")]
-        public async Task State_PROPERTY_READ_ONLY()
-        {
-            /*
-             * PRECONDITION
-             * 1. A valid CodeGrantAuthorizer object
-             * 2. Prepare CodeGrantAuthorizationRequest parameters
-             * 3. Request for Authorization Grant
-             */
-            var authorizer = new CodeGrantAuthorizer();
-            Assert.IsNotNull(authorizer, "Object should not be null after construction");
-
-            var request = OAuth2Helper.CreateCodeGrantAuthRequest();
-            Assert.IsNotNull(request, "Object should not be null after construction");
-
-            try
-            {
-                var response = await authorizer.AuthorizeAsync(request);
-                Assert.IsNotNull(response, "response cannot be null!");
-
-                /* TESTCODE */
-                Assert.IsInstanceOf<string>(response.State, "State should be of type string");
-                Assert.IsTrue(response.State.Length > 0, "Wrong State value for AuthorizationResponse");
-            }
-
-            catch (Exception ex)
-            {
-                LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, ex.ToString());
-                Assert.IsTrue(false, "Exception shouldn't be thrown" + ex.GetType().FullName);
-            }
-
-            /* POSTCONDITION */
-            authorizer.Dispose();
-        }
-
-        //[Test]
-        [Category("P1")]
-        [Description("Checks the Custom value of AuthorizationResponse object")]
-        [Property("SPEC", "Tizen.Account.OAuth2.AuthorizationResponse.GetCustomValue M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Jyothi Kumar Sambolu, s.jyothi@samsung.com")]
-        [Precondition(1, "Internet connection should be available")]
-        [Step(1, "Tap the Run button")]
-        [Step(2, "Authorize the request by entering your LinkedIn user credentials on the webpage")]
-        [Postcondition(1, "None")]
-        public async Task GetCustomValue_RETURN_TYPE()
-        {
-            /*
-             * PRECONDITION
-             * 1. A valid CodeGrantAuthorizer object
-             * 2. Prepare CodeGrantAuthorizationRequest parameters
-             * 3. Request for Authorization Grant
-             */
-            var authorizer = new CodeGrantAuthorizer();
-            Assert.IsNotNull(authorizer, "Object should not be null after construction");
-
-            var request = OAuth2Helper.CreateCodeGrantAuthRequest();
-            Assert.IsNotNull(request, "Object should not be null after construction");
-
-            request.CustomData = new Dictionary<string, string>() { { "key1", "val1" }, { "key2", "val2" } };
-
-            try
-            {
-                var response = await authorizer.AuthorizeAsync(request);
-                Assert.IsNotNull(response, "response cannot be null!");
-
-                /* TESTCODE */
-                var customData = response.GetCustomValue("key1");
-                Assert.IsNotNull(customData, "customData can't be null");
-                Assert.IsTrue(customData == "val1", "Received incorrect customdata");
-            }
-
-            catch (Exception ex)
-            {
-                LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, ex.ToString());
-                Assert.IsTrue(false, "Exception shouldn't be thrown" + ex.GetType().FullName);
-            }
-
-            /* POSTCONDITION */
-            authorizer.Dispose();
-        }
-    }
-}
diff --git a/tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSClientCredentialsAuthorizer.cs b/tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSClientCredentialsAuthorizer.cs
deleted file mode 100755 (executable)
index 5d27b07..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Threading.Tasks;
-using NUnit.Framework.TUnit;
-using NUnit.Framework;
-
-namespace Tizen.Account.OAuth2.Tests
-{
-    [TestFixture]
-    [Description("Tests Tizen.Account.OAuth2.ClientCredentialsAuthorizer class")]
-    public class ClientCredentialsAuthorizerTests
-    {
-        [SetUp]
-        public void Init()
-        {
-        }
-
-        [TearDown]
-        public void Destroy()
-        {
-        }
-
-        //[Test]
-        [Category("P1")]
-        [Description("Validates the response of GetAccessTokenAsync")]
-        [Property("SPEC", "Tizen.Account.OAuth2.ClientCredentialsAuthorizer.GetAccessTokenAsync M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Jyothi Kumar Sambolu, s.jyothi@samsung.com")]
-        [Precondition(1, "Internet connection should be available")]
-        [Step(1, "Tap the Run button")]
-        [Step(2, "Authorize the request by entering yout Twitter user credentials on the webpage")]
-        [Postcondition(1, "None")]
-        public async Task GetAccessTokenAsync_RETURN_TYPE()
-        {
-            /*
-             * PRECONDITION
-             * 1. A valid ClientCredentialsAuthorizer object
-             * 2. Prepare ClientCredentialsTokenRequest parameters
-             */
-            var authorizer = new ClientCredentialsAuthorizer();
-            Assert.IsNotNull(authorizer, "Object should not be null after construction");
-
-            var request = OAuth2Helper.CreateClientCredsTokenRequest();
-            Assert.IsNotNull(request, "Object should not be null after construction");
-
-            /* TESTCODE */
-            try
-            {
-                var response = await authorizer.GetAccessTokenAsync(request);
-                Assert.IsNotNull(response, "response cannot be null!");
-                Assert.IsInstanceOf<TokenResponse>(response, "response should be of type TokenResponse");
-            }
-
-            catch (Exception ex)
-            {
-                LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, ex.ToString());
-                Assert.IsTrue(false, "Exception shouldn't be thrown" + ex.GetType().FullName);
-            }
-
-            /* POSTCONDITION */
-            authorizer.Dispose();
-        }
-    }
-}
diff --git a/tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSCodeGrantAuthorizer.cs b/tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSCodeGrantAuthorizer.cs
deleted file mode 100755 (executable)
index 218c474..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Threading.Tasks;
-using NUnit.Framework.TUnit;
-using NUnit.Framework;
-
-namespace Tizen.Account.OAuth2.Tests
-{
-    [TestFixture]
-    [Description("Tests Tizen.Account.OAuth2.CodeGrantAuthorizer class")]
-    public class CodeGrantAuthorizerTests
-    {
-        [SetUp]
-        public void Init()
-        {
-        }
-
-        [TearDown]
-        public void Destroy()
-        {
-        }
-
-        //[Test]
-        [Category("P1")]
-        [Description("Validates the response of AuthorizeAsync")]
-        [Property("SPEC", "Tizen.Account.OAuth2.CodeGrantAuthorizer.AuthorizeAsync M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Jyothi Kumar Sambolu, s.jyothi@samsung.com")]
-        [Precondition(1, "Internet connection should be available")]
-        [Step(1, "Tap the Run button")]
-        [Step(2, "Authorize the request by entering your LinkedIn user credentials on the webpage")]
-        [Postcondition(1,"None")]
-        public async Task AuthorizeAsync_CHECK_RETURN_TYPE()
-        {
-            var authorizer = new CodeGrantAuthorizer();
-            Assert.IsNotNull(authorizer, "Object should not be null after construction");
-
-            var request = OAuth2Helper.CreateCodeGrantAuthRequest();
-            Assert.IsNotNull(request, "Object should not be null after construction");
-
-            /* TESTCODE */
-            try
-            {
-                var response = await authorizer.AuthorizeAsync(request);
-                Assert.IsNotNull(response, "Response shouldn't be null");
-                Assert.IsInstanceOf<AuthorizationResponse>(response, "response is not an instance of AuthorizationResponse");
-            }
-
-            catch (Exception ex)
-            {
-                LogUtils.Write(LogUtils.DEBUG, LogUtils.ERROR, ex.ToString());
-                Assert.True(false, "Exception thrown");
-            }
-
-            /* POSTCONDITION */
-            authorizer.Dispose();
-        }
-
-        //[Test]
-        [Category("P1")]
-        [Description("Validates the response of GetAccessTokenAsync")]
-        [Property("SPEC", "Tizen.Account.OAuth2.CodeGrantAuthorizer.GetAccessTokenAsync M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Jyothi Kumar Sambolu, s.jyothi@samsung.com")]
-        [Precondition(1, "Internet connection should be available")]
-        [Step(1, "Tap the Run button")]
-        [Step(2, "Authorize the request by entering your LinkedIn user credentials on the webpage")]
-        [Postcondition(1, "None")]
-        public async Task GetAccessTokenAsync_CHECK_RETURN_TYPE()
-        {
-            var authorizer = new CodeGrantAuthorizer();
-            Assert.IsNotNull(authorizer, "Object should not be null after construction");
-
-            var request = OAuth2Helper.CreateCodeGrantAuthRequest();
-            Assert.IsNotNull(request, "Object should not be null after construction");
-
-            try
-            {
-                var response = await authorizer.AuthorizeAsync(request);
-                Assert.IsNotNull(response, "Response shouldn't be null");
-
-                var tokenRequest = OAuth2Helper.CreateCodeGrantTokenRequest(response.Code);
-                Assert.IsNotNull(tokenRequest, "Object should not be null after construction");
-
-                /* TESTCODE */
-                var tokenResponse = await authorizer.GetAccessTokenAsync(tokenRequest);
-                Assert.IsNotNull(tokenResponse, "Response shouldn't be null");
-                Assert.IsInstanceOf<TokenResponse>(tokenResponse, "response is not an instance of TokenResponse");
-            }
-
-            catch (Exception ex)
-            {
-                LogUtils.Write(LogUtils.DEBUG, LogUtils.ERROR, ex.ToString());
-                Assert.True(false, "Exception thrown");
-            }
-
-            /* POSTCONDITION */
-            authorizer.Dispose();
-        }
-    }
-}
diff --git a/tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSImplicitGrantAuthorizer.cs b/tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/TSImplicitGrantAuthorizer.cs
deleted file mode 100755 (executable)
index 28a3b3b..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-using System.Threading.Tasks;
-using NUnit.Framework.TUnit;
-using NUnit.Framework;
-
-namespace Tizen.Account.OAuth2.Tests
-{
-    [TestFixture]
-    [Description("Tests Tizen.Account.OAuth2.ImplicitGrantAuthorizer class")]
-    public class ImplicitGrantAuthorizerTests
-    {
-        [SetUp]
-        public void Init()
-        {
-        }
-
-        [TearDown]
-        public void Destroy()
-        {
-        }
-
-        //[Test]
-        [Category("P1")]
-        [Description("Validates the response of AuthorizeAsync")]
-        [Property("SPEC", "Tizen.Account.OAuth2.ImplicitGrantAuthorizer.AuthorizeAsync M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Jyothi Kumar Sambolu, s.jyothi@samsung.com")]
-        [Precondition(1, "Internet connection should be available")]
-        [Step(1, "Tap the Run button")]
-        [Step(2, "Authorize the request by entering your LinkedIn user credentials on the webpage")]
-        [Postcondition(1, "None")]
-        public async Task AuthorizeAsync_CHECK_RETURN_TYPE()
-        {
-            /*
-             * PRECONDITION
-             * 1. A valid ImplicitGrantAuthorizer object
-             * 2. Prepare ImplicitGrantAuthorizationRequest parameters
-             */
-            var authorizer = new ImplicitGrantAuthorizer();
-            Assert.IsNotNull(authorizer, "Object should not be null after construction");
-
-            var request = OAuth2Helper.CreateImplicitGrantAuthRequest();
-            Assert.IsNotNull(request, "Object should not be null after construction");
-
-            /* TESTCODE */
-            try
-            {
-                var response = await authorizer.AuthorizeAsync(request);
-                Assert.IsNotNull(response, "Response shouldn't be null");
-                Assert.IsInstanceOf<TokenResponse>(response, "response is not an instance of TokenResponse");
-            }
-
-            catch (Exception ex)
-            {
-                LogUtils.Write(LogUtils.DEBUG, LogUtils.ERROR, ex.ToString());
-                Assert.True(false, "Exception thrown");
-            }
-
-            /* POSTCONDITION */
-            authorizer.Dispose();
-        }
-    }
-}
diff --git a/tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/support/TestHelper.cs b/tct-suite-vs/Tizen.OAuth2.Manual.Tests/testcase/support/TestHelper.cs
deleted file mode 100755 (executable)
index 4eead67..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
-
-using System;
-
-
-namespace Tizen.Account.OAuth2.Tests
-{
-    internal class OAuth2Helper
-    {
-        internal const string CODE_GRANT_RESPONSE_TYPE_SPEC = "code";
-        internal const string IMPLICIT_GRANT_RESPONSE_TYPE_SPEC = "token";
-
-        internal const string CODE_GRANT_GRANT_TYPE_SPEC = "authorization_code";
-        internal const string CLIENT_CREDS_GRANT_TYPE_SPEC = "client_credentials";
-        internal const string RESOURCE_OWNER_GRANT_TYPE_SPEC = "password";
-        internal const string REFRESH_GRANT_TYPE_SPEC = "refresh_token";
-
-        internal const string CLIENT_ID = "53492317821.apps.googleusercontent.com";
-        internal const string CLIENT_SECRET = "2SEBA-F4EV9jkqzT1UGJe7Aq";
-
-        internal const string TWITTER_CLIENT_ID = "PiQeUGnE96DQxEw36rAPw";
-        internal const string TWITTER_CLIENT_SECRET = "qxLHpdcAg5fCmE6b46GXO8UjDefr6H5C9jXF2SOFAE";
-        internal const string TWITTER_TOKEN_URL = "https://api.twitter.com/oauth2/token";
-        internal const string TWITTER_AUTH_URL = "https://api.twitter.com/oauth2/token";
-
-        internal const string GOOGLE_CLIENT_ID = "53492317821.apps.googleusercontent.com";
-        internal const string GOOGLE_CLIENT_SECRET = "2SEBA-F4EV9jkqzT1UGJe7Aq";
-        internal const string GOOGLE_AUTH_URL = "https://accounts.google.com/o/oauth2/auth";
-        internal const string GOOGLE_TOK_URL = "https://accounts.google.com/o/oauth2/token";
-        internal const string GOOGLE_REDIRECT_URL = "https://localhost:8080";
-        internal const string GOOGLE_SCOPE = "email";
-        internal const string GOOGLE_REFRESH_TOKEN_URL = "https://www.googleapis.com/oauth2/v3/token";
-        internal const string GOOGLE_AUTH_GRANT_CODE = "E4Er9JK5JL9as-45re7Aq";
-
-        internal const string FACEBOOK_CLIENT_ID = "dummy_client_id";
-        internal const string FACEBOOK_AUTH_URL = "https://www.facebook.com/dialog/oauth";
-        internal const string FACEBOOK_SCOPE = "read_stream";
-
-        internal const string SALESFORCE_CLIENT_ID = "3MVG9ZL0ppGP5UrCxqVnY_izjlRzW6tCeDYs64KXns0wGEgbtfqK8cWx16Y4gM3wx2htt0GuoDiQ.CkX2ZuI1";
-        internal const string SALESFORCE_CLIENT_SECRET = "3431205550072092349";
-        internal const string SALESFORCE_CLIENT_USER_NAME = "sam_test1@outlook.com";
-        internal const string SALESFORCE_CLIENT_PASSWORD = "samsung@1gOeXzn5nKDGVNNQP4kJYEqNPp";
-        internal const string SALESFORCE_AUTH_URL = "https://login.salesforce.com/services/oauth2/authorize";
-        internal const string SALESFORCE_REQ_TOK_URL = "https://login.salesforce.com/services/oauth2/token";
-
-        internal const string LINKEDIN_AUTH_ENDPOINT_URL = "https://www.linkedin.com/uas/oauth2/authorization";
-        internal const string LINKEDIN_TOKEN_ENDPOINT_URL = "https://www.linkedin.com/uas/oauth2/accessToken";
-        internal const string LINKEDIN_CLIENT_ID = "782p0522d2ri2i";
-        internal const string LINKEDIN_CLIENT_SECRET = "Ibj6HdUpZj2M4XIs";
-        internal const string LINKEDIN_REDIRECT_URL = "https://developer.tizen.org";
-        internal const string LINKEDIN_SCOPE = "r_basicprofile";
-        internal const string LINKEDIN_STATE = "DCEEFWF45453sdffef424";
-
-
-
-        internal static ClientCredentialsTokenRequest CreateClientCredsTokenRequest(bool dummy = false)
-        {
-            return new ClientCredentialsTokenRequest()
-            {
-                TokenEndpoint = new Uri(TWITTER_TOKEN_URL),
-                RedirectionEndPoint = new Uri("http://localhost:80"),
-                AuthenticationScheme = AuthenticationScheme.Basic,
-                ClientSecrets = new ClientCredentials()
-                {
-                    Id = dummy ? "dummy" : TWITTER_CLIENT_ID,
-                    Secret = TWITTER_CLIENT_SECRET
-                }
-            };
-        }
-
-        internal static CodeGrantAuthorizationRequest CreateCodeGrantAuthRequest(bool dummy = false)
-        {
-            return new CodeGrantAuthorizationRequest()
-            {
-                AuthorizationEndpoint = new Uri(LINKEDIN_AUTH_ENDPOINT_URL),
-                RedirectionEndPoint = new Uri(LINKEDIN_REDIRECT_URL),
-                TokenEndpoint = new Uri(LINKEDIN_TOKEN_ENDPOINT_URL),
-                ClientSecrets = new ClientCredentials()
-                {
-                    Id = dummy ? "dummy" : LINKEDIN_CLIENT_ID,
-                    Secret = LINKEDIN_CLIENT_SECRET
-                },
-                Scopes = new string[] { LINKEDIN_SCOPE },
-                State = "DCEEFWF45453sdffef424"
-            };
-        }
-
-        internal static ImplicitGrantAuthorizationRequest CreateImplicitGrantAuthRequest(bool dummy = false)
-        {
-            return new ImplicitGrantAuthorizationRequest()
-            {
-                AuthorizationEndpoint = new Uri(LINKEDIN_AUTH_ENDPOINT_URL),
-                RedirectionEndPoint = new Uri("https://developer.tizen.org"),
-                ClientSecrets = new ClientCredentials()
-                {
-                    Id = dummy ? "dummy" : LINKEDIN_CLIENT_ID,
-                    Secret = LINKEDIN_CLIENT_SECRET
-                },
-                Scopes = new string[] { "r_basicprofile" },
-                State = "DCEEFWF45453sdffef424"
-            };
-        }
-
-        internal static CodeGrantTokenRequest CreateCodeGrantTokenRequest(string code)
-        {
-            return new CodeGrantTokenRequest()
-            {
-                TokenEndpoint = new Uri(GOOGLE_TOK_URL),
-                RedirectionEndPoint = new Uri(GOOGLE_REDIRECT_URL),
-                ClientSecrets = new ClientCredentials()
-                {
-                    Id = GOOGLE_CLIENT_ID,
-                    Secret = GOOGLE_CLIENT_SECRET
-                },
-                Scopes = new string[] { GOOGLE_SCOPE },
-                Code = code,
-                AuthenticationScheme = AuthenticationScheme.RequestBody
-            };
-        }
-
-        internal ResourceOwnerPwdCredentialsTokenRequest CreateRoPwdTokenRequest(bool dummy = false)
-        {
-            return new ResourceOwnerPwdCredentialsTokenRequest()
-            {
-                TokenEndpoint = new Uri(SALESFORCE_REQ_TOK_URL),
-                ClientSecrets = new ClientCredentials()
-                {
-                    Id = dummy ? "dummy" : SALESFORCE_CLIENT_ID,
-                    Secret = SALESFORCE_CLIENT_SECRET
-                },
-                AuthenticationScheme = AuthenticationScheme.RequestBody,
-                Username = SALESFORCE_CLIENT_USER_NAME,
-                Password = SALESFORCE_CLIENT_PASSWORD,
-                RedirectionEndPoint = new Uri("http://localhost:80")
-                //Scopes = new string[] { "profile" },
-            };
-        }
-
-        internal RefreshTokenRequest CreateRefreshTokenRequest(bool dummy = false)
-        {
-            return new RefreshTokenRequest()
-            {
-                TokenEndpoint = new Uri(GOOGLE_REFRESH_TOKEN_URL),
-                ClientSecrets = new ClientCredentials()
-                {
-                    Id = dummy ? "dummy" : GOOGLE_CLIENT_ID,
-                    Secret = GOOGLE_CLIENT_SECRET
-                },
-                AuthenticationScheme = AuthenticationScheme.Basic,
-                RedirectionEndPoint = new Uri("http://localhost:80"),
-                RefreshToken = "AQkAQHKoQRyhc7nlxuk4ecr8MC_7kUoBQxCXQ8PpH3u2VNq2KP96UMrCrrav.aO6gHMVhTeeJt_6PVAUqmP5bQSxH8GWp2sO"
-
-            };
-        }
-    }
-}
-
diff --git a/tct-suite-vs/Tizen.OAuth2.Manual.Tests/tizen-manifest.xml b/tct-suite-vs/Tizen.OAuth2.Manual.Tests/tizen-manifest.xml
deleted file mode 100644 (file)
index 18d42c2..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="6" package="Tizen.OAuth2.Manual.Tests" version="1.0.0">
-    <profile name="common" />
-    <ui-application appid="Tizen.OAuth2.Manual.Tests"
-                    exec="Tizen.OAuth2.Manual.Tests.dll"
-                    type="dotnet"
-                    multiple="false"
-                    taskmanage="true"
-                    launch_mode="single">
-    <icon>Tizen.OAuth2.Manual.Tests.png</icon>
-    <label>Tizen.OAuth2.Manual.Tests</label>
-    </ui-application>
-    <privileges>
-          <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
-          <privilege>http://tizen.org/privilege/internet</privilege>
-        </privileges>
-</manifest>