summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPeter Qiu <zqiu@google.com>2017-04-03 13:14:26 -0700
committerPeter Qiu <zqiu@google.com>2017-04-04 11:28:20 -0700
commitab83ab09b554e4012af5cf439efe081504a29b88 (patch)
tree67af7d8627840cbfcb6d40175233d28067b33281 /tests
parent31eb1e8997a0ee98df33f6d8b3b907e0fcb070ed (diff)
hotspot2: fix parsing of IMSI from legacy Passpoint config file
The parsing of IMSI form the legacy Passpoint config file is incorrect. The IMSI field is under "Credential/SIM" node instead of "Credential" node. Bug: 36531896 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Test: manual upgrade device with EAP-SIM Passpoint profile from N to O Change-Id: If6ff9facfb380def84818a4c03c80c0bad4c08a9
Diffstat (limited to 'tests')
-rw-r--r--tests/wifitests/src/com/android/server/wifi/hotspot2/LegacyPasspointConfigParserTest.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/hotspot2/LegacyPasspointConfigParserTest.java b/tests/wifitests/src/com/android/server/wifi/hotspot2/LegacyPasspointConfigParserTest.java
index 932a302b6..10ebceb22 100644
--- a/tests/wifitests/src/com/android/server/wifi/hotspot2/LegacyPasspointConfigParserTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/hotspot2/LegacyPasspointConfigParserTest.java
@@ -64,17 +64,11 @@ public class LegacyPasspointConfigParserTest {
+ "4:FQDN=9:test2.net\n"
+ ".\n"
+ "a:Credential+\n"
- + "10:UsernamePassword+\n"
- + "8:Username=5:user2\n"
- + "8:Password=5:pass2\n"
- + "\n"
- + "9:EAPMethod+\n"
- + "7:EAPType=2:21\n"
- + "b:InnerMethod=a:MS-CHAP-V2\n"
- + ".\n"
+ + "3:SIM+\n"
+ + "4:IMSI=4:1234\n"
+ + "7:EAPType=2:18\n"
+ ".\n"
+ "5:Realm=9:test2.com\n"
- + "4:IMSI=4:1234\n"
+ ".\n"
+ ".\n"
+ ".\n"