]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2707] D2 test for config-hash-get fixed
authorTomek Mrugalski <tomek@isc.org>
Wed, 21 Jun 2023 10:46:14 +0000 (12:46 +0200)
committerTomek Mrugalski <tomek@isc.org>
Thu, 22 Jun 2023 14:23:38 +0000 (16:23 +0200)
src/bin/d2/tests/d2_command_unittest.cc

index 564b5cd4e9ad1f0bb7cd6d131d5d58841ff6c93d..5b6c479bd322d8d9d7019217bb32050153394011 100644 (file)
@@ -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);