pytest-testinfra icon indicating copy to clipboard operation
pytest-testinfra copied to clipboard

Socket integration with Process

Open philpep opened this issue 5 years ago • 1 comments

I'd be nice to have bidirectionnal intégration between socket and process modules.

  • which process opened this socket ?
  • which sockets open this process ?

For instance:

>>> host.socket('tcp://22').process
<process sshd (pid=17542)>
>>> host.process.get(pid=17542).sockets()
[<socket tcp://22>] # this object does not exist yet, it has to be defined

philpep avatar Sep 01 '18 09:09 philpep

@philpep do you mind if I give. this a try ?

ruimoreira avatar Sep 26 '18 16:09 ruimoreira