Commit Graph

5053 Commits

Author SHA1 Message Date
Mark Chien
cf750de87c Merge "Don't run testRequestLatestEntitlementResult if not supported" am: 1129c316fd am: 793308371d
Original change: https://android-review.googlesource.com/c/platform/cts/+/1352284

Change-Id: I46d2d005d1a26c45f36cb387faa079a09ce708e4
2020-07-13 02:30:59 +00:00
Treehugger Robot
0a5ad58f9c Merge "Add CtsNetTestCasesLatestSdk to mainline-presubmit" am: ce5d7c09ab am: 8d12e31a62
Original change: https://android-review.googlesource.com/c/platform/cts/+/1331100

Change-Id: I167e3cd462e8ab0798c28b6b76c085f1a464cebb
2020-07-13 02:30:38 +00:00
Mark Chien
793308371d Merge "Don't run testRequestLatestEntitlementResult if not supported" am: 1129c316fd
Original change: https://android-review.googlesource.com/c/platform/cts/+/1352284

Change-Id: I2c0704ada44b23b511353cab8a52a396de52d692
2020-07-10 07:09:53 +00:00
Mark Chien
1129c316fd Merge "Don't run testRequestLatestEntitlementResult if not supported" 2020-07-10 07:06:56 +00:00
Treehugger Robot
b872bb0d5e [automerger skipped] Increase a timeout that's too short am: eb41de1d35 -s ours
am skip reason: Change-Id If0587a2a91977427a2f679a502d838fbecdd82f2 with SHA-1 b7f471ae33 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12121963

Change-Id: I20d2d9d0d06396a8046de14ed99f353eef46c5c6
2020-07-10 04:16:22 +00:00
Treehugger Robot
eb41de1d35 Increase a timeout that's too short
This should have been longer to start with. This oversight is due
to a poor API in TestNetworkCallback that was made that way for
backwards compatibility ; b/157405399 tracks improving this API.

Test: this
Bug: 160660082
Original-Change: https://android-review.googlesource.com/1358064
Merged-In: If0587a2a91977427a2f679a502d838fbecdd82f2
Change-Id: If0587a2a91977427a2f679a502d838fbecdd82f2
2020-07-10 01:13:50 +00:00
Treehugger Robot
8d12e31a62 Merge "Add CtsNetTestCasesLatestSdk to mainline-presubmit" am: ce5d7c09ab
Original change: https://android-review.googlesource.com/c/platform/cts/+/1331100

Change-Id: I6904cd64c4021bd3e5431ac0b66b481321b0470c
2020-07-10 00:49:01 +00:00
Treehugger Robot
ce5d7c09ab Merge "Add CtsNetTestCasesLatestSdk to mainline-presubmit" 2020-07-10 00:36:44 +00:00
Treehugger Robot
68238567cd Merge "Increase a timeout that's too short" am: 6cc5d32e6f am: c2944b4510
Original change: https://android-review.googlesource.com/c/platform/cts/+/1358064

Change-Id: I8d079fc0a514d7ada44df54b986de50455a730d5
2020-07-09 15:35:53 +00:00
Treehugger Robot
c2944b4510 Merge "Increase a timeout that's too short" am: 6cc5d32e6f
Original change: https://android-review.googlesource.com/c/platform/cts/+/1358064

Change-Id: Ib6f94b8cc637add1d1fd4f2876b19d4b1c03f3a6
2020-07-09 15:23:29 +00:00
Treehugger Robot
6cc5d32e6f Merge "Increase a timeout that's too short" 2020-07-09 15:11:02 +00:00
Chalard Jean
a4ad47a46b Merge "Ignore non-matching callbacks to fix flakiness" am: 2e2642f909 am: b02ea3ecdd
Original change: https://android-review.googlesource.com/c/platform/cts/+/1318219

Change-Id: Id29544f27c6ede9f08354d630933083d1d21ef03
2020-07-09 06:40:18 +00:00
Chalard Jean
b7f471ae33 Increase a timeout that's too short
This should have been longer to start with. This oversight is due
to a poor API in TestNetworkCallback that was made that way for
backwards compatibility ; b/157405399 tracks improving this API.

Test: this
Bug: 160660082
Change-Id: If0587a2a91977427a2f679a502d838fbecdd82f2
2020-07-09 15:32:48 +09:00
Chalard Jean
b02ea3ecdd Merge "Ignore non-matching callbacks to fix flakiness" am: 2e2642f909
Original change: https://android-review.googlesource.com/c/platform/cts/+/1318219

Change-Id: Iedf444b13c9009d296869beb161ac1614095ae41
2020-07-09 06:25:29 +00:00
Chalard Jean
2e2642f909 Merge "Ignore non-matching callbacks to fix flakiness" 2020-07-09 06:12:45 +00:00
easoncylee
a1b13d6d39 Add CtsNetTestCasesLatestSdk to mainline-presubmit
This is the pilot run for mainline testing in Test Mapping Suite.

For supporting mainline testing in Test Mapping Suite, developers can
run tests by configuring the TEST_MAPPING file, the 3 simple steps are:
  - Add tests to be part of general-tests suite if the test does not
    depend on a device specific features.
  - Update test configureation for TradeFed to run mainline testing.
  - Update TEST_MAPPING file with test-group as "mainline-presubmit"

It's only for postsubmit now, and will be moved to actual presubmit
once the whole mechanism is stable.

For more details about the usage, please refer to go/test-mapping-mainline-user-guide

Bug: 160753366
Test: forrest.
Change-Id: I8704cc5626a3e049eb3c27adb86e9c1a4d828273
2020-07-08 15:13:27 +08:00
Treehugger Robot
378086af8f [automerger skipped] Merge "Create NetworkAgent CTS for NET_CAP_TEMP_NOT_METERED" am: 7dde88274a am: 35b8fb07a1 -s ours
am skip reason: Change-Id Ic968bf37075c23e9ea7d98eaec7f4f37d9ebc337 with SHA-1 8e28d8789d is in history

Original change: https://android-review.googlesource.com/c/platform/cts/+/1316376

Change-Id: I49a169bf1874137bddf8faf44ed66b1b924217f3
2020-07-08 04:54:35 +00:00
Treehugger Robot
35b8fb07a1 Merge "Create NetworkAgent CTS for NET_CAP_TEMP_NOT_METERED" am: 7dde88274a
Original change: https://android-review.googlesource.com/c/platform/cts/+/1316376

Change-Id: Ia81dbc1a8a1c16daf6b82ef93014d6a4f75a969a
2020-07-08 04:43:35 +00:00
Treehugger Robot
7dde88274a Merge "Create NetworkAgent CTS for NET_CAP_TEMP_NOT_METERED" 2020-07-08 04:30:22 +00:00
Chalard Jean
f70d762a55 Ignore non-matching callbacks to fix flakiness
This is a host-side tests that receives its network callbacks
through a custom AIDL that proxies them to this host-side
process. As this runs of the real callbacks from a real network,
this test receives unrelated callbacks – in particular calls to
onCapabilitiesUpdated to warn the process of updates of the
signal strength.
This skips these callbacks across the board by only matching
the expected callback. This will fix flakiness in the test.

Also, as a drive-by fix, this also checks the network in
the onBlockedStatusChanged callback. If the network object
is not the expected one, the test should not pass.

Bug: 160270536
Test: NetworkCallbackTests
Change-Id: I67c685ebfb2c5e2ee6f7615196eedea8292ca3ff
2020-07-08 13:07:24 +09:00
Chalard Jean
6b297be291 [automerger skipped] Merge "Let testB141603906 run over ADB-over-network" into rvc-dev am: cbf0845a5d -s ours
am skip reason: Change-Id I0bc14d4d2cade7618c59b2cb88638bdf608d43d3 with SHA-1 5ed6690e66 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12056192

Change-Id: If42280e37ecbec29103108345128f86ef5ee2232
2020-07-02 23:38:45 +00:00
Chalard Jean
8742267b94 Let testB141603906 run over ADB-over-network
This test (added in R) failed to take the adb-over-network
case into account like most other tests in the same file. As
such it erroneously fails when tested over such a test setup.
This patch exempts the shell from being subject to the VPN,
like other similar tests do, to avoid the adb connections
being killed.

Test: VpnTest
Bug: 159761399
Original-Change: https://android-review.googlesource.com/1349862
Merged-In: I0bc14d4d2cade7618c59b2cb88638bdf608d43d3
Change-Id: I0bc14d4d2cade7618c59b2cb88638bdf608d43d3
2020-07-01 23:16:54 +00:00
Chalard Jean
db4f75ebeb Merge "Let testB141603906 run over ADB-over-network" am: 3cded8dc20 am: eb4d8b4fab
Original change: https://android-review.googlesource.com/c/platform/cts/+/1349862

Change-Id: Ie54c911ca55be520d20b582a67bb2bf36259b91c
2020-07-01 13:57:56 +00:00
Chalard Jean
eb4d8b4fab Merge "Let testB141603906 run over ADB-over-network" am: 3cded8dc20
Original change: https://android-review.googlesource.com/c/platform/cts/+/1349862

Change-Id: Id15fb6f4ad19061ffe1564030e5108910a2cc99d
2020-07-01 13:47:14 +00:00
Chalard Jean
3cded8dc20 Merge "Let testB141603906 run over ADB-over-network" 2020-07-01 13:31:26 +00:00
Jiyong Park
3001fbde9e [automerger skipped] Merge "Drop .stubs from android.test.[base|runner|mock].stubs" am: 188ebc6a7f am: 8fd64757cb -s ours
am skip reason: Change-Id I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7 with SHA-1 82bb526062 is in history

Original change: https://android-review.googlesource.com/c/platform/cts/+/1353494

Change-Id: I2e428f7780eec0401e9aae981a01bb440c620e7b
2020-07-01 12:21:52 +00:00
Jiyong Park
8fd64757cb Merge "Drop .stubs from android.test.[base|runner|mock].stubs" am: 188ebc6a7f
Original change: https://android-review.googlesource.com/c/platform/cts/+/1353494

Change-Id: I63b970f7edbc554bea6e9a587a27b90ce88edbac
2020-07-01 12:09:23 +00:00
Jiyong Park
188ebc6a7f Merge "Drop .stubs from android.test.[base|runner|mock].stubs" 2020-07-01 11:58:41 +00:00
Jiyong Park
616e299222 Drop .stubs from android.test.[base|runner|mock].stubs
The .stubs library refer to the stub library of a java_sdk_library.
Since the name of the stub library is the implementation detail of the
build system, direct use of the name should be prohibited. Actually,
clients don't need to use the stub name directly because the build
system automatically redirects <name> to <name>.stubs.

Exempt-From-Owner-Approval: too many owners are involved. This is a
simple build script change.

Bug: 157007292
Test: m
Merged-In: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7
(cherry picked from commit 89c4e06853f7ea4b5a62a3b02b4f5113617b2c60)
Change-Id: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7
2020-07-01 17:17:28 +09:00
Jiyong Park
2e220ff9a1 Merge "Drop .stubs from android.test.[base|runner|mock].stubs" into rvc-dev-plus-aosp 2020-07-01 08:07:47 +00:00
Remi NGUYEN VAN
0ccd0a124b [automerger skipped] Merge "Move Inet[4]AddressUtils to libs/net" am: 4c602c3388 am: a88f1bcf28 -s ours
am skip reason: Change-Id Ic7534afe3a437f2089ed33cebdad391dc498d187 with SHA-1 484f0d4901 is in history

Original change: https://android-review.googlesource.com/c/platform/cts/+/1353486

Change-Id: I410edca2b6157bfe92def92b02eab8d8d05642c6
2020-07-01 04:29:13 +00:00
Remi NGUYEN VAN
a88f1bcf28 Merge "Move Inet[4]AddressUtils to libs/net" am: 4c602c3388
Original change: https://android-review.googlesource.com/c/platform/cts/+/1353486

Change-Id: I7d41b57d7c38f199696e6433e4d870bec6174f3a
2020-07-01 04:13:15 +00:00
Remi NGUYEN VAN
4c602c3388 Merge "Move Inet[4]AddressUtils to libs/net" 2020-07-01 04:08:25 +00:00
Remi NGUYEN VAN
ba6f3be791 Move Inet[4]AddressUtils to libs/net
The classes should not be picked up from frameworks/base, as they are
part of several mainline modules.

Bug: 151052811
Test: m; manual: flashed, wifi and telephony working
Test: atest CtsNetTestCasesLatestSdk:CaptivePortalApiTest
(clean cherry-pick from internal branch)
Merged-In: Ic7534afe3a437f2089ed33cebdad391dc498d187

Change-Id: Ic7534afe3a437f2089ed33cebdad391dc498d187
2020-06-30 19:20:40 +09:00
markchien
b589520368 Don't run testRequestLatestEntitlementResult if not supported
If tethering is not supported, skip testRequestLatestEntitlementResult
which test TetheringManager#requestLatestTetheringEntitlementResult
API.

Bug: 159869957
Test: atest CtsTetheringTest
Change-Id: I65c32d5bc26f18f8c9d91593ab0c178e69e75c39
2020-06-30 17:04:58 +08:00
Jiyong Park
82bb526062 Drop .stubs from android.test.[base|runner|mock].stubs
The .stubs library refer to the stub library of a java_sdk_library.
Since the name of the stub library is the implementation detail of the
build system, direct use of the name should be prohibited. Actually,
clients don't need to use the stub name directly because the build
system automatically redirects <name> to <name>.stubs.

Exempt-From-Owner-Approval: too many owners are involved. This is a
simple build script change.

Bug: 157007292
Test: m
Merged-In: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7
(cherry picked from commit 4072d4d5d4)
Change-Id: I32502de3d87c5cfdbbcfe5545dd7db5e9bb551a7
2020-06-29 22:56:28 +09:00
Chalard Jean
5ed6690e66 Let testB141603906 run over ADB-over-network
This test (added in R) failed to take the adb-over-network
case into account like most other tests in the same file. As
such it erroneously fails when tested over such a test setup.
This patch exempts the shell from being subject to the VPN,
like other similar tests do, to avoid the adb connections
being killed.

Test: VpnTest
Bug: 159761399
Change-Id: I0bc14d4d2cade7618c59b2cb88638bdf608d43d3
2020-06-29 02:02:35 +00:00
Lorenzo Colitti
86b65ff3b3 [automerger skipped] Merge "Increase ConnDiagsTest timeout for end-to-end test." into rvc-dev am: 2658b1f70a -s ours
am skip reason: Change-Id I36347f6d52e3ce1bd30e3f74c35f4ecd15c8c65e with SHA-1 c8d9a5706e is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/cts/+/12007227

Change-Id: I9e1271df23ae4dd8302fb2bdb69f821c48acfad5
2020-06-26 15:21:24 +00:00
Lorenzo Colitti
af7ca2d11f Increase ConnDiagsTest timeout for end-to-end test.
This change increases the delay allowed for administratorUid updates to
reach ConnectivityService in #testRegisterCallbackWithCarrierPrivileges.
Currently, there is no deterministic signal that can be used to wait for
this change, so Thread#sleep is required. This value is increased
because the previous delay did not give enough time for the
administratorUid change to reach CS, causing test flake.

Bug: 159718782
Test: atest android.net.cts.ConnectivityDiagnosticsManagerTest
Original-Change: https://android-review.googlesource.com/1349068
Merged-In: I36347f6d52e3ce1bd30e3f74c35f4ecd15c8c65e
Change-Id: I36347f6d52e3ce1bd30e3f74c35f4ecd15c8c65e
2020-06-26 08:18:39 +00:00
Lorenzo Colitti
6fcf2ec7f1 Merge "Increase ConnDiagsTest timeout for end-to-end test." am: a86ff10ecf am: bcd58ba008
Original change: https://android-review.googlesource.com/c/platform/cts/+/1349068

Change-Id: I0e55bacc1e8bcad9844e0e60ac4eadf92b977cf9
2020-06-26 07:48:13 +00:00
Lorenzo Colitti
bcd58ba008 Merge "Increase ConnDiagsTest timeout for end-to-end test." am: a86ff10ecf
Original change: https://android-review.googlesource.com/c/platform/cts/+/1349068

Change-Id: I0ff154d73be81e1d7810c07409c0f64ddacd30ab
2020-06-26 07:31:08 +00:00
Lorenzo Colitti
a86ff10ecf Merge "Increase ConnDiagsTest timeout for end-to-end test." 2020-06-26 07:13:56 +00:00
Cody Kesting
c8d9a5706e Increase ConnDiagsTest timeout for end-to-end test.
This change increases the delay allowed for administratorUid updates to
reach ConnectivityService in #testRegisterCallbackWithCarrierPrivileges.
Currently, there is no deterministic signal that can be used to wait for
this change, so Thread#sleep is required. This value is increased
because the previous delay did not give enough time for the
administratorUid change to reach CS, causing test flake.

Bug: 159718782
Test: atest android.net.cts.ConnectivityDiagnosticsManagerTest
Change-Id: I36347f6d52e3ce1bd30e3f74c35f4ecd15c8c65e
2020-06-26 07:13:45 +00:00
Cody Kesting
9e602b3a7c [automerger skipped] Merge "Fix ConnDiags Test for invoke-after-validate and unregister CBs." am: 58af3db73e am: 9a17cc9f1c -s ours
am skip reason: Change-Id I1836536fe60a65ba33170cd80e8f4996f1965d19 with SHA-1 cce29fc44d is in history

Original change: https://android-review.googlesource.com/c/platform/cts/+/1320277

Change-Id: I80bad133fa77c78334bf4d8c9d98097d7f5846fd
2020-06-25 16:14:11 +00:00
Cody Kesting
9a17cc9f1c Merge "Fix ConnDiags Test for invoke-after-validate and unregister CBs." am: 58af3db73e
Original change: https://android-review.googlesource.com/c/platform/cts/+/1320277

Change-Id: I6bb3f71a4d919026d768c7e443afeb30cd928998
2020-06-25 15:54:12 +00:00
Cody Kesting
ee8feba3c1 Fix ConnDiags Test for invoke-after-validate and unregister CBs.
This change fixes several things in ConnectivityDiagnosticsManagerTest:
- testOnConnectivityReportAvailable creates the Test Network after
registering the ConnectivityDiagnosticsCallback. This ensures that the
callback is invoked only after the network is validated (not for the
on-register behavior).

- The TestNetworkInterface created while setting up the Test Network is
held onto for the duration of each test. This ensures that the interface
is not garbage collected during the test. While the interface is not
needed for the test, this change makes it clear when the interface is
cleaned up.

- All registered ConnectivityDiagnosticsCallbacks are unregistered at
the end of each test. This ensures that all accompanying NetworkRequests
are cleaned up. If NetworkRequests are leaked, unrelated test failures
can occur (the platform limits the number of NetworkRequests per UID).

Bug: 156294356
Bug: 148032944
Test: atest android.net.cts.ConnectivityDiagnosticsManagerTest
Change-Id: I1836536fe60a65ba33170cd80e8f4996f1965d19
Merged-In: I1836536fe60a65ba33170cd80e8f4996f1965d19
2020-06-25 01:07:48 +00:00
Luke Huang
8b8b898fde [automerger skipped] Merge "Add net-utils-framework-common to cts-net" am: 10fa0790d9 am: 7b91e6e0d6 -s ours
am skip reason: Change-Id I40e2d4c4945a0579f6e1923e4722b09354ff050c with SHA-1 6261d27a9f is in history

Original change: https://android-review.googlesource.com/c/platform/cts/+/1348526

Change-Id: Ic92f7d753597c455c992e2b88f628f73ee1092c2
2020-06-24 19:12:10 +00:00
Luke Huang
9a174d1995 [automerger skipped] Merge "Update DnsPacket package name" am: 1ef852ef06 am: 2ba91a70c6 -s ours
am skip reason: Change-Id I908cb5f7bc6150e461748c8e34c92a19aa0206e4 with SHA-1 8f3a1b5091 is in history

Original change: https://android-review.googlesource.com/c/platform/cts/+/1348525

Change-Id: Ib9545f397412e49e69d8d9d71aac460e321d2ec6
2020-06-24 19:11:24 +00:00
Luke Huang
7b91e6e0d6 Merge "Add net-utils-framework-common to cts-net" am: 10fa0790d9
Original change: https://android-review.googlesource.com/c/platform/cts/+/1348526

Change-Id: I1fcebc37c5585e8e5d21662b6b97e052f1c01e16
2020-06-24 18:53:29 +00:00
Luke Huang
2ba91a70c6 Merge "Update DnsPacket package name" am: 1ef852ef06
Original change: https://android-review.googlesource.com/c/platform/cts/+/1348525

Change-Id: I4b5a9dba48af60642a72d6fbf13aafdf778f738c
2020-06-24 18:51:42 +00:00