Commit Graph

4171 Commits

Author SHA1 Message Date
Treehugger Robot
fbd2113de5 Merge "Fix TetheringManagerTest failure when using entitlement required SIM" am: 1691078821
Original change: undetermined

Change-Id: I4c58b3803a13271dfd45103fbd32a3a8e3238aff
2020-06-02 02:51:01 +00:00
Treehugger Robot
1691078821 Merge "Fix TetheringManagerTest failure when using entitlement required SIM" 2020-06-02 02:35:43 +00:00
Cody Kesting
2a898a5d7a Merge "Test Data Stall with unknown detection type." am: 43fbab7444
Change-Id: If62bf0f152893d904b79320354267db1ce3cc320
2020-05-29 21:30:41 +00:00
Cody Kesting
0b07d517bc Merge "Add CTS testing for ConnectivityDiagnostics Data Stall callback." am: f665174aaa
Change-Id: Ie6259540b61f8bc4dc53da9fe2fb899a154c171e
2020-05-29 21:29:59 +00:00
Cody Kesting
43fbab7444 Merge "Test Data Stall with unknown detection type." 2020-05-29 20:46:59 +00:00
Cody Kesting
f665174aaa Merge "Add CTS testing for ConnectivityDiagnostics Data Stall callback." 2020-05-29 20:44:42 +00:00
Cody Kesting
55a841b153 Merge "Add CTS tests for ConnectivityDiagnostics callbacks." am: 21763671f4
Change-Id: I71342f839fe9f8e6ebc9b130c5246ca22ff336d3
2020-05-29 19:56:23 +00:00
Benedict Wong
e2fda73ecb Merge changes from topic "vpn-cts" am: c75e8886ed
Change-Id: Ie1e0bd4029ebc2d2c8843d451f74785e21fc050c
2020-05-29 19:56:11 +00:00
Cody Kesting
21763671f4 Merge "Add CTS tests for ConnectivityDiagnostics callbacks." 2020-05-29 19:49:06 +00:00
Benedict Wong
c75e8886ed Merge changes from topic "vpn-cts"
* changes:
  Add IPv6 testing for IKEv2 VPN tests
  Add Ikev2VpnTests including IKE negotiation.
  Add basic tests for IKEv2/IPsec VPNs
  Extract IPsec and test network utility methods
2020-05-29 18:51:26 +00:00
Benedict Wong
3d95958d01 Add IPv6 testing for IKEv2 VPN tests
This change adds tests for IPv6 IKEv2 VPN profiles.

Bug: 148582947
Test: IPv6 tests passing
Change-Id: Ic0f71df739bd9162653b5f2878e7ddc446ddde0e
2020-05-29 02:28:07 -07:00
Remi NGUYEN VAN
8116784031 Merge "Add CTS test for the capport API" am: b0d3cd455c
Change-Id: Ieec3bd1d21daddcbac98114857d44cf9eb93fa10
2020-05-29 07:56:58 +00:00
markchien
f74fce0d0c Fix TetheringManagerTest failure when using entitlement required SIM
If run tethering cts with entitlement required SIM, the test would
failure due to no tethering upstream. Tethering would default start
with UI base entitlement check which would have interfactive UI pop
up. Tethering's upstream is blocked because entitlement UI is keep
waiting for action till timeout.
To avoid UI interaction, start tethering with silent entitlement
check.

Bug: 156714671
Test: atest CtsTetheringTest
Change-Id: I85299841d60afba97ffcc4ae908a85e51139319b
2020-05-29 11:53:34 +08:00
Remi NGUYEN VAN
b0d3cd455c Merge "Add CTS test for the capport API" 2020-05-29 00:35:24 +00:00
Benedict Wong
e777f4076e Add Ikev2VpnTests including IKE negotiation.
This commit expands IKEv2 VPN CTS testing to ensure that given a
successful IKEv2 negotiation, the VPN network will be correctly set up.
Additionally, it verifies that the stopProvisionedVpnProfile will
teardown the VPN network.

Bug: 148582947
Test: atest CtsNetTestCases:Ikev2VpnTest
Change-Id: Ib6635f0068200ac0172515989fbdee5c3d49e231
2020-05-28 14:14:16 -07:00
Benedict Wong
670639c13c Add basic tests for IKEv2/IPsec VPNs
This change adds basic tests for all IKEv2/IPsec VPN public APIs.
Additional testing for ensuring IKEv2 setup completes will be done in a
subsequent CL.

Bug: 148582947
Test: Ikev2VpnTest added
Change-Id: Ia5d35c32525b32be4a0dc0584630f5bb9e7f1bcb
2020-05-28 10:45:57 -07:00
Benedict Wong
9986109df8 Extract IPsec and test network utility methods
This patch moves some test setup functions to util classes in
preparation for IKEv2 VPN tests which will use those same utilities.

Bug: 148582947
Test: atest IpSecManagerTunnelTest; passing
Change-Id: I9aeafa45ab515ce72a72c3de6f70fb26e32e7fd4
2020-05-28 10:43:16 -07:00
Yan Yan
96240e80c5 Merge "Test IKE Session setup in IPv6 network" am: 4a7fcbcb54
Change-Id: I33d14a74445dd3ff249cab4a3f14178042e9a5f3
2020-05-28 17:18:31 +00:00
Yan Yan
4a7fcbcb54 Merge "Test IKE Session setup in IPv6 network" 2020-05-28 17:03:51 +00:00
Remi NGUYEN VAN
be87265e09 Add CTS test for the capport API
The test relies on EthernetManager#setIncludeTestInterfaces to run
validation on an "ethernet" network based on a tap interface, and
simulates DHCP and HTTP servers so the device sees the capport DHCP
option, and fetches the API contents.

Bug: 156062304
Test: atest CaptivePortalApiTest
Change-Id: I734dbd05c0f50b8dc4553102ab286f0d8807a7ac
2020-05-28 16:30:31 +09:00
Yan Yan
6932bd3aa9 Merge "Test handling authentication failure" am: 77a425820a
Change-Id: I51e336cb1ca6f5b774bd1d8ee8fbb586044f2747
2020-05-28 04:36:13 +00:00
Yan Yan
77a425820a Merge "Test handling authentication failure" 2020-05-28 04:22:35 +00:00
Treehugger Robot
9b7abf01f0 Merge "Fix testTetheringUpstream flaky" am: 555ca8801b
Change-Id: I8be0aac2b8231f0988a82a437ca0947e8eebd76e
2020-05-28 01:48:32 +00:00
Treehugger Robot
555ca8801b Merge "Fix testTetheringUpstream flaky" 2020-05-28 01:36:55 +00:00
Yan Yan
130a0ed3dc Merge "Test remotely initiated rekey" am: 06c7ebc8e4
Change-Id: I66fb5bef06774faf333fbfa6e6ed86cd1e662155
2020-05-28 01:23:49 +00:00
Yan Yan
b9cbd78bac Merge "Test IKE Session setup with EAP-MSCHAPv2" am: aecb7c05e2
Change-Id: Ibe306685fe6642e7eb106eec46d2a642d06327a2
2020-05-28 01:23:39 +00:00
Yan Yan
06c7ebc8e4 Merge "Test remotely initiated rekey" 2020-05-28 01:10:38 +00:00
Yan Yan
aecb7c05e2 Merge "Test IKE Session setup with EAP-MSCHAPv2" 2020-05-28 01:09:11 +00:00
Yan Yan
8515216fea Merge "Test IKE Session setup with digital-signature-based Auth" am: 6b5975c9fb
Change-Id: Ide9159bff4d780bd0b05b1dbfa9eaa45fd082988
2020-05-27 23:54:27 +00:00
Yan Yan
6b5975c9fb Merge "Test IKE Session setup with digital-signature-based Auth" 2020-05-27 23:38:25 +00:00
markchien
47e3788e3e Fix testTetheringUpstream flaky
testTetheringUpstream test case need cellular network. So it disable
wifi and getActiveNetwork to check whether current network is cellular.
But there is a race that call getActiveNetwork right away after
disconnect wifi. getActiveNetwork may return null because switching
network is not ready yet.

Bug: 156314879
Test: atest CtsTetheringTest

Change-Id: I6b433560fb27a3b4bd80c4198ccdb58a5be701b6
2020-05-27 23:03:07 +08:00
Treehugger Robot
212fc42b22 Merge "Add logs to NetworkCallbackTest to diagnose issues" am: 89b5be1e4d
Change-Id: Ifebd6fe848a13003ef9de8bfe7ae3f5ad8d61aec
2020-05-27 10:42:01 +00:00
Treehugger Robot
89b5be1e4d Merge "Add logs to NetworkCallbackTest to diagnose issues" 2020-05-27 10:19:57 +00:00
Chalard Jean
796ccadc00 Add logs to NetworkCallbackTest to diagnose issues
Bug: 157391946
Test: NetworkCallbackTests
Change-Id: I552a1ad05f97a2a9f83f5f7de77d2e7b64084ddc
2020-05-27 15:51:53 +09:00
evitayan
8719bd68eb Test IKE Session setup in IPv6 network
Bug: 148689509
Test: atest testIkeSessionSetupAndChildSessionSetupWithTunnelModeV6
Change-Id: Ia2fa9462c66a283697e0cb9dd4c475215c0eafde
2020-05-26 17:22:21 -07:00
Yan Yan
b02350d9f5 Merge "Move common logic in testing and verification to IkeSessionTestBase" am: 609752fca4
Change-Id: I679bd2de52fd8fecc4cda484fa8de07b279cac4b
2020-05-26 23:06:21 +00:00
evitayan
ac96b659d3 Test handling authentication failure
- Test receiving Authentication Failure notification
- Test setting up IKE Session with first Child setup failure

Bug: 155821007
Test: CtsIkeTestCases
Change-Id: I4ec43a3899d67a119cd4ba19e0ffc63c277325fb
2020-05-26 15:52:14 -07:00
Yan Yan
609752fca4 Merge "Move common logic in testing and verification to IkeSessionTestBase" 2020-05-26 22:51:40 +00:00
evitayan
c0b2dbdaf6 Test remotely initiated rekey
This commit:
- Adds test for remotely initiated rekey for IKE and Child SA
- Makes IkeTunUtils support building and injecting requests
- Adds method to parse hex to long because Long.parseLong cannot
  handle negative long value

Bug: 155821007
Test: atest CtsIkeTestCases
Change-Id: I299cf190261ac15397f9ed389adb2c69e94a6507
2020-05-26 15:49:56 -07:00
evitayan
ce7032f0be Test IKE Session setup with EAP-MSCHAPv2
Bug: 155821007
Test: atest CtsIkeTestCases
Change-Id: Ie8a328c53b531027ce63edaa874c4cd0904e0068
2020-05-26 15:49:43 -07:00
evitayan
ab4bc2dd35 Test IKE Session setup with digital-signature-based Auth
This commit adds a test for setting up IKE Session with
digital-signature-based authentication.

This test also verifies sending and receiving IKE fragments

Bug: 155821007
Test: atest CtsIkeTestCases:IkeSessionDigitalSignatureTest
Change-Id: I5829dfa955c47c0810760b7bf97372031e740f1e
2020-05-26 15:49:36 -07:00
Yan Yan
f455a5dd27 Merge "Verify creation and deletion of IpSecTransform pair" am: 3e8456302a
Change-Id: I71dc9d2f37a1e7b34cb33325a4d705307c47229b
2020-05-26 22:46:42 +00:00
Yan Yan
3e8456302a Merge "Verify creation and deletion of IpSecTransform pair" 2020-05-26 22:34:00 +00:00
evitayan
13f043a8db Move common logic in testing and verification to IkeSessionTestBase
This commit moves following logics to IkeSessionTestBase so that all
subclasses can share it:
- build ChildParams
- perform IKE and first Child setup
- perform deleting IKE
- verifying IKE and first Child setup

Bug: 155821007
Test: atest CtsIkeTestCases:IkeSessionDigitalSignatureTest
Change-Id: Ib35b18240396a7b4823111e37be9a338d8ff6f06
2020-05-26 10:30:28 -07:00
evitayan
908f1d3365 Verify creation and deletion of IpSecTransform pair
- Verify that inbound and outbound IpSecTransforms
  are created when a Child Session is created
- Verify that when Child Session is deleted,
  the IpSecTransform pair is deleted

Bug: 148689509
Test: atest CtsIkeTestCases
Change-Id: If142b3fb2ac791322921beeab1bc8d43db255317
2020-05-26 10:21:00 -07:00
Remi NGUYEN VAN
850cd533e0 Merge "Skip testTemporarilyNotMeteredCapability on Q" am: 352a01edfd
Change-Id: Id2fe42bb26d215fe2b0cf23b38927f26dc92d2cd
2020-05-26 00:27:10 +00:00
Remi NGUYEN VAN
3742699f21 Merge "Use Q permission on Q for startCaptivePortalApp" am: efcc79f2a5
Change-Id: I7985ae613e89e7376555c3ba3d53d075ffc71596
2020-05-26 00:26:35 +00:00
Remi NGUYEN VAN
1d4d950451 Merge "Fix and deflake ConnectivityManagerTest" am: 591263914c
Change-Id: I8caf45c73d7fb9a44251d0403734c675064e0335
2020-05-26 00:25:56 +00:00
Remi NGUYEN VAN
352a01edfd Merge "Skip testTemporarilyNotMeteredCapability on Q" 2020-05-26 00:00:45 +00:00
Remi NGUYEN VAN
efcc79f2a5 Merge "Use Q permission on Q for startCaptivePortalApp" 2020-05-26 00:00:17 +00:00