client.useServerId(bogus_srv_id);
client.doRequest();
- // Ok, let's check the statistics. None should be present.
+ // Ok, let's check the statistic. pkt6-receive-drop should be set to 1.
using namespace isc::stats;
StatsMgr& mgr = StatsMgr::instance();
}
// This test verifies that pkt6-receive-drop is increased properly when the
-// client's packet is rejected due to having too many client-id options
-// (exactly one is expected).
+// client's packet is rejected due to being unicast communication.
TEST_F(SARRTest, pkt6ReceiveDropStat2) {
// Let's use one of the existing configurations and tell the client to
client.setDestAddress(asiolink::IOAddress("2001:db8::1")); // Pretend it's unicast
client.doSolicit();
- // Ok, let's check the statistics. None should be present.
+ // Ok, let's check the statistic. pkt6-receive-drop should be set to 1.
using namespace isc::stats;
StatsMgr& mgr = StatsMgr::instance();
}
// This test verifies that pkt6-receive-drop is increased properly when the
-// client's packet is rejected due to having too many
+// client's packet is rejected due to having too many client-id options
+// (exactly one is expected).
TEST_F(SARRTest, pkt6ReceiveDropStat3) {
// Let's use one of the existing configurations and tell the client to
client.useServerId(client.getClientId());
client.doSolicit();
- // Ok, let's check the statistics. None should be present.
+ // Ok, let's check the statistic. pkt6-receive-drop should be set to 1.
using namespace isc::stats;
StatsMgr& mgr = StatsMgr::instance();