@@ -55,7 +55,7 @@ namespace test
5555 // Install and start the bundle which has the service
5656 auto testBundle = ::test::InstallAndStartBundle (ctx, " TestBundleDSCA02" );
5757 ASSERT_TRUE (testBundle);
58- const std::string componentName { " sample::ServiceComponentCA02" };
58+ std::string const componentName { " sample::ServiceComponentCA02" };
5959
6060 // Confirm configuration object is available and service is resolved.
6161 scr::dto::ComponentDescriptionDTO compDescDTO;
@@ -124,7 +124,7 @@ namespace test
124124 {
125125 cppmicroservices::BundleContext ctx = framework.GetBundleContext ();
126126
127- const std::string svcComponentName { " sample::ServiceComponentCA02" };
127+ std::string const svcComponentName { " sample::ServiceComponentCA02" };
128128
129129 // Get a service reference to ConfigAdmin to create the configuration object.
130130 auto configAdminService = GetInstance<cppmicroservices::service::cm::ConfigurationAdmin>();
@@ -173,7 +173,7 @@ namespace test
173173 */
174174 TEST_F (tServiceComponent, testConfigObjectInManifestResolvesService)
175175 {
176- const std::string configObject = " mw.dependency" ;
176+ std::string const configObject = " mw.dependency" ;
177177
178178 // Install and start the bundle containing the configuration object and the
179179 // service which is dependent on the configuration object.
@@ -236,7 +236,7 @@ namespace test
236236
237237 // Confirm that the properties match the properties provided in the
238238 // manifest.json file.
239- const std::string bar { " bar" };
239+ std::string const bar { " bar" };
240240 auto serviceProps = service->GetProperties ();
241241 auto foo = serviceProps.find (" foo" );
242242 ASSERT_TRUE (foo != serviceProps.end ()) << " foo not found in constructed instance" ;
@@ -283,7 +283,8 @@ namespace test
283283 auto fut1 = configuration1->Update (props1);
284284 fut1.wait ();
285285 auto service0 = GetInstance<test::CAInterface>();
286- ASSERT_TRUE (service0) << " Factory instance should be created when a '~' configuration is added" ;
286+ ASSERT_TRUE (service0)
287+ << " Factory instance should be created when a '~' configuration is added" ;
287288 ASSERT_TRUE (service0->GetProperties ().find (" uniqueKey" )->second == 6 );
288289
289290 testBundle.Stop ();
@@ -307,7 +308,7 @@ namespace test
307308 // starting the bundle which defines the service.
308309 auto configuration = configAdminService->GetConfiguration (configObjectName);
309310 cppmicroservices::AnyMap props (cppmicroservices::AnyMap::UNORDERED_MAP_CASEINSENSITIVE_KEYS );
310- const std::string fooProp { " notbar" };
311+ std::string const fooProp { " notbar" };
311312 props[" foo" ] = fooProp;
312313 configuration->UpdateIfDifferent (props);
313314
@@ -383,7 +384,7 @@ namespace test
383384
384385 // Update property
385386 cppmicroservices::AnyMap props (cppmicroservices::AnyMap::UNORDERED_MAP_CASEINSENSITIVE_KEYS );
386- const std::string instanceId { " instance1" };
387+ std::string const instanceId { " instance1" };
387388 props[" uniqueProp" ] = instanceId;
388389 auto fut = configObject->Update (props);
389390 fut.get ();
@@ -437,7 +438,7 @@ namespace test
437438 EXPECT_EQ (compConfigs.at (0 ).state , scr::dto::ComponentState::ACTIVE ) << " Component state should be ACTIVE" ;
438439
439440 // Update property
440- const std::string instanceId { " instance1" };
441+ std::string const instanceId { " instance1" };
441442 props[" uniqueProp" ] = instanceId;
442443 fut = configObject->Update (props);
443444 fut.get ();
@@ -484,9 +485,9 @@ namespace test
484485 // Verify that all changes to the configuration objects on which the component is dependent
485486 // result in a deactivation and reactivation of the component
486487 std::shared_ptr<cppmicroservices::service::cm::Configuration> configuration;
487- const std::string uniqueProp[3 ] = { " uniqueProp1" , " uniqueProp2" , " uniqueProp3" };
488+ std::string const uniqueProp[3 ] = { " uniqueProp1" , " uniqueProp2" , " uniqueProp3" };
488489 cppmicroservices::AnyMap props (cppmicroservices::AnyMap::UNORDERED_MAP_CASEINSENSITIVE_KEYS );
489- const std::string instance[3 ] = { " instance1" , " instance2" , " instance3" };
490+ std::string const instance[3 ] = { " instance1" , " instance2" , " instance3" };
490491
491492 int i = 0 ;
492493 while (i < 3 )
@@ -551,7 +552,7 @@ namespace test
551552 auto configInstance = configuration->GetPid ();
552553
553554 cppmicroservices::AnyMap props (cppmicroservices::AnyMap::UNORDERED_MAP_CASEINSENSITIVE_KEYS );
554- const std::string instanceId { " instance1" };
555+ std::string const instanceId { " instance1" };
555556 props[" uniqueProp" ] = instanceId;
556557 auto fut = configuration->Update (props);
557558 fut.get ();
@@ -573,7 +574,7 @@ namespace test
573574 EXPECT_EQ (uniqueProp->second , instanceId);
574575
575576 // Update property
576- const std::string instanceId2 { " instance2" };
577+ std::string const instanceId2 { " instance2" };
577578 props[" uniqueProp" ] = instanceId2;
578579 fut = configuration->Update (props);
579580 fut.get ();
@@ -650,7 +651,7 @@ namespace test
650651 auto configInstance = configuration->GetPid ();
651652
652653 cppmicroservices::AnyMap props (cppmicroservices::AnyMap::UNORDERED_MAP_CASEINSENSITIVE_KEYS );
653- const std::string newProp { " newProperty" };
654+ std::string const newProp { " newProperty" };
654655 props[" uniqueProp" ] = newProp;
655656 auto fut = configuration->Update (props);
656657 fut.get ();
@@ -704,7 +705,7 @@ namespace test
704705 auto configInstance = configuration->GetPid ();
705706
706707 cppmicroservices::AnyMap props (cppmicroservices::AnyMap::UNORDERED_MAP_CASEINSENSITIVE_KEYS );
707- const std::string initialProp { " initialProp" };
708+ std::string const initialProp { " initialProp" };
708709 props[" uniqueProp" ] = initialProp;
709710 auto fut = configuration->Update (props);
710711 fut.get ();
@@ -746,7 +747,7 @@ namespace test
746747 // this is a delayed component(immediate = false). The update call
747748 // should result in the component begin deactivated. Verify that the
748749 // state is SATISFIED.
749- const std::string updatedProp { " updatedProp" };
750+ std::string const updatedProp { " updatedProp" };
750751 props[" uniqueProp" ] = updatedProp;
751752 fut = configuration->Update (props);
752753 fut.get ();
0 commit comments