Commit graph android_packages_modules_Co.../TEST_MAPPING
Message SHA1
Remove non-existent CtsNativeNetTestCases from TEST_MAPPING.
Bug: 397521796
Flag: EXEMPT TEST_ONLY
Test: test-only change
Change-Id: Id945d7d7f4c69414ea0942912b23fe8dd6cafc77

Lorenzo Colitti   commited 2025-08-20 19:31:29 -07:00
f01d65a7a7
Put the connectivity CTS tests into HSUM presubmit.
Add to hsum-presubmit the same tests that we have in
tv-presubmit.

Bug: 397521796
Test: test-only change
Flag: EXEMPT TEST_ONLY
Change-Id: Iaa1dd6dca1147e3b5e9715a6c4cedf6ed71469b9

Lorenzo Colitti   commited 2025-08-18 18:43:21 +09:00
6ba072f67a
Add Wear TEST_MAPPING for Connectivity module
This change adds CtsNetTestCases and
CtsNetTestCasesUpdateStatsPermission to Connectivity TEST_MAPPING.

Bug: 400565667
Test: Build
Flag: TEST_ONLY
(cherry picked from https://partner-android-review.googlesource.com/q/commit:0bcc1e21854e2d0a4f0baed5dda5dafdc638c867)
Merged-In: I72356cd84bbf7c909f741d0901ba007832133c99
Change-Id: I72356cd84bbf7c909f741d0901ba007832133c99

Shrisha Udupa   authored and   Cherrypicker Worker   commited 2025-07-15 23:05:13 -07:00
01cf177ba9
Have CtsHostsideNetworkTest run as presubmit
Test: this
Flag: EXEMPT config
Change-Id: I2675841c9e1117af7664f974b2ae2ba6e66d82ca

Chalard Jean   commited 2025-06-10 16:42:08 +09:00
5c015cfb69
Add connectivity tests for presubmit on tv
Bug: 404543522
Test: make and flash
FLAG: EXEMPT TEST_ONLY
Change-Id: Iebd46137b6aaae93dc8d92ac0d3ab30ad327c78f

Gazal Agarwal   commited 2025-04-03 09:13:40 -07:00
d363be6557
Use CtsTetheringTest in TEST_MAPPING
This commit updates the TEST_MAPPING to use CtsTetheringTest directly
instead of CtsTetheringTestLatestSdk. Since the *-mainline-prod branch
is no longer used, the latest SDK test is redundant, and
CtsTetheringTest should be used instead.

This commit also move the CtsTetheringTest to presubmit.

Test: TH
Change-Id: I78ef1368e9122c9b69466bb7e295ec38b5d1e829

Yuyang Huang   commited 2025-02-05 12:50:33 +09:00
d9f3b07304
Prepare CtsTetheringTestLatestSdk for presubmit by adding it to postsubmit
This commit adds CtsTetheringTestLatestSdk to the postsubmit
configuration. This is a preparatory step towards moving the test to
presubmit, ensuring it runs regularly and catches issues earlier in the
development cycle.

Test: TH
Change-Id: I6932b0b660a675a20102d2683119f689557d8590

Yuyang Huang   commited 2025-01-31 17:51:21 +09:00
1325a02e96
Add CtsNetTestCasesUpdateStatsPermission to automotive-mumd-presubmit
Bug: 364634490
Bug: 374372313
Flag: EXEMPT TEST_MAPPING update
Test: m
Change-Id: Ie50ab9d9581a923612fcabfce4cd396265fb9188

Xiang Wang   commited 2024-11-26 23:29:10 +00:00
aa2c8b022e
Add CtsNetTestCase as presubmit for automotive multi-user multi-display
This changelist adds a new presubmit entry to be used to trigger this test module on automotive target with visible background user enabled (multi-user multi-display targets).

Bug: 374372313
Test: m
Change-Id: I3de5d9660cf472df0011e920c674da0e2895ef39

Antonio Kantek   commited 2024-10-24 22:18:00 +00:00
431d11b1ff
Move CtsHostsideNetworkTests to presubmit.
Fix: 365191921
Test: test-only change
Change-Id: I554c479e4aa58beb284eef635653fdc67ee5c63f

Lorenzo Colitti   commited 2024-09-24 15:25:02 +09:00
1811edb633
Add CtsHostsideNetworkTests to postsubmit.
In preparation for adding them to presubmit.

Test: TEST_MAPPING-only change
Change-Id: Ief37640ed2f1f249d31eefa0b336707b44483455

Lorenzo Colitti   commited 2024-09-09 20:03:03 +09:00
5f0ddbdf4e
Merge "Remove CtsNetTestCasesLatestSdk" into main
Motomu Utsumi   authored and   Gerrit Code Review   commited 2024-07-05 06:15:04 +00:00
77db323f37
Add assert_utils for multidevice test
Test: atest NetworkStaticLibHostPythonTests
Bug: 335368434
Change-Id: I2a9ee97b84cb16791c0c5e3cb03120e67ffeb0af

Junyu Lai   commited 2024-07-01 12:23:59 +08:00
850e6fae54
Remove CtsNetTestCasesLatestSdk
CtsNetTestCasesLatestSdk was originally used for MTS but aosp/2963602
added CtsNetTestCases to MTS.
And CtsNetTestCasesLatestSdk can be removed now.
This CL Removes CtsNetTestCasesLatestSdk and updated TEST_MAPPING to use
CtsNetTestCases.

Test: TH
Change-Id: I5bb766c12b67cb9016351a24493ec9dbf695fcf9

Motomu Utsumi   commited 2024-06-13 12:59:11 +09:00
c42f32fca1
Move NetHttpCoverageTest to external/cronet TEST_MAPPING
It seems that aosp/3086726 landed before aosp/2910846 and did not result
in any merge conflict which led to a leftover entry for cronet tests.

This CL removes it and in the same topic, it is moved to external/cronet

Bug: 338358650
Test: TH
Change-Id: If875f252aaadedff8d5ed520bdb152874b6fa9c3

Mohannad Farrag   commited 2024-05-21 12:45:56 +00:00
a72a957eb5
Merge "Move Cronet's MTS/CTS to external/cronet" into main
Treehugger Robot   authored and   Gerrit Code Review   commited 2024-05-17 12:24:06 +00:00
143a6c7b2e
Add a dedicated Mainline Test Mapping group for Connectivity modules
Test of *all* Mainline modules are currently configured in a single
`mainline-presubmit` Test Mapping group. This requires that users indicate the
module to install in every entry and is quite tedious.

The above approach also adds overhead due to installing, checking for, and
uninstalling Mainline modules between test module executions. This eats up
precious presubmit time and gets runtimes close to violating the SLO.

This change moves all Connectivity Mainline module tests into a
dedicated Test Mapping group that installs the Mainline module once before
executing all test modules. This also simplifies the configuration syntax by no
longer requiring brackets that indicate the, now implicit, Mainline module.

Bug: 328102821
Test: presubmit checks
Change-Id: I496cc3ae38564ea3eaea557322de57ae3d6ee083

Diwas Sharma   commited 2024-05-14 20:50:42 +00:00
7621bfba01
Move Cronet's MTS/CTS to external/cronet
* Cronet MTS / configuration changes continuously on each new import
that we do and coordinating two different repositories while doing an
import is unnecessarily added friction for which we wish to avoid.
Moving configuration to external/cronet will allow us to reduce test
divergence COMPLETELY which will make our import process  easier.

* The code under test exists under `external/cronet` which makes sense
that the testing modules should live next to the code under test.

* Moved CTS tests to external/cronet as the code under test lives in
external/cronet.

Test: TH
Bug: 304217500
Bug: 338358650
Change-Id: I7537985f66ba36169219472cc268fe8fd5b3c58d

Mohannad Farrag   commited 2024-05-02 11:54:56 +00:00
b824e0f2aa
Exclude NetworkStackModuleTest in mts CtsNetTestCasesLatestSdk case
Test: TH
Change-Id: I18e051713fe45a24fbeadeffa3309d0473ba0cc1

Yuyang Huang   commited 2024-03-27 20:11:45 +09:00
a626958a2b
Remove TrafficController
BpfNetMaps now updates bpf map by Java library and does not use
TrafficController.

Bug: 217624062
Test: TH
Change-Id: Id727cf7b79592e913c967156e6e224de338f5f65

Motomu Utsumi   commited 2023-11-07 20:25:24 +09:00
424038fe25
Add dns_helper_unit_test in TEST_MAPPING
Enable test in postsubmit.

According to go/test-mapping-slo-guide, the test needs to meet
postsubmit SLO before adding it to presubmit.

Bug: 288340533
Test: run presubmit
Change-Id: Id5fae55fa0cb7c7b15e183bbea66c7a139360d95

Ken Chen   commited 2023-11-01 06:23:09 +08:00
d4e5c76c6e
Merge "Respect SkipPresubmit annotation for ConnectivityCoverageTests" into main
Junyu Lai   authored and   Gerrit Code Review   commited 2023-10-19 06:58:40 +00:00
6809bbde8e
Respect SkipPresubmit annotation for ConnectivityCoverageTests
Follow-up from aosp/2788197, the CL does not work since
SkipPresubmit annotation is not excluded from TEST_MAPPING for
ConnectivityCoverageTests.

Test: TH
Bug: 302325928
Change-Id: Ibfa509aadc9e54da14738714be46abd25f46f3fb

Junyu Lai   commited 2023-10-19 10:33:03 +08:00
08a4a873b8
Respect SkipPresubmit annotation for ConnectivityCoverageTests
Follow-up from aosp/2788197, the CL does not work since
SkipPresubmit annotation is not excluded from TEST_MAPPING for
ConnectivityCoverageTests.

Test: TH
Bug: 302325928
Change-Id: I2d953f19e5d5eb5f5d8fdf4faf335d603bae42a0

Junyu Lai   commited 2023-10-17 17:25:10 +08:00
86298be5f8
Add NetworkStackModuleTest exclusion for ConnectivityCoverageTests in TEST_MAPPING.
testTetherZeroLengthDhcpPacket requires to install both Tethering
and NetworkStack modules, add NetworkStackModuleTest annotation for
ConnectivityCoverageTests running as presubmit to exclude the
testTetherZeroLengthDhcpPacket from presubmit.

Bug: 287798985
Test: TH
Change-Id: I2e21e2623b181e678189ca7758210be1b5409ae7

Xiao Ma   commited 2023-09-29 15:35:21 +09:00
432162d5de
[Cronet] NetHttpCoverageTests presubmit SLO fixes
- Adds NetHttpCoverageTests to postsubmit. This would allow us
to run tests with @SkipPresubmit in post submit.
- Don't jarjar com.android.testutil so that the annotation can
still be found by the testrunner.

Bug: b/293843426
Test: th
Change-Id: I9e792d338515acba798092bbc4c615aef2cac47a

Chidera Olibie   commited 2023-08-17 14:52:31 +00:00
be9f351f36
Merge "Skip presubmit for flaky tests" into main
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2023-07-28 03:38:33 +00:00
dff0f956e3
Merge changes from topic "hostsidevpntestflaky" into main
* changes:
  Skip presubmit for flaky tests in FrameworksNetTests due to Out of SLO
  Skip presubmit for flaky tests in HostsideVpnTests due to Out of SLO

Junyu Lai   authored and   Gerrit Code Review   commited 2023-07-28 02:06:17 +00:00
a6be6cd48a
Skip presubmit for flaky tests
Skip presubmit for tests that have been reported to be >0.5% flaky in
presubmit, or in mainline-presubmit. Tests that only meet that criteria
in mainline-presubmit are only marked as @SkipMainlinePresubmit.

Ensure that the tests are still run in postsubmit so they can be moved
back to presubmit after getting fixed.

Test: TH
Bug: 284534251
Bug: 292174275
Bug: 292173706
Bug: 292174832
Bug: 289879947
Bug: 286701510
Bug: 293239598
Bug: 279846955
Bug: 277567450
Bug: 293239828
Bug: 293240365
Change-Id: I986a1079709057d3210016c50b632fe0f3bff1e2

Remi NGUYEN VAN   commited 2023-07-27 02:36:38 +00:00
8db52a5987
Merge "[Cronet] skip presubmit for flaky tests" into main
Treehugger Robot   authored and   Gerrit Code Review   commited 2023-07-26 10:29:40 +00:00
b868a462fd
Skip presubmit for flaky tests in FrameworksNetTests due to Out of SLO
Test: TH
Bug: 293233390
Change-Id: Ic1d0d86b3f8dfc8e8122c6b05973fab8b57e52b4

Junyu Lai   commited 2023-07-26 16:31:46 +08:00
b8fc755259
[Cronet] skip presubmit for flaky tests
Bug: b/293141085
Bug: b/292298108
Test: n/a
Change-Id: Ie7190c0222bd75f3f2df0c5b757b1ab9d0114d77

Chidera Olibie   commited 2023-07-25 20:56:29 +00:00
cd038a07fb
Exclude some DnsResolverTest tests from some CtsNetTestCasesLatestSdk
Some DnsResolverTest tests are flaky because CtsNetTestCasesLatestSdk
doesn't run with the latest resolv module that has some DoH/DoT fixes.

In this change:
1. The DnsResolverTest tests that do DNS lookups (which probably use
   private DNS) and check the results are marked as DnsResolverModuleTest
2. Exclude those tests from mainline-presubmit CtsNetTestCasesLatestSdk
   that doesn't run with the latest resolv module.

Bug: 279846955
Test: TreeHugger
Change-Id: I86942c22195132a5c96e838619c8bcfaaedc7c99

Mike Yu   commited 2023-06-26 07:40:06 +00:00
cc5dbf951d
Add NetworkStackModuleTest annotation on the specific test case.
EthernetTetheringTest#testTetherZeroLengthDhcpPacket requires the latest
NetworkStack module, otherwise, the test will fail due to the loss of
the fix. Apply @NetworkStackModuleTest to exclude this testcase from
target test suite CtsTetheringTestLatestSdk.

Bug: 283200648
Test: atest CtsTetheringTestLatestSdk
Change-Id: Iebfb043e2b71427a6feaf90788fe79b6ab6b678d

Xiao Ma   commited 2023-06-01 18:16:24 +09:00
161b70c587
Add CtsTetheringTestLatestSdk into mainline-presubmit
Also test CtsTetheringTestLatestSdk on physical devices
physical SIM in mainline-post

Test: TH

Change-Id: Ia9806c46fbe49282017011ea6ca414e2c58fe00b

Mark Chien   authored and   Mark   commited 2023-05-31 03:50:26 +00:00
f8870fa7af
[Cronet] Filter out large tests from presubmit
The presubmit timeout per test is 1min and some of these
largeTests take longer than that.

Test: atest NetHttpCoverageTests
Bug: 267353182
Change-Id: Ic355822482d2072d494ac20e0ad3601de45d1c30

Chidera Olibie   commited 2023-04-03 18:10:01 +00:00
356b74cd61
[Cronet] Added NetHttpCoverageTests to presubmit
Removes CtsNetHttpTestCases and NetHttpTests from TEST_MAPPING
since these are part of NetHttpCoverageTests.

Test: atest NetHttpCoverageTests
Bug: 267353182
Change-Id: Idfa6db0fdce254e4552c2541b2471f1c71fe248b

Chidera Olibie   commited 2023-03-30 11:58:39 +00:00
7157837e08
Add NetHttpCoverageTests to mainline presubmit
Mainline presubmit runs on older images. So we need to set:
- min_sdk_version to the minimum sdk we support otherwise
it would default to current
- enforce_default_target_sdk_version since mainline needs
all modules to target the latest sdk

Test: presubmit
Bug: 263294440
Change-Id: I20757b13ab9ab45908dae088c6cb6b0bbc51989d

Chidera Olibie   commited 2023-03-06 08:20:56 +00:00
d66799a20c
Verify the access to the mdnsd socket is blocked from Android U
The untrusted apps should not directly access /dev/socket/mdnsd since
Android U(SDK 34). For untrusted apps built with target SDK 33 or less,
it should still be able to access the mdnsd socket. Fix the mts test
suits from mts-networking to mts-tethering. If the test suits is marked
as mts-networking, it would run in NetworkStack MTS, which isn't really
what is tested in the tests.

Test: atest CtsNetTestCases CtsNetTestCasesMaxTargetSdk33
Bug: 267102290
Change-Id: I851c181fa7489115fb1f335a369830078f5a5c14

Yuyang Huang   commited 2023-02-27 18:40:44 +09:00
72bc600be2
Revert "Verify the access to the mdnsd socket is blocked from Android U"
This reverts commit a7bc64ffcc.

Reason for revert: breaking tm-mainline-prod testsuit build

Change-Id: I38970fa9281f6f2e884e24680fccc86e269f6d7d

Yuyang Huang   authored and   Gerrit Code Review   commited 2023-02-24 05:19:52 +00:00
5c97d6c987
Verify the access to the mdnsd socket is blocked from Android U
The untrusted apps should not directly access /dev/socket/mdnsd since
Android U(SDK 34). For untrusted apps built with target SDK 33 or less,
it should still be able to access the mdnsd socket. Fix the mts test
suits from mts-networking to mts-tethering. If the test suits is marked
as mts-networking, it would run in NetworkStack MTS, which isn't really
what is tested in the tests.

Test: atest CtsNetTestCases CtsNetTestCasesMaxTargetSdk33
Bug: 267102290
Change-Id: Icfbce8bb387df4481eef7fae94ffc38539975ce5

Yuyang Huang   commited 2023-02-20 12:03:30 +09:00
a7bc64ffcc
Revert "Verify the access to the mdnsd socket is blocked from Android U"
This reverts commit 7cdfc9099f.

Reason for revert: b/269587343

Change-Id: I8e0fbc7148b14d0df60ecd51cfd83f93986594d1

Yuyang Huang   authored and   Gerrit Code Review   commited 2023-02-17 02:59:39 +00:00
655ef33946
Verify the access to the mdnsd socket is blocked from Android U
The untrusted apps should not directly access /dev/socket/mdnsd since
Android U(SDK 34). For untrusted apps built with target SDK 33 or less,
it should still be able to access the mdnsd socket. Fix the mts test
suits from mts-networking to mts-tethering. If the test suits is marked
as mts-networking, it would run in NetworkStack MTS, which isn't really
what is tested in the tests.

Test: atest CtsNetTestCases CtsNetTestCasesMaxTargetSdk33
Bug: 267102290
Change-Id: I895fe51454cca4ea1273215cf3072e688d97e1b8

Yuyang Huang   commited 2023-02-16 11:17:31 +09:00
7cdfc9099f
Create NetHttpTests target
This will hold Java classes for cronet's mts

Bug: 267353182
Test: atest NetHttpTests
Change-Id: Id2e2bbe2ce6a19c4fcabd25773d90eb0d0901437

Chidera Olibie   commited 2023-02-08 21:06:11 +00:00
d46c92f02c
cronet: merge cronet TEST_MAPPING into connectivity TEST_MAPPING
In addition, we may want an import for external/cronet. (Though that
directory isn't currently available in tm-mainline-prod, so that could
potentially cause issues).

Test: TH
Change-Id: I61734094d3b2f92a2d6d87b221b11ae68e81f270

Patrick Rohr   commited 2023-01-24 02:42:00 -08:00
05c1ac573a
Move partial train MTS tests to presubmit
Move the MTS tests that are being run with partial train installs (only
NetworkStack+CaptivePortalLogin installed, or only Tethering installed)
to presubmit.

The tests have been passing in postsubmit.

Test: TH needs to test TEST_MAPPING change
Change-Id: Icc79fb430637e3fbf8e0ef2267aab1842a831915

Remi NGUYEN VAN   commited 2022-10-03 12:20:17 +00:00
7d8006337e
Run networkstack hostside GTS tests on module changes.
Test: TH
Bug: 240650496
Change-Id: Ie813aa31ddfd41bb1699611c5361d90fede9f485

Lorenzo Colitti   commited 2022-08-10 11:10:25 +09:00
35bf22b6b2
Add back compat config for NSD
Add back compat config for RUN_NATIVE_NSD_ONLY_IF_LEGACY_APPS, which was
lost when moving NsdManager to framework-connectivity-t.

This causes NsdManager to start mdnsresponder again when used by apps
with target SDK < 31.

The change also changes the compat ID used, to make sure it does not
conflict with the ID already in use in S and below, when the module is
installed on such a platform. This is the only ChangeId used by
framework-t.

Also add a CtsNetTestCasesMaxTargetSdk30 test to verify that behavior.

Bug: 235355681
Test: atest CtsNetTestCasesMaxTargetSdk30
Change-Id: I7ca6051d0a4ba5aff3e44bece2cbac22eb1be32d

Remi NGUYEN VAN   commited 2022-07-27 19:53:25 +09:00
348bbb0231
Removing automotive networking tests
Bug: 235717579
Test: manual build
Change-Id: I084343c36d6e370c308994a8de230b07e628f10e

Filip   authored and   Filip Zakrzewski   commited 2022-06-25 02:59:18 +00:00
e6b2a04439
Merge changes from topic "target-sdk-tests"
* changes:
  Run testExcludedRoutesDisabled only in APKs with target SDK < T.
  Create CtsNetTestCasesMaxTargetSdk31.

Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-06-01 02:53:09 +00:00
e051145522