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
This commit is contained in:
10
TEST_MAPPING
10
TEST_MAPPING
@@ -5,7 +5,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
// In addition to ConnectivityCoverageTests, runs non-connectivity-module tests
|
// In addition to ConnectivityCoverageTests, runs non-connectivity-module tests
|
||||||
"name": "FrameworksNetTests"
|
"name": "FrameworksNetTests",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
// Run in addition to mainline-presubmit as mainline-presubmit is not
|
// Run in addition to mainline-presubmit as mainline-presubmit is not
|
||||||
// supported in every branch.
|
// supported in every branch.
|
||||||
@@ -123,6 +128,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "FrameworksNetDeflakeTest"
|
"name": "FrameworksNetDeflakeTest"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "FrameworksNetTests"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"mainline-presubmit": [
|
"mainline-presubmit": [
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ java_test_host {
|
|||||||
// Only compile source java files in this apk.
|
// Only compile source java files in this apk.
|
||||||
srcs: ["src/**/*.java"],
|
srcs: ["src/**/*.java"],
|
||||||
libs: [
|
libs: [
|
||||||
|
"net-tests-utils-host-device-common",
|
||||||
"cts-tradefed",
|
"cts-tradefed",
|
||||||
"tradefed",
|
"tradefed",
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -11,6 +11,20 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"exclude-annotation": "android.platform.test.annotations.RequiresDevice"
|
"exclude-annotation": "android.platform.test.annotations.RequiresDevice"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"postsubmit": [
|
||||||
|
{
|
||||||
|
// Postsubmit on virtual devices to monitor flakiness of @SkipPresubmit methods
|
||||||
|
"name": "CtsHostsideNetworkTests",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ package com.android.cts.net;
|
|||||||
|
|
||||||
import android.platform.test.annotations.RequiresDevice;
|
import android.platform.test.annotations.RequiresDevice;
|
||||||
|
|
||||||
|
import com.android.testutils.SkipPresubmit;
|
||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@@ -35,11 +37,13 @@ public class HostsideVpnTests extends HostsideNetworkTestCase {
|
|||||||
uninstallPackage(TEST_APP2_PKG, true);
|
uninstallPackage(TEST_APP2_PKG, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SkipPresubmit(reason = "Out of SLO flakiness")
|
||||||
@Test
|
@Test
|
||||||
public void testChangeUnderlyingNetworks() throws Exception {
|
public void testChangeUnderlyingNetworks() throws Exception {
|
||||||
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testChangeUnderlyingNetworks");
|
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testChangeUnderlyingNetworks");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SkipPresubmit(reason = "Out of SLO flakiness")
|
||||||
@Test
|
@Test
|
||||||
public void testDefault() throws Exception {
|
public void testDefault() throws Exception {
|
||||||
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testDefault");
|
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testDefault");
|
||||||
@@ -162,6 +166,7 @@ public class HostsideVpnTests extends HostsideNetworkTestCase {
|
|||||||
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testBlockIncomingPackets");
|
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testBlockIncomingPackets");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SkipPresubmit(reason = "Out of SLO flakiness")
|
||||||
@Test
|
@Test
|
||||||
public void testSetVpnDefaultForUids() throws Exception {
|
public void testSetVpnDefaultForUids() throws Exception {
|
||||||
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testSetVpnDefaultForUids");
|
runDeviceTests(TEST_PKG, TEST_PKG + ".VpnTest", "testSetVpnDefaultForUids");
|
||||||
|
|||||||
@@ -422,6 +422,7 @@ import com.android.testutils.FunctionalUtils.ThrowingConsumer;
|
|||||||
import com.android.testutils.FunctionalUtils.ThrowingRunnable;
|
import com.android.testutils.FunctionalUtils.ThrowingRunnable;
|
||||||
import com.android.testutils.HandlerUtils;
|
import com.android.testutils.HandlerUtils;
|
||||||
import com.android.testutils.RecorderCallback.CallbackEntry;
|
import com.android.testutils.RecorderCallback.CallbackEntry;
|
||||||
|
import com.android.testutils.SkipPresubmit;
|
||||||
import com.android.testutils.TestableNetworkCallback;
|
import com.android.testutils.TestableNetworkCallback;
|
||||||
import com.android.testutils.TestableNetworkOfferCallback;
|
import com.android.testutils.TestableNetworkOfferCallback;
|
||||||
|
|
||||||
@@ -7414,6 +7415,7 @@ public class ConnectivityServiceTest {
|
|||||||
assertPinnedToWifiWithCellDefault();
|
assertPinnedToWifiWithCellDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SkipPresubmit(reason = "Out of SLO flakiness")
|
||||||
@Test
|
@Test
|
||||||
public void testNetworkCallbackMaximum() throws Exception {
|
public void testNetworkCallbackMaximum() throws Exception {
|
||||||
final int MAX_REQUESTS = 100;
|
final int MAX_REQUESTS = 100;
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ import com.android.server.IpSecService;
|
|||||||
import com.android.server.VpnTestBase;
|
import com.android.server.VpnTestBase;
|
||||||
import com.android.server.vcn.util.PersistableBundleUtils;
|
import com.android.server.vcn.util.PersistableBundleUtils;
|
||||||
import com.android.testutils.DevSdkIgnoreRule;
|
import com.android.testutils.DevSdkIgnoreRule;
|
||||||
|
import com.android.testutils.SkipPresubmit;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
@@ -1713,6 +1714,7 @@ public class VpnTest extends VpnTestBase {
|
|||||||
errorCode);
|
errorCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SkipPresubmit(reason = "Out of SLO flakiness")
|
||||||
@Test
|
@Test
|
||||||
public void testStartPlatformVpnFailedWithRecoverableError() throws Exception {
|
public void testStartPlatformVpnFailedWithRecoverableError() throws Exception {
|
||||||
final IkeProtocolException exception = mock(IkeProtocolException.class);
|
final IkeProtocolException exception = mock(IkeProtocolException.class);
|
||||||
@@ -1722,6 +1724,7 @@ public class VpnTest extends VpnTestBase {
|
|||||||
VpnManager.CATEGORY_EVENT_IKE_ERROR, VpnManager.ERROR_CLASS_RECOVERABLE, errorCode);
|
VpnManager.CATEGORY_EVENT_IKE_ERROR, VpnManager.ERROR_CLASS_RECOVERABLE, errorCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SkipPresubmit(reason = "Out of SLO flakiness")
|
||||||
@Test
|
@Test
|
||||||
public void testStartPlatformVpnFailedWithUnknownHostException() throws Exception {
|
public void testStartPlatformVpnFailedWithUnknownHostException() throws Exception {
|
||||||
final IkeNonProtocolException exception = mock(IkeNonProtocolException.class);
|
final IkeNonProtocolException exception = mock(IkeNonProtocolException.class);
|
||||||
@@ -1733,6 +1736,7 @@ public class VpnTest extends VpnTestBase {
|
|||||||
errorCode);
|
errorCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SkipPresubmit(reason = "Out of SLO flakiness")
|
||||||
@Test
|
@Test
|
||||||
public void testStartPlatformVpnFailedWithIkeTimeoutException() throws Exception {
|
public void testStartPlatformVpnFailedWithIkeTimeoutException() throws Exception {
|
||||||
final IkeNonProtocolException exception = mock(IkeNonProtocolException.class);
|
final IkeNonProtocolException exception = mock(IkeNonProtocolException.class);
|
||||||
@@ -1754,6 +1758,7 @@ public class VpnTest extends VpnTestBase {
|
|||||||
VpnManager.ERROR_CODE_NETWORK_LOST);
|
VpnManager.ERROR_CODE_NETWORK_LOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SkipPresubmit(reason = "Out of SLO flakiness")
|
||||||
@Test
|
@Test
|
||||||
public void testStartPlatformVpnFailedWithIOException() throws Exception {
|
public void testStartPlatformVpnFailedWithIOException() throws Exception {
|
||||||
final IkeNonProtocolException exception = mock(IkeNonProtocolException.class);
|
final IkeNonProtocolException exception = mock(IkeNonProtocolException.class);
|
||||||
@@ -2386,6 +2391,7 @@ public class VpnTest extends VpnTestBase {
|
|||||||
true /* areLongLivedTcpConnectionsExpensive */);
|
true /* areLongLivedTcpConnectionsExpensive */);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SkipPresubmit(reason = "Out of SLO flakiness")
|
||||||
@Test
|
@Test
|
||||||
public void testPreferredIpProtocolFromCarrierConfig_v4UDP() throws Exception {
|
public void testPreferredIpProtocolFromCarrierConfig_v4UDP() throws Exception {
|
||||||
doTestReadCarrierConfig(createTestCellNc(),
|
doTestReadCarrierConfig(createTestCellNc(),
|
||||||
@@ -2398,6 +2404,7 @@ public class VpnTest extends VpnTestBase {
|
|||||||
false /* areLongLivedTcpConnectionsExpensive */);
|
false /* areLongLivedTcpConnectionsExpensive */);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SkipPresubmit(reason = "Out of SLO flakiness")
|
||||||
@Test
|
@Test
|
||||||
public void testPreferredIpProtocolFromCarrierConfig_v6ESP() throws Exception {
|
public void testPreferredIpProtocolFromCarrierConfig_v6ESP() throws Exception {
|
||||||
doTestReadCarrierConfig(createTestCellNc(),
|
doTestReadCarrierConfig(createTestCellNc(),
|
||||||
@@ -2410,6 +2417,7 @@ public class VpnTest extends VpnTestBase {
|
|||||||
false /* areLongLivedTcpConnectionsExpensive */);
|
false /* areLongLivedTcpConnectionsExpensive */);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SkipPresubmit(reason = "Out of SLO flakiness")
|
||||||
@Test
|
@Test
|
||||||
public void testPreferredIpProtocolFromCarrierConfig_v6UDP() throws Exception {
|
public void testPreferredIpProtocolFromCarrierConfig_v6UDP() throws Exception {
|
||||||
doTestReadCarrierConfig(createTestCellNc(),
|
doTestReadCarrierConfig(createTestCellNc(),
|
||||||
|
|||||||
Reference in New Issue
Block a user