From: Tomek Mrugalski Date: Wed, 21 Jun 2023 10:46:14 +0000 (+0200) Subject: [#2707] D2 test for config-hash-get fixed X-Git-Tag: Kea-2.4.0~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db6ec11cc101385c13422948c0f87562f0681084;p=thirdparty%2Fkea.git [#2707] D2 test for config-hash-get fixed --- diff --git a/src/bin/d2/tests/d2_command_unittest.cc b/src/bin/d2/tests/d2_command_unittest.cc index 564b5cd4e9..5b6c479bd3 100644 --- a/src/bin/d2/tests/d2_command_unittest.cc +++ b/src/bin/d2/tests/d2_command_unittest.cc @@ -722,6 +722,10 @@ TEST_F(CtrlChannelD2Test, configHashGet) { int status; ConstElementPtr args = parseAnswer(status, rsp); EXPECT_EQ(CONTROL_RESULT_SUCCESS, status); + // the parseAnswer is trying to be smart with ignoring hash. + // But this time we really want to see the hash, so we'll retrieve + // the arguments manually. + args = rsp->get(CONTROL_ARGUMENTS); // Ok, now roughly check if the response seems legit. ASSERT_TRUE(args);