Skip to content

Commit cf6d8aa

Browse files
security-context -> enclave
Signed-off-by: Mikael Arguedas <[email protected]>
1 parent 047f7fa commit cf6d8aa

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

test_security/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ if(BUILD_TESTING)
344344
find_program(PROGRAM ros2)
345345

346346
set(node_names_list "/publisher;/subscriber;/publisher_missing_key;/publisher_invalid_cert")
347-
set(generate_artifacts_command ${PROGRAM} security generate_artifacts -k ${KEYSTORE_DIRECTORY_NATIVE_PATH} -c ${node_names_list})
347+
set(generate_artifacts_command ${PROGRAM} security generate_artifacts -k ${KEYSTORE_DIRECTORY_NATIVE_PATH} -e ${node_names_list})
348348
execute_process(
349349
COMMAND ${generate_artifacts_command}
350350
RESULT_VARIABLE GENERATE_ARTIFACTS_RESULT
@@ -355,11 +355,11 @@ if(BUILD_TESTING)
355355
endif()
356356

357357
# deleting key of /publisher_missing_key
358-
file(REMOVE "${KEYSTORE_DIRECTORY}/contexts/publisher_missing_key/key.pem")
358+
file(REMOVE "${KEYSTORE_DIRECTORY}/enclaves/publisher_missing_key/key.pem")
359359

360360
# copy invalid certificate from source tree
361361
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/test/test_security_files/publisher_invalid_cert/cert.pem
362-
DESTINATION ${KEYSTORE_DIRECTORY}/contexts/publisher_invalid_cert/
362+
DESTINATION ${KEYSTORE_DIRECTORY}/enclaves/publisher_invalid_cert/
363363
)
364364
call_for_each_rmw_implementation(targets)
365365
endif()

test_security/test/test_invalid_secure_node_creation_c.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ TEST_P(TestSecureNodes, test_invalid_keystore) {
104104
ret = rcl_init_options_init(&init_options, rcl_get_default_allocator());
105105
ASSERT_EQ(RCL_RET_OK, ret) << rcl_get_error_string().str;
106106
context = rcl_get_zero_initialized_context();
107-
const char * argv[] = {"--ros-args", "--security-context", test_config.context_name};
107+
const char * argv[] = {"--ros-args", "--enclave", test_config.context_name};
108108
ret = rcl_init(sizeof(argv) / sizeof(char *), argv, &init_options, &context);
109109
if (test_config.should_fail_context_creation) {
110110
ASSERT_EQ(RCL_RET_ERROR, ret);

test_security/test/test_secure_publisher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ int main(int argc, char ** argv)
6565
"pass a message type\n");
6666
return 1;
6767
}
68-
const char * args[] = {"--ros-args", "--security-context", "/publisher"};
68+
const char * args[] = {"--ros-args", "--enclave", "/publisher"};
6969
rclcpp::init(sizeof(args) / sizeof(char *), args);
7070
std::string message = argv[1];
7171
std::string namespace_ = argv[2];

test_security/test/test_secure_subscriber.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ int main(int argc, char ** argv)
122122
bool should_timeout =
123123
((0 == strcmp(argv[2], "false")) || (0 == strcmp(argv[2], "0"))) ? false : true;
124124

125-
const char * args[] = {"--ros-args", "--security-context", "/subscriber"};
125+
const char * args[] = {"--ros-args", "--enclave", "/subscriber"};
126126
rclcpp::init(sizeof(args) / sizeof(char *), args);
127127
std::shared_ptr<rclcpp::Node> node = nullptr;
128128
try {

0 commit comments

Comments
 (0)