diff options
author | Alberto Contreras <alberto.contreras@canonical.com> | 2023-04-27 21:11:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 14:11:07 -0500 |
commit | aa0cd62c81866d632522bbc54dc03eb4fa7fd913 (patch) | |
tree | 9e861a7841de93b125ea325dc6043cd62fc40b0f /tests/integration_tests/modules/test_user_events.py | |
parent | be3441b217949f608cf1cba677e3484ba49f7e7b (diff) | |
download | cloud-init-git-aa0cd62c81866d632522bbc54dc03eb4fa7fd913.tar.gz |
gce: activate network discovery on every boot (#2128)
Google wants to allow users to make changes on nics while the instance
is stopped. Activate network discovery on every boot.
Additionally, skip the call to `netplan generate` if the rendered
config is the same on subsequent boots.
Diffstat (limited to 'tests/integration_tests/modules/test_user_events.py')
-rw-r--r-- | tests/integration_tests/modules/test_user_events.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/integration_tests/modules/test_user_events.py b/tests/integration_tests/modules/test_user_events.py index 79d88022..810f8727 100644 --- a/tests/integration_tests/modules/test_user_events.py +++ b/tests/integration_tests/modules/test_user_events.py @@ -28,8 +28,7 @@ def _add_dummy_bridge_to_netplan(client: IntegrationInstance): @pytest.mark.skipif( - PLATFORM - not in ["lxd_container", "lxd_vm", "ec2", "gce", "oci", "openstack"], + PLATFORM not in ["lxd_container", "lxd_vm", "ec2", "oci", "openstack"], reason="Default boot events testing is datasource specific", ) def test_boot_event_disabled_by_default(client: IntegrationInstance): @@ -93,7 +92,7 @@ def _test_network_config_applied_on_reboot(client: IntegrationInstance): @pytest.mark.skipif( - PLATFORM != "azure", + PLATFORM not in ("azure", "gce"), reason=( f"{PLATFORM} doesn't support updates every boot event by default " "(or hasn't been testing for it)." |