Skip to content

Commit f13359a

Browse files
committed
Add more options to test inventories. (netbox-community#141)
Added separate inventories for plurals on/off
1 parent 5093423 commit f13359a

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ script:
9898
- ansible-playbook tests/integration/regression-tests.yml -vvvv
9999
- ansible-playbook tests/integration/$VERSION/main.yml -vvvv
100100
- ansible-inventory -i tests/integration/test-inventory.yml --list
101+
- ansible-inventory -i tests/integration/test-inventory-plurals.yml --list
101102

102103
# Report code coverage
103104
- (cd /home/travis/.ansible/collections/ansible_collections/$COLLECTION_NAMESPACE/$COLLECTION_NAME && ansible-test coverage report)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
plugin: netbox.netbox.nb_inventory
2+
api_endpoint: "http://localhost:32768"
3+
token: "0123456789abcdef0123456789abcdef01234567"
4+
validate_certs: false
5+
6+
config_context: True
7+
plurals: False
8+
interfaces: True
9+
services: True
10+
11+
group_by:
12+
- sites
13+
- tenants
14+
- racks
15+
- tags
16+
- device_roles
17+
- device_types
18+
- manufacturers
19+
- platforms
20+

tests/integration/test-inventory.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
plugin: netbox.netbox.nb_inventory
22
api_endpoint: "http://localhost:32768"
33
token: "0123456789abcdef0123456789abcdef01234567"
4-
validate_certs: false
4+
validate_certs: False
5+
6+
config_context: True
7+
plurals: False
8+
interfaces: True
9+
services: True
10+
11+
group_by:
12+
- site
13+
- tenant
14+
- rack
15+
- tag
16+
- role
17+
- device_type
18+
- manufacturer
19+
- platform
20+

0 commit comments

Comments
 (0)