Skip to content

Commit

Permalink
Debug PRT
Browse files Browse the repository at this point in the history
  • Loading branch information
tpapaioa committed Sep 12, 2024
1 parent f2a5d18 commit c0f1c2b
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions tests/foreman/api/test_http_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}"
)
Expand All @@ -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


Expand Down

0 comments on commit c0f1c2b

Please sign in to comment.