Skip to content

Commit

Permalink
Adds GQL Inventory tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joewesch committed Feb 11, 2025
1 parent ac99eb9 commit 2cf293b
Show file tree
Hide file tree
Showing 4 changed files with 601 additions and 0 deletions.
73 changes: 73 additions & 0 deletions tests/integration/targets/inventory/files/test_2-3_gql.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"_meta": {
"hostvars": {
"R1-Device": {
"ansible_host": "R1-Device",
"name": "R1-Device"
},
"Test Nexus Child One": {
"ansible_host": "Test Nexus Child One",
"name": "Test Nexus Child One"
},
"Test Nexus One": {
"ansible_host": "172.16.180.11",
"name": "Test Nexus One",
"primary_ip4": {
"host": "172.16.180.11"
}
},
"Test VM With Spaces": {
"ansible_host": "Test VM With Spaces",
"name": "Test VM With Spaces"
},
"TestDeviceR1": {
"ansible_host": "TestDeviceR1",
"name": "TestDeviceR1"
},
"test100": {
"ansible_host": "test100",
"name": "test100"
},
"test100-vm": {
"ansible_host": "test100-vm",
"name": "test100-vm"
},
"test101-vm": {
"ansible_host": "test101-vm",
"name": "test101-vm"
},
"test102-vm": {
"ansible_host": "test102-vm",
"name": "test102-vm"
},
"test103-vm": {
"ansible_host": "test103-vm",
"name": "test103-vm"
},
"test104-vm": {
"ansible_host": "test104-vm",
"name": "test104-vm"
}
}
},
"all": {
"children": [
"ungrouped"
]
},
"ungrouped": {
"hosts": [
"R1-Device",
"Test Nexus Child One",
"Test Nexus One",
"Test VM With Spaces",
"TestDeviceR1",
"test100",
"test100-vm",
"test101-vm",
"test102-vm",
"test103-vm",
"test104-vm"
]
}
}
4 changes: 4 additions & 0 deletions tests/integration/targets/inventory/files/test_2-3_gql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
plugin: networktocode.nautobot.gql_inventory
api_endpoint: "http://nautobot:8000"
token: "0123456789abcdef0123456789abcdef01234567"
validate_certs: False
Loading

0 comments on commit 2cf293b

Please sign in to comment.