paloalto Module¶
Running tests¶
Set up a new virtual environment, then install the module in it. The first line assumes you have
virtualenvwrapperinstalled. If you don’t, you can replace it withpython3 -m venv .env && source .env/bin/activate.
mkvirtualenv inmanta-test -p python3 -a .
pip install -e . -c requirements.txt -r requirements.dev.txt
Run tests
pytest tests
TODO¶
add commit support
remove panos_lib test or make it less slow
Open questions¶
For when to commit, I see 3 designs:
policy install like (one big commit resource that pushes everything)
yang like (pack resources into super resources and commit that)
per-resource (won’t fly at 30s per commit)
For what to commit:
commit everything
commit for your own user
construct a fine grained commit (will take a lot of effort and will probably not work when doing the policy install like)
Known issues¶
there is no way to move a devicegroup back into the Shared group that we know of. see also