[snap][CI] remove some v0.23.0 related tests
Version v0.26.0 breaks snapshots compatibility with older versions of
Firecracker beacause it introduces new virtio features. We need to
remove some tests related to v0.23.0 because of this new check.
@@ -40,9 +40,13 @@ def _create_and_start_microvm_with_net_devices(test_microvm,
assert exit_code == 0
+@pytest.mark.skipif(
+ platform.machine() != "aarch64",
+ reason="Exercises specific x86_64 functionality."
+)
def test_create_v0_23_snapshot(test_microvm_with_api):
"""
- Exercise creating a snapshot targeting v0.23 on all platforms.
+ Exercise creating a snapshot targeting v0.23 on aarch64.
@type: functional
"""
@@ -64,50 +68,12 @@ def test_create_v0_23_snapshot(test_microvm_with_api):
diff=True,
version="0.23.0"
)
- if platform.machine() == "x86_64":
- assert test_microvm.api_session.is_status_no_content(
- response.status_code)
- elif platform.machine() == "aarch64":
- assert test_microvm.api_session.is_status_bad_request(
- response.status_code)
+
+ assert test_microvm.api_session.is_status_bad_request(response.status_code)
assert "Cannot translate microVM version to snapshot data version"\
in response.text
-@pytest.mark.skipif(
- platform.machine() != "x86_64",
- reason="Exercises specific x86_64 functionality."
-)
-def test_create_with_prev_device_count(test_microvm_with_api, network_config):
- """
- Create snapshot with expected device count for previous versions.
-
- @type: functional
- """
- test_microvm = test_microvm_with_api
-
- # Create and start a microVM with (`FC_V0_23_MAX_DEVICES_ATTACHED` - 1)
- # network devices.
- devices_no = FC_V0_23_MAX_DEVICES_ATTACHED - 1
- _create_and_start_microvm_with_net_devices(test_microvm,
- network_config,
- devices_no)
-
- snapshot_builder = SnapshotBuilder(test_microvm)
- # Create directory and files for saving snapshot state and memory.
- _snapshot_dir = snapshot_builder.create_snapshot_dir()
-
- # Pause and create a snapshot of the microVM. Firecracker v0.23 allowed a
- # maximum of `FC_V0_23_MAX_DEVICES_ATTACHED` virtio devices at a time.
- # This microVM has `FC_V0_23_MAX_DEVICES_ATTACHED` devices, including the
- # rootfs, so snapshotting should succeed.
- test_microvm.pause_to_snapshot(
- mem_file_path="/snapshot/vm.mem",
- snapshot_path="/snapshot/vm.vmstate",
- diff=True,
- version="0.23.0")
-
-
@pytest.mark.skipif(
platform.machine() != "x86_64",
reason="Exercises specific x86_64 functionality."
