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

Custom backend script

Open philpep opened this issue 7 years ago • 3 comments

I'd be nice to create custom backend just by giving a path to a script that will actually run commands.

testinfra -c script:///path/to/mybackend --hosts hostspec

This would provide a way to implement lxd/lxc, $CLOUD_SOFTWARE, $NEW_CONTAINER_SOFTWARE without modifying testinfra.

philpep avatar Dec 08 '16 09:12 philpep

@philpep I just made an lxc backend based off the docker backend. Would you be interested in a PR with the lxc backend or would you rather just have a generic backend like you describe above?

UtahDave avatar May 30 '18 17:05 UtahDave

Hm. Just found https://github.com/philpep/testinfra/pull/134

UtahDave avatar May 30 '18 17:05 UtahDave

I think I like the approach in #10 better.

dAnjou avatar Dec 02 '19 17:12 dAnjou