mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 05:55:28 +00:00
[#2815] Fix unit test
This commit is contained in:
@@ -1459,13 +1459,6 @@ TEST_F(CfgHostsTest, update) {
|
|||||||
SubnetID(1), IOAddress("0.0.0.0"),
|
SubnetID(1), IOAddress("0.0.0.0"),
|
||||||
"foo.example.com"));
|
"foo.example.com"));
|
||||||
|
|
||||||
// Updating any host currently throws because it relies on delete being
|
|
||||||
// implemented which is not.
|
|
||||||
EXPECT_THROW_MSG(cfg.update(host), NotImplemented, "sorry, not implemented");
|
|
||||||
|
|
||||||
// Temporary return. Remove it and the preceding EXPECT_THROW_MSG when delete gets implemented.
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Updating a host that doesn't exist should throw.
|
// Updating a host that doesn't exist should throw.
|
||||||
EXPECT_THROW_MSG(cfg.update(host), HostNotFound, "Host not updated (not found).");
|
EXPECT_THROW_MSG(cfg.update(host), HostNotFound, "Host not updated (not found).");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user