Skip to content

Commit

Permalink
[tests][qemu][linux] Adding interface must throw.
Browse files Browse the repository at this point in the history
  • Loading branch information
luis4a0 committed Nov 8, 2023
1 parent a190934 commit 15875b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/qemu/linux/test_qemu_platform_detail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,12 @@ TEST_F(QemuPlatformDetail, writing_ipforward_file_failure_logs_expected_message)

mp::QemuPlatformDetail qemu_platform_detail{data_dir.path()};
}

TEST_F(QemuPlatformDetail, add_network_interface_throws)
{
mp::QemuPlatformDetail qemu_platform_detail{data_dir.path()};

mp::VirtualMachineDescription desc;
mp::NetworkInterface net{"id", "52:54:00:98:76:54", true};
EXPECT_THROW(qemu_platform_detail.add_network_interface(desc, net), mp::NotImplementedOnThisBackendException);
}

0 comments on commit 15875b5

Please sign in to comment.