def _check_visible_ip(pod, specs, connection_list):
if pod.public_ip:
LOG.debug(
'{}Check if pod IP is visible as public IP for pod with '
'public IP\nExpected: {} Actual: {}{}'.format(
Fore.CYAN, pod.public_ip, connection_list[-1],
Style.RESET_ALL))
utils.assert_eq(connection_list[-1], pod.public_ip)
else:
LOG.debug(
'{}Check if pod IP is visible as node IP for pod without '
'public IP\nExpected: {} Actual: {}{}'.format(
Fore.CYAN, specs[pod.name]['hostIP'], connection_list[-1],
Style.RESET_ALL))
utils.assert_eq(connection_list[-1], specs[pod.name]['hostIP'])
test_network_isolation.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录