New features:
mrack now generates output with modules for:
- ansible-inventory
- pytest-multihost
added a static provider to create resources from static VMs
added list action to print resources from DB
added ssh action to connect quickly to VMs in DB
Bug fixing and testing:
added tests for static provider
added various minor fixes
Signed-off-by: Tibor Dudlák <tdudlakredhat.com> ([`43d7c6c`](https://github.com/neoave/mrack/commit/43d7c6c139366349e9ebb804f9808300c54ebcec))
* Fix style after black update
Latest version of black was complaing about these changes.
Previous version: black-19.10b0
Latest version: black-20.8b1
Signed-off-by: Armando Neto <abiagionredhat.com> ([`b850639`](https://github.com/neoave/mrack/commit/b8506391e12f3be1c7027109d9b27c17888a504e))
* Set defaults for pytest and remove xunit1 format warning message
So that we can more easily inspect in azure if new tests were run
properly and also be able to see the results.
Mainly it removes warning message about deprecating xunit1 format.
Signed-off-by: Petr Vobornik <pvoborniredhat.com> ([`fc28e66`](https://github.com/neoave/mrack/commit/fc28e664a9d94a568df70312ed693877e56d8aa9))
* Add test scenario for actions with static provider
Testing up, output, list and destroy actions using the Static Provider.
Signed-off-by: Armando Neto <abiagionredhat.com> ([`50dcc77`](https://github.com/neoave/mrack/commit/50dcc779c26e0e14bfc6069420b9f6bed36ccfb0))
* Handle output action error
Running `mrack output` with an empty database breaks
`python-pytest-multihost` config file. (E.g: Not running `mrack
up` before trying that.)
Signed-off-by: Armando Neto <abiagionredhat.com> ([`3b71d86`](https://github.com/neoave/mrack/commit/3b71d86c70b339eac4246c7c8b0a452109c5fd2f))
* Print message only
Signed-off-by: Armando Neto <abiagionredhat.com> ([`089c80c`](https://github.com/neoave/mrack/commit/089c80c1841191a9a0bed63c545c671006963e5e))
* Docs: do not use source/_static directory
Signed-off-by: Tibor Dudlák <tdudlakredhat.com> ([`be8d5fa`](https://github.com/neoave/mrack/commit/be8d5fadf03df53d61f55321314dab45219b867b))
* Load the requirements.txt in setup.py
Load the content of requirements.txt file
instead of having static list in setup.py
Update the test-requirements.txt to contain
all necessary dependencies to test.
Add requirements.txt to tox.ini
Signed-off-by: Tibor Dudlák <tdudlakredhat.com> ([`a20e288`](https://github.com/neoave/mrack/commit/a20e288c819318a884888d9b5a780ce5c34cafc1))
* Normalize all imports
Signed-off-by: Armando Neto <abiagionredhat.com> ([`e00a77a`](https://github.com/neoave/mrack/commit/e00a77acb25cc3254129141a66df23b006e638b5))
* Enable isort linting
Helper tool to sort the imports for us.
Signed-off-by: Armando Neto <abiagionredhat.com> ([`e56d267`](https://github.com/neoave/mrack/commit/e56d2678c6e3eafa34d93427f5b42efe81d86059))
* Rename aiohabit project to mrack
Signed-off-by: Tibor Dudlák <tdudlakredhat.com> ([`4b4233f`](https://github.com/neoave/mrack/commit/4b4233f9a6b0e141e744b0ac2ec39d3f557b021d))
* Replace print statements with logging
Adding logging calls to replace print statements.
Rename exception objects to three letters to not mess with pdb.
Signed-off-by: Armando Neto <abiagionredhat.com> ([`8ec7bf9`](https://github.com/neoave/mrack/commit/8ec7bf98391adb4bc02de381268577f857bbdd0a))
* Add basic logging mechanism
Configure a logger to be used in the whole application.
If user pass `--debug` to aiohabit log level is changed to DEBUG.
Signed-off-by: Armando Neto <abiagionredhat.com> ([`c41f93b`](https://github.com/neoave/mrack/commit/c41f93b2e3dc736563dce2bce59c1bcb60a9c58a))
* AWS host: Return the right status
Signed-off-by: Armando Neto <abiagionredhat.com> ([`6c02c34`](https://github.com/neoave/mrack/commit/6c02c347074ff9461a5e332da6d27bb81ca7a605))
* ansible-inventory: fix bug when python interpreter not defined for os
E.g. so that the default python interpreter will be used.
Signed-off-by: Petr Vobornik <pvoborniredhat.com> ([`dfddfaf`](https://github.com/neoave/mrack/commit/dfddfafa714e04d21d1134d16a3a51d5d43a4be5))
* Static provider
Static provider serves for mixing already provisioned hosts (pets)
with dynamically provisioned hosts. Alternatively all hosts can
be static. This can be useful for generating the outputs and using
other features.
Almost all operations are fake given that the hosts exist and cannot
be deleted by static provider. The most important parts is to provide
a name and ip.
Signed-off-by: Petr Vobornik <pvoborniredhat.com> ([`f3bc80b`](https://github.com/neoave/mrack/commit/f3bc80b009be50108109d4f126013aaa40463814))
* Add SSH action
To make it very easy to SSH into a host based on value in various
configuration objects.
It is usually very time-consuming to &34;cat&34; e.g. inventory, copy the
real hostname/IP, write all the SSH options including determining
if it should use SSH key and what is its location.
The interactive mode even saves time with writing the fake hostname.
Signed-off-by: Petr Vobornik <pvoborniredhat.com> ([`044de05`](https://github.com/neoave/mrack/commit/044de0569a19138c178c93d747530f50d2e735d2))
* Host: add first IP getter
To avoid copy&paste in SSH action
Signed-off-by: Petr Vobornik <pvoborniredhat.com> ([`749d666`](https://github.com/neoave/mrack/commit/749d666e0c18c1eacc2ee4a18c576fc9421191a4))
* Common methods to figure out username, password, ssh key for a host
To avoid copy&paste in ssh action.
Signed-off-by: Petr Vobornik <pvoborniredhat.com> ([`22c163f`](https://github.com/neoave/mrack/commit/22c163fd1120b6b0c42091551f79713be49bf7de))
* Add list action
To quickly show content of DB in human readable form
Signed-off-by: Petr Vobornik <pvoborniredhat.com> ([`a7a6114`](https://github.com/neoave/mrack/commit/a7a611471404e5b2a268056f54c2b0cdda43e623))
* Host: include status in print
So that it is known which hosts are still active.
Signed-off-by: Petr Vobornik <pvoborniredhat.com> ([`b993302`](https://github.com/neoave/mrack/commit/b9933021956e9436ddfd68343d201745929d528d))
* Add Ansible Inventory and pytest-multihost output modules
And enhance &34;up&34; action to use them. Add also &34;output&34; action which
calls them separately. It can be used for recreation of deleted ones
or testing.
Signed-off-by: Petr Vobornik <pvoborniredhat.com> ([`97f482e`](https://github.com/neoave/mrack/commit/97f482e2e9338c618fdec42bb2f4970057725976))
* hosts: adding missing properties
So that they can be work with in output modules.
Signed-off-by: Petr Vobornik <pvoborniredhat.com> ([`ceb5e93`](https://github.com/neoave/mrack/commit/ceb5e9389981b776cdfd9e28f558ee70415da211))