Skip to content

Commit

Permalink
add debug lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Oct 16, 2024
1 parent 9247d65 commit db7ad3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/features/steps/behave_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def call(host: str, port: int, cmdline: str, user: typing.Optional[str] = None):
subprocess.run(['cat', '/etc/nsswitch.conf'])
subprocess.run(['cat', '/etc/resolv.conf'])
subprocess.run(['cat', '/etc/hosts'])
subprocess.run(['/opt/lookup', 'hanode2'])
subprocess.run(['strace', 'getent', 'hosts', 'hanode2'])
print(f'behave.call({host}, {port})')
family, type, proto, _, sockaddr = socket.getaddrinfo(host, port, type=socket.SOCK_STREAM)[0]
Expand Down

0 comments on commit db7ad3c

Please sign in to comment.