@@ -166,8 +166,8 @@ TEST_F(TestServiceIntrospection, service_introspection_nominal)
166166
167167TEST_F (TestServiceIntrospection, service_introspection_enable_disable_events)
168168{
169- node->set_parameter (rclcpp::Parameter (" publish_service_events" , false ));
170- node->set_parameter (rclcpp::Parameter (" publish_client_events" , false ));
169+ node->set_parameter (rclcpp::Parameter (" publish_service_events" , " off " ));
170+ node->set_parameter (rclcpp::Parameter (" publish_client_events" , " off " ));
171171
172172 auto request = std::make_shared<BasicTypes::Request>();
173173 request->set__bool_value (true );
@@ -183,8 +183,8 @@ TEST_F(TestServiceIntrospection, service_introspection_enable_disable_events)
183183 EXPECT_EQ (events.size (), 0U );
184184
185185 events.clear ();
186- node->set_parameter (rclcpp::Parameter (" publish_service_events" , false ));
187- node->set_parameter (rclcpp::Parameter (" publish_client_events" , true ));
186+ node->set_parameter (rclcpp::Parameter (" publish_service_events" , " off " ));
187+ node->set_parameter (rclcpp::Parameter (" publish_client_events" , " metadata " ));
188188 future = client->async_send_request (request);
189189 ASSERT_EQ (
190190 rclcpp::FutureReturnCode::SUCCESS,
@@ -197,8 +197,8 @@ TEST_F(TestServiceIntrospection, service_introspection_enable_disable_events)
197197
198198
199199 events.clear ();
200- node->set_parameter (rclcpp::Parameter (" publish_service_events" , true ));
201- node->set_parameter (rclcpp::Parameter (" publish_client_events" , false ));
200+ node->set_parameter (rclcpp::Parameter (" publish_service_events" , " metadata " ));
201+ node->set_parameter (rclcpp::Parameter (" publish_client_events" , " off " ));
202202 future = client->async_send_request (request);
203203 ASSERT_EQ (
204204 rclcpp::FutureReturnCode::SUCCESS,
@@ -210,8 +210,8 @@ TEST_F(TestServiceIntrospection, service_introspection_enable_disable_events)
210210 EXPECT_EQ (events.size (), 2U );
211211
212212 events.clear ();
213- node->set_parameter (rclcpp::Parameter (" publish_service_events" , true ));
214- node->set_parameter (rclcpp::Parameter (" publish_client_events" , true ));
213+ node->set_parameter (rclcpp::Parameter (" publish_service_events" , " metadata " ));
214+ node->set_parameter (rclcpp::Parameter (" publish_client_events" , " metadata " ));
215215 future = client->async_send_request (request);
216216 ASSERT_EQ (
217217 rclcpp::FutureReturnCode::SUCCESS,
@@ -225,8 +225,8 @@ TEST_F(TestServiceIntrospection, service_introspection_enable_disable_events)
225225
226226TEST_F (TestServiceIntrospection, service_introspection_enable_disable_event_content)
227227{
228- node->set_parameter (rclcpp::Parameter (" publish_service_content " , false ));
229- node->set_parameter (rclcpp::Parameter (" publish_client_content " , false ));
228+ node->set_parameter (rclcpp::Parameter (" publish_service_events " , " metadata " ));
229+ node->set_parameter (rclcpp::Parameter (" publish_client_events " , " metadata " ));
230230
231231 auto request = std::make_shared<BasicTypes::Request>();
232232 request->set__bool_value (true );
@@ -247,8 +247,8 @@ TEST_F(TestServiceIntrospection, service_introspection_enable_disable_event_cont
247247
248248
249249 events.clear ();
250- node->set_parameter (rclcpp::Parameter (" publish_service_content " , false ));
251- node->set_parameter (rclcpp::Parameter (" publish_client_content " , true ));
250+ node->set_parameter (rclcpp::Parameter (" publish_service_events " , " metadata " ));
251+ node->set_parameter (rclcpp::Parameter (" publish_client_events " , " contents " ));
252252 future = client->async_send_request (request);
253253 ASSERT_EQ (
254254 rclcpp::FutureReturnCode::SUCCESS,
@@ -276,8 +276,8 @@ TEST_F(TestServiceIntrospection, service_introspection_enable_disable_event_cont
276276 }
277277
278278 events.clear ();
279- node->set_parameter (rclcpp::Parameter (" publish_service_content " , true ));
280- node->set_parameter (rclcpp::Parameter (" publish_client_content " , false ));
279+ node->set_parameter (rclcpp::Parameter (" publish_service_events " , " contents " ));
280+ node->set_parameter (rclcpp::Parameter (" publish_client_events " , " metadata " ));
281281 future = client->async_send_request (request);
282282 ASSERT_EQ (
283283 rclcpp::FutureReturnCode::SUCCESS,
@@ -305,8 +305,8 @@ TEST_F(TestServiceIntrospection, service_introspection_enable_disable_event_cont
305305 }
306306
307307 events.clear ();
308- node->set_parameter (rclcpp::Parameter (" publish_service_content " , true ));
309- node->set_parameter (rclcpp::Parameter (" publish_client_content " , true ));
308+ node->set_parameter (rclcpp::Parameter (" publish_service_events " , " contents " ));
309+ node->set_parameter (rclcpp::Parameter (" publish_client_events " , " contents " ));
310310 future = client->async_send_request (request);
311311 ASSERT_EQ (
312312 rclcpp::FutureReturnCode::SUCCESS,
0 commit comments