Skip to content

Commit 913bbf0

Browse files
replace docker-compose references with docker compose
1 parent eba777e commit 913bbf0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/executor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def cleanup_files(self, files):
114114
raise e
115115

116116
def _clean_docker_env(self):
117-
# Remove anything spun up by docker-compose
117+
# Remove anything spun up by docker compose
118118
containers = self.client.containers(filters={"label": "com.docker.compose.project={}".format(self.project_name)})
119119
for container in containers:
120120
self.client.remove_container(container["Id"], v=True, force=True)
@@ -237,8 +237,8 @@ def compose_up(self, defaults_url=None, apps_url=None):
237237
print(command)
238238
out, err, rc = self._run_command(command, defaults_url, apps_url)
239239
print("COMPLETED DOCKER COMPOSE")
240-
print(f"check RC for docker compose: {rc}; check err for docker-compose: {err}")
241-
print("check output for docker-compose")
240+
print(f"check RC for docker compose: {rc}; check err for docker compose: {err}")
241+
print("check output for docker compose")
242242
print(out)
243243
return container_count, rc
244244

tests/test_distributed_splunk_image.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def setup_method(self, method):
4949
def teardown_method(self, method):
5050
if self.compose_file_name and self.project_name:
5151
if self.DIR:
52-
command = "docker-compose -p {} -f {} down --volumes --remove-orphans".format(self.project_name, os.path.join(self.DIR, self.compose_file_name))
52+
command = "docker compose -p {} -f {} down --volumes --remove-orphans".format(self.project_name, os.path.join(self.DIR, self.compose_file_name))
5353
else:
54-
command = "docker-compose -p {} -f test_scenarios/{} down --volumes --remove-orphans".format(self.project_name, self.compose_file_name)
54+
command = "docker compose -p {} -f test_scenarios/{} down --volumes --remove-orphans".format(self.project_name, self.compose_file_name)
5555
out, err, rc = self._run_command(command)
5656
self._clean_docker_env()
5757
if self.DIR:
@@ -1104,4 +1104,4 @@ def test_compose_3idx1cm_splunktcp_ssl(self):
11041104
os.path.join(self.DEFAULTS_DIR, "cert.pem"),
11051105
os.path.join(self.DEFAULTS_DIR, "{}.yml".format(self.project_name))
11061106
]
1107-
self.cleanup_files(files)
1107+
self.cleanup_files(files)

tests/test_single_splunk_image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def setup_method(self, method):
4848
def teardown_method(self, method):
4949
if self.compose_file_name and self.project_name:
5050
if self.DIR:
51-
command = "docker-compose -p {} -f {} down --volumes --remove-orphans".format(self.project_name, os.path.join(self.DIR, self.compose_file_name))
51+
command = "docker compose -p {} -f {} down --volumes --remove-orphans".format(self.project_name, os.path.join(self.DIR, self.compose_file_name))
5252
else:
53-
command = "docker-compose -p {} -f test_scenarios/{} down --volumes --remove-orphans".format(self.project_name, self.compose_file_name)
53+
command = "docker compose -p {} -f test_scenarios/{} down --volumes --remove-orphans".format(self.project_name, self.compose_file_name)
5454
out, err, rc = self._run_command(command)
5555
self._clean_docker_env()
5656
if self.DIR:

0 commit comments

Comments
 (0)