Commit Graph

3857 Commits

Author SHA1 Message Date
Treehugger Robot
42fde1297d Merge "Create CTS test folder for IKE and EAP" 2020-03-12 07:38:45 +00:00
Bill Yi
93ddf3e885 Merge "Merge stage-aosp-master to aosp-master - DO NOT MERGE" 2020-03-05 18:27:31 +00:00
Bill Yi
8bb4487942 Merge stage-aosp-master to aosp-master - DO NOT MERGE
Change-Id: Ic18c84dc2c382560a8b44e24ecda315c1a2797cd
2020-03-05 09:50:56 -08:00
Automerger Merge Worker
3f998cd2dd Merge "Reduce DnsResolverTest flaky rate" am: de7f28fcf4
Change-Id: I30389e9ab8e663dff9d5eb336b482b4eb323f559
2020-02-21 10:33:58 +00:00
Luke Huang
de7f28fcf4 Merge "Reduce DnsResolverTest flaky rate" 2020-02-21 10:23:46 +00:00
Luke Huang
5db02f0d4f Reduce DnsResolverTest flaky rate
Adjust some timeout value and correct the conditional checking
for private DNS waiting mechanism.

Also move the fail() statement from callback thread to test thread.
It is used to avoid the test process crashing.

Bug: 148471807
Test: atest DnsResolverTest
Change-Id: I244cefeae97fe99838d1c72d867c1d7a1a7d5e87
2020-02-21 08:14:02 +00:00
Automerger Merge Worker
f9b6c17b3b Merge "cts: fix p2p cts test cases" am: dfb6f983bf
Change-Id: Ib9bd3c82f52e2abfc3621e57760e9ae1f68d5915
2020-02-20 05:06:13 +00:00
Treehugger Robot
dfb6f983bf Merge "cts: fix p2p cts test cases" 2020-02-20 04:54:48 +00:00
Jimmy Chen
24bc3a62e7 cts: fix p2p cts test cases
p2p does not use NetworkInfo.isAvailable() anymore.
Remove this obsolete check.

Bug: 148164038
Bug: 148561948
Test: atest android.net.wifi.cts.ConcurrencyTest
Change-Id: I544a2363d85ea47e404e481d4d285b9fd6b38eb5
2020-02-20 10:47:52 +08:00
Cody Kesting
85d5461834 Merge "Add CTS tests for ConnectivityDiagnosticsManager." am: 8db173d81e
Change-Id: I44daba0cbaa9c4b1315eb52b2777b1876cd7d351
2020-02-18 16:52:50 +00:00
Cody Kesting
8db173d81e Merge "Add CTS tests for ConnectivityDiagnosticsManager." 2020-02-18 16:37:44 +00:00
Mark Chien
85529a4fb6 Merge "Fix testStartTetheringWithStateChangeBroadcast flaky" am: 83669b02f3
Change-Id: I1aa9733c65904542fe1efd6ed87bd824ea416ffb
2020-02-15 03:17:42 +00:00
Mark Chien
83669b02f3 Merge "Fix testStartTetheringWithStateChangeBroadcast flaky" 2020-02-15 03:02:29 +00:00
Treehugger Robot
713493d663 Merge "Add a variant of CtsNetTestCases that targets the released SDK." am: ab9c2b4bef
Change-Id: I74b3e1943b3f14d47d9f0e42abda3a5588e77890
2020-02-14 20:34:15 +00:00
evitayan
e9be09c85a Create CTS test folder for IKE and EAP
Test files will be under ipsec/src/android/net/cts and
ipsec/src/android/net/ipsec/ike/cts

Bug: 148689509
Test: atest CtsNetTestCases(passing)
Change-Id: I1f79b0515708fcd31fd8ea9aa3974dcdcfb265c9
2020-02-14 10:58:01 -08:00
markchien
cdd2b36062 Fix testStartTetheringWithStateChangeBroadcast flaky
Before this change the test assume one active state event is followed by
zero or one availabe event:
AVAIALBE(wlan1) -> ACTIAVE(wlan1) -> AVAILALE(wlan1)

But actually Multiple tetherable wifi interfaces may be avaialbe during
the test:
AVAILABLE(wlan1) -> AVALIABLE(wlanX) -> .... -> ACTIVE(wlan1) ->
AVAIALBE(wlan1)

Additional, replacing ConnectivityManager usage to TetheringManager.

Bug: 148095484
Test: atest CtsTetheringTest
Change-Id: Id5db970c02f63f61802a18b599bf6905db619b42
2020-02-14 18:22:43 +08:00
Lorenzo Colitti
a32d4555eb Add a variant of CtsNetTestCases that targets the released SDK.
This APK can be installed and run on release devices even when
built from branches with a non-final SDK such as AOSP.

Test: builds
Change-Id: I1e1b24b09eeb7a0688fde9d8ed6bbee9c9d2582e
2020-02-14 18:39:25 +09:00
Cody Kesting
73780ff82b Add CTS tests for ConnectivityDiagnosticsManager.
Verify that ConnectivityDiagnosticsManager is able to register and
unregister ConnectivityDiagnosticsCallbacks.

Bug: 143187964
Test: atest ConnectivityDiagnosticsManagerTest
Change-Id: Ica065b58ee47e088b9d85b09f9e5b7131f5a16ab
2020-02-10 10:19:52 -08:00
Automerger Merge Worker
6e599930dd Merge "Change the location of WiFi Initialize() API within the same function" am: 26d8f5808b
Change-Id: I077641561f2c970e980d37a69fc248cd2d67f8ad
2020-01-31 16:31:36 +00:00
Automerger Merge Worker
26461e5ea8 Merge "CtsNetTestCases: Fix issues in android.net.wifi.cts.WifiEnterpriseConfigTest" am: bec47acfaa
Change-Id: Ia3ce4c1e115f74c9771e9b49af633a2d278edaf5
2020-01-31 16:06:13 +00:00
Etan Cohen
26d8f5808b Merge "Change the location of WiFi Initialize() API within the same function" 2020-01-30 21:59:31 +00:00
Etan Cohen
bec47acfaa Merge "CtsNetTestCases: Fix issues in android.net.wifi.cts.WifiEnterpriseConfigTest" 2020-01-29 21:11:31 +00:00
Jae Choon Jeon
d8fd0f8395 Change the location of WiFi Initialize() API within the same function
The testcase is failing for the model as there are no clients which have already invoked the initialize API.
So we changed the location of initialize() API little forward to be invoked before CTS test.

Bug: 148126151
Test: run cts --m CtsNetTestCases --t android.net.wifi.cts.ConcurrencyTest#testConcurrency

Change-Id: I1081d343795e07440ebf380c25f47c320c064556
Signed-off-by: Jae Choon Jeon <jc.d.jeon@samsung.com>
(cherry picked from commit 1a46560a2b55df0b3159884a7eed4b2598c2e827)
2020-01-28 17:25:48 +00:00
jovanak
0dd6e6cc37 Merge "CtsTetheringTest secondary_user"
am: 737b6a2f8a

Change-Id: Id3d0b80cb84971628c16ff010ae80aa263d674ac
2020-01-16 12:01:58 -08:00
jovanak
72a8efb9c0 CtsTetheringTest secondary_user
Marks this CTS test module as supporting secondary_user, meaning that
the tests are eligible to be run from a regular Android user other
than the system user (i.e. other than user 0).

Note that 'user' here refers to the concept of users in Android
Multiuser; it is NOT the same as a uid.

Bug: 141773058
Test: module passed with secondary_user params
 (--enable-optional-parameterization --module-parameter secondary_user)

Change-Id: I92d97cae99418dac3cd6e1cbb625b12f0c2cc60a
2020-01-14 16:18:41 -08:00
jgkim
ca18cb02b6 CtsNetTestCases: Fix issues in android.net.wifi.cts.WifiEnterpriseConfigTest
1.android.net.wifi.cts.WifiEnterpriseConfigTest#testAddEapNetwork
2.android.net.wifi.cts.WifiEnterpriseConfigTest#testEnterpriseConfigDoesNotPrintPassword
3.android.net.wifi.cts.WifiEnterpriseConfigTest#testSettersAndGetters

Bug:143000258
Test: run cts-on-gsi -m CtsNetTestCases-t android.net.wifi.cts.WifiEnterpriseConfigTest#testAddEapNetwork
Test: run cts-on-gsi -m CtsNetTestCases-t android.net.wifi.cts.WifiEnterpriseConfigTest#testEnterpriseConfigDoesNotPrintPassword
Test: run cts-on-gsi -m CtsNetTestCases-t android.net.wifi.cts.WifiEnterpriseConfigTest#testSettersAndGetters
Change-Id: Iaed949693c8ac8ce67dbde6acb622f90f0e638da
2020-01-03 16:23:15 +09:00
Automerger Merge Worker
1737d5d1ac Merge "fix the problem that testNetworkSettingsPermission case can not detect all apps whose holding the NETWORK_SETTINGS permission" am: 9228a471cc am: 8634565225
Change-Id: I0f3f4139fc7dc534699a6642672f7515002fc2f3
2019-12-24 01:52:52 +00:00
qianyou
8634565225 Merge "fix the problem that testNetworkSettingsPermission case can not detect all apps whose holding the NETWORK_SETTINGS permission"
am: 9228a471cc

Change-Id: I32edc7a87d1c0b49a44806c89407a2f644b94110
2019-12-23 17:41:05 -08:00
Treehugger Robot
9228a471cc Merge "fix the problem that testNetworkSettingsPermission case can not detect all apps whose holding the NETWORK_SETTINGS permission" 2019-12-24 01:36:56 +00:00
Automerger Merge Worker
311b4e40df Merge "Fix Error Prone errors" am: 72acd372b2 am: bbf2f80c02
Change-Id: If25e24771a7ec33681e2cc3c0ca210351e66deab
2019-12-20 21:19:35 +00:00
Colin Cross
bbf2f80c02 Merge "Fix Error Prone errors"
am: 72acd372b2

Change-Id: I3c095bc457071fd46ffb1b5566c5d26fdca01a95
2019-12-20 13:08:01 -08:00
Colin Cross
72acd372b2 Merge "Fix Error Prone errors" 2019-12-20 21:02:06 +00:00
qianyou
b4d1e75085 fix the problem that testNetworkSettingsPermission case can not detect all apps whose holding the NETWORK_SETTINGS permission
This test case stop when detect a app failure once a time, which cannot find out all app failure. Use StringBuilder to collect failure info of all apps first, if the StringBuilder is not empty then print all the failure info.

Bug:145475188
Test: run cts -m CtsNetTestCases -t android.net.wifi.cts.WifiManagerTest#testNetworkSettingsPermission

Change-Id: I0e49b65bbe7deca82edd1908dfb6f221551ff725
Signed-off-by: qianyou <qianyou@xiaomi.com>
(cherry picked from commit dcb3a18cbf81f2970d6c3b23a478da5b4ba91805)
2019-12-20 01:25:01 +00:00
Automerger Merge Worker
cfd433d999 Merge "Add cts for MacAddress public API" am: 0f364ba113 am: d35360b193
Change-Id: I4f3f11fa123099ff464a77d06a0b768c47c8302f
2019-12-19 08:22:29 +00:00
Aaron Huang
d35360b193 Merge "Add cts for MacAddress public API"
am: 0f364ba113

Change-Id: I7e1f870ecc47fda0e3691782389cb2920e76fd13
2019-12-19 00:10:09 -08:00
Aaron Huang
0f364ba113 Merge "Add cts for MacAddress public API" 2019-12-19 08:02:20 +00:00
Colin Cross
284371356c Fix Error Prone errors
Soong wasn't including android_app or android_test sources in the
javac-check target used for the Error Prone build, which allowed
some Error Prone errors to get in.  Fix them so Error Prone can be
re-enabled for these targets.

Fixes:
cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/LockTaskHostDrivenTest.java:50: error: [JUnitAmbiguousTestClass] Test class inherits from JUnit 3's TestCase but has JUnit 4 @Test annotations.
cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/LockTaskTest.java:51: error: [JUnitAmbiguousTestClass] Test class inherits from JUnit 3's TestCase but has JUnit 4 @Test annotations.
cts/tests/tests/telephony/current/src/android/telephony/cts/CarrierServiceTest.java:34: error: [JUnitAmbiguousTestClass] Test class inherits from JUnit 3's TestCase but has JUnit 4 @Test annotations.
cts/tests/tests/tethering/src/android/tethering/cts/TetheringManagerTest.java:166: error: [ArrayToString] Calling toString on an array does not provide useful information
cts/tests/tests/tethering/src/android/tethering/cts/TetheringManagerTest.java:172: error: [ArrayToString] Calling toString on an array does not provide useful information

Bug: 146455923
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: I949e409fd7ba80ab8937db1c08eaaaf9608b17ed
2019-12-18 14:08:48 -08:00
Automerger Merge Worker
f0d974fcb8 Merge "Add mts tag to the build file for MTS testing" am: fd1f875e39 am: c0eaab2bd8
Change-Id: I79bbfb7858d7928b40702691a5fb5f2673f986ba
2019-12-18 10:16:17 +00:00
markchien
c0eaab2bd8 Merge "Add mts tag to the build file for MTS testing"
am: fd1f875e39

Change-Id: Ida08be7794032867536fbeb12e59f572aee70673
2019-12-18 02:03:27 -08:00
markchien
9ccf3d87fb Add mts tag to the build file for MTS testing
Bug: 145490751
Test: build, atest CtsTetheringTest
Change-Id: I993ce5ec89ab98de7eadaf6624a30a37851ca716
2019-12-18 11:55:32 +08:00
Automerger Merge Worker
84b44168a3 Merge "Create new CTS test for tethering" am: b376f283cb am: 235a625d30
Change-Id: I5019dd909344341dd861e8c0c3dd75e6e4d61799
2019-12-17 15:23:19 +00:00
Mark Chien
235a625d30 Merge "Create new CTS test for tethering"
am: b376f283cb

Change-Id: I436030e7820cec499d1d735b4087d091ac9b812d
2019-12-17 07:08:03 -08:00
markchien
fb904c36de Create new CTS test for tethering
Initial CTS test for tethering.
This change test startTethering/stopTethering and check
status of TETHER_STATE_CHANGE intent.

Bug: 145490751
Test: atest CtsTetheringTest
Change-Id: Ia1ae3b6c2b68b009ca4deef840945186d472d99e
2019-12-16 19:53:15 +08:00
Aaron Huang
593054729c Add cts for MacAddress public API
Add test for new public APIs

Test: atest android.net.cts.MacAddressTest
Bug: 139268426
Bug: 135998869
Change-Id: Ib2b73851f621f1648904276ec12ceea02f4b5970
2019-12-16 17:11:34 +08:00
Automerger Merge Worker
0053fec176 [automerger skipped] Merge "Add a CTS test for private DNS on VPNs." into pi-dev am: a7df60640f -s ours am: ea28c5a250 -s ours am: 45fc9d14d6 -s ours am: 26cf62857d -s ours
am skip reason: Change-Id Ifa2710aed7e773a24786cc3e4912f126547dfe0b with SHA-1 3b160e2385 is in history

Change-Id: I7182910f244b1c0adcb254adeb6fb5c20da5f4d4
2019-12-13 08:25:16 +00:00
Automerger Merge Worker
45fc9d14d6 [automerger skipped] Merge "Add a CTS test for private DNS on VPNs." into pi-dev am: a7df60640f -s ours am: ea28c5a250 -s ours
am skip reason: Change-Id Ifa2710aed7e773a24786cc3e4912f126547dfe0b with SHA-1 3b160e2385 is in history

Change-Id: I74865316a615b0a7e96b02b61133dc03cb8bec15
2019-12-13 07:51:11 +00:00
Automerger Merge Worker
ea28c5a250 [automerger skipped] Merge "Add a CTS test for private DNS on VPNs." into pi-dev am: a7df60640f -s ours
am skip reason: Change-Id Ifa2710aed7e773a24786cc3e4912f126547dfe0b with SHA-1 3b160e2385 is in history

Change-Id: I351adf65d7cefb1a97ddee9a80ed9978b28d0187
2019-12-13 07:31:21 +00:00
Automerger Merge Worker
b29ba93dcd Merge "Add a CTS test for private DNS on VPNs." into qt-dev am: 17311d9af6 am: fe44dd21ba am: 523cc30322
Change-Id: If38d0c7e8b878e76ff4a52fcdd441b002ce9ddf0
2019-12-13 01:41:48 +00:00
Automerger Merge Worker
fe44dd21ba Merge "Add a CTS test for private DNS on VPNs." into qt-dev am: 17311d9af6
Change-Id: I31b248ede81bc423d91ba747cc6a8275a4be4f81
2019-12-13 01:05:22 +00:00
Lorenzo Colitti
3b160e2385 Add a CTS test for private DNS on VPNs.
Bug: 122652057
Test: atest com.android.cts.net.HostsideVpnTests passes with fix, fails without it
Change-Id: Ifa2710aed7e773a24786cc3e4912f126547dfe0b
2019-12-12 19:41:01 +09:00