Skip to content

Commit

Permalink
Refs #22280. Fix failing blackbox tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Nov 28, 2024
1 parent 3b71837 commit ba47491
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions test/blackbox/common/BlackboxTestsSecurity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_rtps_ok_same_participant)
{
PubSubWriterReader<HelloWorldPubSubType> wreader(TEST_TOPIC_NAME);

PropertyPolicy pub_property_policy, sub_property_policy,
property_policy;
PropertyPolicy property_policy;

fill_pub_auth(property_policy);
property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC");
Expand Down Expand Up @@ -1120,7 +1119,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_submessage_ok)

ASSERT_TRUE(reader.isInitialized());

fill_pub_auth(pub_property_policy);
fill_pub_auth(pub_part_property_policy);
pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC");
pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT");

Expand Down Expand Up @@ -1170,7 +1169,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_submessage_ok)

ASSERT_TRUE(reader.isInitialized());

fill_pub_auth(pub_property_policy);
fill_pub_auth(pub_part_property_policy);
pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC");
pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT");

Expand Down Expand Up @@ -1254,7 +1253,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_submessage_larg

ASSERT_TRUE(reader.isInitialized());

fill_pub_auth(pub_property_policy);
fill_pub_auth(pub_part_property_policy);
pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC");
pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT");

Expand Down Expand Up @@ -1304,7 +1303,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_submessage_large_

ASSERT_TRUE(reader.isInitialized());

fill_pub_auth(pub_property_policy);
fill_pub_auth(pub_part_property_policy);
pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC");
pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT");

Expand Down Expand Up @@ -1352,7 +1351,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_submessage_data

ASSERT_TRUE(reader.isInitialized());

fill_pub_auth(pub_property_policy);
fill_pub_auth(pub_part_property_policy);
pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC");
pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT");

Expand Down Expand Up @@ -1410,7 +1409,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_submessage_data30

ASSERT_TRUE(reader.isInitialized());

fill_pub_auth(pub_property_policy);
fill_pub_auth(pub_part_property_policy);
pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC");
pub_property_policy.properties().emplace_back("rtps.endpoint.submessage_protection_kind", "ENCRYPT");

Expand Down Expand Up @@ -1466,7 +1465,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_besteffort_payload_ok)

ASSERT_TRUE(reader.isInitialized());

fill_pub_auth(pub_property_policy);
fill_pub_auth(pub_part_property_policy);
pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC");
pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT");

Expand Down Expand Up @@ -1516,7 +1515,7 @@ TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_reliable_payload_ok)

ASSERT_TRUE(reader.isInitialized());

fill_pub_auth(pub_property_policy);
fill_pub_auth(pub_part_property_policy);
pub_part_property_policy.properties().emplace_back("dds.sec.crypto.plugin", "builtin.AES-GCM-GMAC");
pub_property_policy.properties().emplace_back("rtps.endpoint.payload_protection_kind", "ENCRYPT");

Expand Down

0 comments on commit ba47491

Please sign in to comment.