paloalto Module

Running tests

  1. Set up a new virtual environment, then install the module in it. The first line assumes you have virtualenvwrapper installed. If you don’t, you can replace it with python3 -m venv .env && source .env/bin/activate.

mkvirtualenv inmanta-test -p python3 -a .
pip install -e . -c requirements.txt -r requirements.dev.txt
  1. Run tests

pytest tests

TODO

  1. add commit support

  2. remove panos_lib test or make it less slow

Open questions

  1. 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)

  1. 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

  1. there is no way to move a devicegroup back into the Shared group that we know of. see also