diff --git a/tests/foreman/api/test_http_proxy.py b/tests/foreman/api/test_http_proxy.py index 95c1dbe12f..91b7819ead 100644 --- a/tests/foreman/api/test_http_proxy.py +++ b/tests/foreman/api/test_http_proxy.py @@ -173,14 +173,7 @@ def test_positive_install_content_with_http_proxy(rhel_contenthost): :parametrized: yes """ name = rhel_contenthost.name - runtime = rhel_contenthost._prov_inst.runtime - client = runtime.client - - import podman - - logger.info(f"tpapaioa podman version: {podman.__version__}") - logger.info(f"tpapaioa broker info: {name=}\n{runtime=}\n{client=}") - logger.info(f"tpapaioa podman server info: {client.version()}") + client = rhel_contenthost._prov_inst.runtime.client def log_container_status(container_name): container = client.containers.get(container_name) @@ -188,23 +181,21 @@ def log_container_status(container_name): log_container_status(name) - sleep(3000) - # This command works - # result = rhel_contenthost.execute('ls') + result = rhel_contenthost.execute('ls') # The container stops at some point - # log_container_status(name) - # sleep(5) - # log_container_status(name) + log_container_status(name) + sleep(30) + log_container_status(name) # container = client.containers.get(name) # logs = "\n".join(log.decode() for log in container.logs()) # logger.info(f"tpapaioa container {logs=}") # This command fails - # result = rhel_contenthost.execute('ls') - # assert result + result = rhel_contenthost.execute('ls') + assert result @pytest.mark.e2e