Skip to content

Commit

Permalink
[tests] Check LXD factory's bridge_name_for works
Browse files Browse the repository at this point in the history
  • Loading branch information
luis4a0 committed Jan 12, 2024
1 parent 7d89c5d commit 7f10f71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/lxd/test_lxd_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2355,3 +2355,10 @@ TEST_F(LXDBackend, addsNetworkInterface)

EXPECT_EQ(times_called, 1u);
}

TEST_F(LXDBackend, backendReturnsCorrectBridgeName)
{
CustomLXDFactory factory{std::move(mock_network_access_manager), data_dir.path(), base_url};

EXPECT_EQ(factory.bridge_name_for("eth7"), "br-eth7");
}

0 comments on commit 7f10f71

Please sign in to comment.