Skip to content
michsmit99 edited this page Jul 30, 2014 · 9 revisions

Toolkit Unit Tests

The ACI Toolkit has a unit test suite that strives for a minimum of 100% code coverage. The test suite is contained within the acitoolkit_test.py file. Within the test suite, many of the tests are considered live tests. Live tests are those that actually communicate with an APIC and push configuration to/from the APIC. These tests can be skipped by setting the LIVE_TEST variable at the top of the file to False. The test suite covers the acitoolkit.py and acibaseobject.py files.

Toolkit CLI Application Unit Tests

The CLI application does not have formal unit tests in the same manner as the actual toolkit. It is tested separately using the command line option -t followed by a filename that contains a list of commands to be executed by the CLI. A sample file is included in the toolkit that was used during development to get as much CLI test coverage as possible.

Clone this wiki locally