File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def pytest_addoption(parser):
3636 "By default, these tests are excluded." ,
3737 )
3838 parser .addoption (
39- "--skip-restart-services " ,
39+ "--skip-service-restart " ,
4040 action = "store_true" ,
4141 default = False ,
4242 help = "Skip restarting NATS and etcd services before deployment. "
@@ -119,6 +119,6 @@ def client_type(request):
119119
120120
121121@pytest .fixture
122- def skip_restart_services (request ):
122+ def skip_service_restart (request ):
123123 """Get skip restart services flag from command line."""
124- return request .config .getoption ("--skip-restart-services " )
124+ return request .config .getoption ("--skip-service-restart " )
Original file line number Diff line number Diff line change @@ -363,7 +363,7 @@ async def test_fault_scenario(
363363 request ,
364364 image : str ,
365365 namespace : str ,
366- skip_restart_services : bool ,
366+ skip_service_restart : bool ,
367367):
368368 """
369369 Test dynamo serve deployments with injected failures
@@ -408,7 +408,7 @@ async def test_fault_scenario(
408408 namespace = namespace ,
409409 log_dir = request .node .log_dir ,
410410 deployment_spec = scenario .deployment ,
411- skip_restart_services = skip_restart_services ,
411+ skip_service_restart = skip_service_restart ,
412412 ) as deployment :
413413 with _clients (
414414 logger ,
Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ class ManagedDeployment:
492492 # TODO: this should be determined by the deployment_spec
493493 # the service containing component_type: Frontend determines what is actually the frontend service
494494 frontend_service_name : str = "Frontend"
495- skip_restart_services : bool = False
495+ skip_service_restart : bool = False
496496
497497 _custom_api : Optional [client .CustomObjectsApi ] = None
498498 _core_api : Optional [Any ] = None
@@ -992,7 +992,7 @@ async def __aenter__(self):
992992
993993 # Run delete deployment and service restarts in parallel
994994 tasks = [self ._delete_deployment ()]
995- if not self .skip_restart_services :
995+ if not self .skip_service_restart :
996996 tasks .extend ([self ._restart_etcd (), self ._restart_nats ()])
997997 await asyncio .gather (* tasks )
998998
You can’t perform that action at this time.
0 commit comments