mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Test against a single transport (#35903)
Network integration tests can use tags to run only a specific transport
This commit is contained in:
parent
3693e560dc
commit
c3523cdd60
1 changed files with 10 additions and 1 deletions
|
@ -219,6 +219,15 @@ To run integration tests for a specific module::
|
|||
|
||||
ansible-test network-integration --inventory /path/to/ansible/test/integration/inventory.networking vyos_vlan
|
||||
|
||||
To run integration tests for a specific transport::
|
||||
|
||||
# Only run nxapi test
|
||||
ansible-test network-integration --inventory /path/to/ansible/test/integration/inventory.networking --tags="nxapi" nxos_.*
|
||||
|
||||
# Skip any cli tests
|
||||
ansible-test network-integration --inventory /path/to/ansible/test/integration/inventory.networking --skip-tags="cli" nxos_.*
|
||||
|
||||
See `test/integration/targets/nxos_bgp/tasks/main.yaml <https://github.com/ansible/ansible/blob/devel/test/integration/targets/nxos_bgp/tasks/main.yaml>`_ for how this is implemented in the tests.
|
||||
|
||||
For more options::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue