diff --git a/tests/foreman/api/test_http_proxy.py b/tests/foreman/api/test_http_proxy.py index 41f35130d19..1958720cae0 100644 --- a/tests/foreman/api/test_http_proxy.py +++ b/tests/foreman/api/test_http_proxy.py @@ -173,10 +173,10 @@ def test_positive_install_content_with_http_proxy(rhel_contenthost, my_param): :parametrized: yes """ - time.sleep(30) - # logger.info("tpapaioa rhel_contenthost._cont_inst: ", rhel_contenthost._cont_inst) - # logger.info("tpapaioa rhel_contenthost._prov_inst: ", rhel_contenthost._prov_inst) - # logger.info("tpapaioa rhel_contenthost._prov_inst.runtime: ", rhel_contenthost._prov_inst.runtime) + # time.sleep(30) + # # rhel_content_host._cont_inst + # # rhel_content_host._prov_inst + # # rhel_contenthost._prov_inst.runtime logger.info( f"tpapaioa id(rhel_contenthost._prov_inst.runtime): {id(rhel_contenthost._prov_inst.runtime)}" ) @@ -186,24 +186,30 @@ def test_positive_install_content_with_http_proxy(rhel_contenthost, my_param): container for container in containers if container.name == rhel_contenthost.name ] - # logger.info("tpapaioa my_containers: ", my_containers) - if my_containers: - # my_container = my_containers.pop() logger.info("tpapaioa my_container exists") - # logger.info(f"tpapaioa my_container id: {id(my_container)}") else: logger.info("tpapaioa my_container does not exist") - # logger.info("tpapaioa my_container logs: {}".format(str([log for log in my_container.logs()]))) - # logger.info("tpapaioa my_container.top: {}".format(my_container.top())) - # logger.info(f"tpapaioa id(my_container): {id(my_container)}") + # container_logs = "\n".join(my_container.logs()) + # container_top = my_container.top() + # del rhel_contenthost._session + + time.sleep(30) + result = rhel_contenthost.execute('ls -la') + + time.sleep(30) + result = rhel_contenthost.execute('ls -la') + + time.sleep(30) + result = rhel_contenthost.execute('ls -la') - # breakpoint() - del rhel_contenthost._session + time.sleep(30) result = rhel_contenthost.execute('ls -la') time.sleep(30) + result = rhel_contenthost.execute('ls -la') + assert result.status == 0