diff --git a/tests/locust/base.py b/tests/locust/base.py new file mode 100644 index 0000000..63d5827 --- /dev/null +++ b/tests/locust/base.py @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2023 Aravinth Manivannan +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +import os + + +def test_locust_is_listening(host): + socket = host.socket(f"tcp://0.0.0.0:8089") + assert socket.is_listening + + +def test_locust_config_exists(host): + config = host.file("/etc/locust/docker-compose.yml") + assert config.exists + assert config.is_file + + +def test_docker_is_installed(host): + assert host.package("docker-compose").is_installed