2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[#1065] fixed rebase

This commit is contained in:
Razvan Becheriu
2020-08-03 15:31:08 +03:00
parent 8e25cb6448
commit 3bb1911280
2 changed files with 12 additions and 13 deletions

View File

@@ -1858,7 +1858,6 @@ LeaseCmdsImpl::lease4WipeHandler(CalloutHandle& handle) {
StatsMgr::generateName("subnet", id, "assigned-addresses"),
int64_t(0));
StatsMgr::instance().setValue(
StatsMgr::generateName("subnet", id, "declined-addresses"),
int64_t(0));

View File

@@ -4620,12 +4620,6 @@ TEST_F(LeaseCmdsTest, Lease6Update) {
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
99, "assigned-pds"))->getInteger().first, 0);
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
66, "declined-addresses"))->getInteger().first, 2);
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
99, "declined-addresses"))->getInteger().first, 2);
// Now send the command.
string txt =
"{\n"
@@ -4687,6 +4681,12 @@ TEST_F(LeaseCmdsTest, Lease6UpdateWithStats) {
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
99, "assigned-pds"))->getInteger().first, 0);
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
66, "declined-addresses"))->getInteger().first, 2);
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
99, "declined-addresses"))->getInteger().first, 2);
// Now send the command.
string txt =
"{\n"
@@ -4754,12 +4754,6 @@ TEST_F(LeaseCmdsTest, Lease6UpdateNoSubnetId) {
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
99, "assigned-pds"))->getInteger().first, 0);
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
66, "declined-addresses"))->getInteger().first, 2);
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
99, "declined-addresses"))->getInteger().first, 2);
// Now send the command.
string txt =
"{\n"
@@ -4823,6 +4817,12 @@ TEST_F(LeaseCmdsTest, Lease6UpdateNoSubnetIdWithStats) {
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
99, "assigned-pds"))->getInteger().first, 0);
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
66, "declined-addresses"))->getInteger().first, 2);
ASSERT_EQ(StatsMgr::instance().getObservation(StatsMgr::generateName("subnet",
99, "declined-addresses"))->getInteger().first, 2);
// Now send the command.
string txt =
"{\n"