Skip to content

Commit

Permalink
Refs #20551: Fix test. Do not depend on the XML substituting feature
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
  • Loading branch information
Mario-DL committed Mar 6, 2024
1 parent 192bc5b commit fa87ffc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
13 changes: 13 additions & 0 deletions test/blackbox/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,19 @@ if(EPROSIMA_TEST_DNS_NOT_SET_UP)
set(dns_filter "-*ServerClientEnvironmentSetUpDNS*")
endif()

if(SECURITY)
configure_file(${PROJECT_SOURCE_DIR}/test/certs/maincacert.pem
${CMAKE_CURRENT_BINARY_DIR}/maincacert.pem COPYONLY)
configure_file(${PROJECT_SOURCE_DIR}/test/certs/mainpubcert.pem
${CMAKE_CURRENT_BINARY_DIR}/mainpubcert.pem COPYONLY)
configure_file(${PROJECT_SOURCE_DIR}/test/certs/mainpubkey.pem
${CMAKE_CURRENT_BINARY_DIR}/mainpubkey.pem COPYONLY)
configure_file(${PROJECT_SOURCE_DIR}/test/certs/governance_helloworld_all_enable.smime
${CMAKE_CURRENT_BINARY_DIR}/governance_helloworld_all_enable.smime COPYONLY)
configure_file(${PROJECT_SOURCE_DIR}/test/certs/permissions_helloworld.smime
${CMAKE_CURRENT_BINARY_DIR}/permissions_helloworld.smime COPYONLY)
endif()

file(GLOB RTPS_BLACKBOXTESTS_TEST_SOURCE "common/RTPSBlackboxTests*.cpp")
set(RTPS_BLACKBOXTESTS_SOURCE ${RTPS_BLACKBOXTESTS_TEST_SOURCE}
types/HelloWorld.cxx
Expand Down
10 changes: 5 additions & 5 deletions test/blackbox/auth_handshake_props_profile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
<!-- Configure DDS:Auth:PKI-DH plugin -->
<property>
<name>dds.sec.auth.builtin.PKI-DH.identity_ca</name>
<value>file://${CERTS_PATH}/maincacert.pem</value>
<value>file://maincacert.pem</value>
</property>
<property>
<name>dds.sec.auth.builtin.PKI-DH.identity_certificate</name>
<value>file://${CERTS_PATH}/mainpubcert.pem</value>
<value>file://mainpubcert.pem</value>
</property>
<property>
<name>dds.sec.auth.builtin.PKI-DH.private_key</name>
<value>file://${CERTS_PATH}/mainpubkey.pem</value>
<value>file://mainpubkey.pem</value>
</property>
<!-- Activate DDS:Crypto:AES-GCM-GMAC plugin -->
<property>
Expand All @@ -31,11 +31,11 @@
</property>
<property>
<name>dds.sec.access.builtin.Access-Permissions.governance</name>
<value>file://${CERTS_PATH}/governance_helloworld_all_enable.smime</value>
<value>file://governance_helloworld_all_enable.smime</value>
</property>
<property>
<name>dds.sec.access.builtin.Access-Permissions.permissions</name>
<value>file://${CERTS_PATH}/permissions_helloworld.smime</value>
<value>file://permissions_helloworld.smime</value>
</property>
<property>
<name>dds.sec.auth.builtin.PKI-DH.max_handshake_requests</name>
Expand Down

0 comments on commit fa87ffc

Please sign in to comment.