[Network][Non-ACR] Change API to check IPv6 address 11/180311/1
authorchleun.moon <chleun.moon@samsung.com>
Mon, 28 May 2018 07:16:31 +0000 (16:16 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Mon, 28 May 2018 07:16:38 +0000 (16:16 +0900)
Change-Id: Iffd1b42cf75890b95f3ffc627fdc407881c325c6
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
tct-suite-vs/Tizen.Network.Tests/testcase/TSConnectionManager.cs
tct-suite-vs/Tizen.Network.Tests/testcase/TSConnectionProfile.cs [changed mode: 0755->0644]

index 21cf3a8..1275837 100755 (executable)
@@ -219,6 +219,7 @@ namespace Tizen.Network.Connection.Tests
                 _wifiAP = WiFiManager.GetConnectedAP();
                 Assert.IsNotNull(_wifiAP, "No WiFi connection");
                 await _wifiAP.DisconnectAsync();
+                await Task.Delay(3000);
                 /**
                  * TEST CODE
                  **/
old mode 100755 (executable)
new mode 100644 (file)
index 93045f1..08a07ef
@@ -425,7 +425,20 @@ namespace Tizen.Network.Connection.Tests
                 addInfor.IPConfigType = IPConfigType.Static;
                 addInfor.IP = IPAddress.Parse(preIP);
                 ConnectionProfileManager.UpdateProfile(_connectionProfile);
-                Assert.AreEqual(preIP, addInfor.IP.ToString(), "set Gateway is fail");
+                await Task.Delay(3000);
+
+                bool found = false;
+                var IPList = ConnectionManager.GetAllIPv6Addresses(ConnectionType.WiFi);
+                foreach(IPAddress item in IPList)
+                {
+                    Log.Info(Globals.LogTag, "IPv6 Address: " + item.ToString());
+                    if (item.ToString().Equals(preIP))
+                    {
+                        found = true;
+                        break;
+                    }
+                }
+                Assert.IsTrue(found, "Can't find IPv6 ");
                 Assert.AreEqual(IPConfigType.Static.ToString(), addInfor.IPConfigType.ToString(), "set IpConfigType is fail");
 
                 await tearDown();