From 47efcc2bdcd811a26051f7cc53ae031b0bea6b95 Mon Sep 17 00:00:00 2001 From: Tasos Papaioannou Date: Thu, 12 Sep 2024 14:23:52 -0400 Subject: [PATCH] Debug PRT --- tests/foreman/api/test_http_proxy.py | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/tests/foreman/api/test_http_proxy.py b/tests/foreman/api/test_http_proxy.py index 95c1dbe12f1..91b7819ead7 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