@@ -490,14 +490,6 @@ def uf_docker(docker_services, tmp_path_factory, worker_id, request):
490
490
"""
491
491
Provides IP of the uf server and management port based on pytest-args(splunk_type)
492
492
"""
493
- LOGGER .info ("Starting docker_service=uf" )
494
- os .environ ["CURRENT_DIR" ] = os .getcwd ()
495
- if worker_id :
496
- # get the temp directory shared by all workers
497
- root_tmp_dir = tmp_path_factory .getbasetemp ().parent
498
- fn = root_tmp_dir / "pytest_docker"
499
- with FileLock (str (fn ) + ".lock" ):
500
- docker_services .start ("uf" )
501
493
uf_info = {
502
494
"uf_host" : docker_services .docker_ip ,
503
495
"uf_port" : docker_services .port_for ("uf" , 8089 ),
@@ -540,6 +532,7 @@ def splunk_docker(
540
532
"""
541
533
# configuration of environment variables needed by docker-compose file
542
534
os .environ ["SPLUNK_APP_PACKAGE" ] = request .config .getoption ("splunk_app" )
535
+ os .environ ["CURRENT_DIR" ] = os .getcwd ()
543
536
try :
544
537
config = configparser .ConfigParser ()
545
538
config .read (
@@ -558,14 +551,14 @@ def splunk_docker(
558
551
os .environ ["SPLUNK_VERSION" ] = request .config .getoption ("splunk_version" )
559
552
os .environ ["SC4S_VERSION" ] = request .config .getoption ("sc4s_version" )
560
553
561
- LOGGER .info ("Starting docker_service=splunk " )
554
+ LOGGER .info ("Starting docker services " )
562
555
if worker_id :
563
556
# get the temp directory shared by all workers
564
557
root_tmp_dir = tmp_path_factory .getbasetemp ().parent
565
558
fn = root_tmp_dir / "pytest_docker"
566
559
# if you encounter docker-compose not found modify shell path in your IDE to use /bin/bash
567
560
with FileLock (str (fn ) + ".lock" ):
568
- docker_services .start ("splunk" )
561
+ docker_services .start ()
569
562
570
563
splunk_info = {
571
564
"host" : docker_services .docker_ip ,
@@ -648,13 +641,6 @@ def sc4s_docker(docker_services, tmp_path_factory, worker_id):
648
641
"""
649
642
Provides IP of the sc4s server and related ports based on pytest-args(splunk_type)
650
643
"""
651
- if worker_id :
652
- # get the temp directory shared by all workers
653
- root_tmp_dir = tmp_path_factory .getbasetemp ().parent
654
- fn = root_tmp_dir / "pytest_docker"
655
- with FileLock (str (fn ) + ".lock" ):
656
- docker_services .start ("sc4s" )
657
-
658
644
ports = {514 : docker_services .port_for ("sc4s" , 514 )}
659
645
for x in range (5000 , 5007 ):
660
646
ports .update ({x : docker_services .port_for ("sc4s" , x )})
0 commit comments