feat(release): v1.14.0 discovery and conf pages

This commit is contained in:
2026-08-01 01:21:27 -04:00
parent ecc9b62842
commit 011d4b2975
42 changed files with 3091 additions and 96 deletions
+36
View File
@@ -0,0 +1,36 @@
const proxmox = require('./plugins/discovery/proxmox');
const unifi = require('./plugins/discovery/unifi');
async function test() {
console.log("=== Running Proxmox Plugin ===");
try {
const pveData = await proxmox.discover({
url: 'https://dl380-0.internal.718it.biz:8006',
tokenId: 'root@pam!agy',
tokenSecret: '1e7c0e31-6767-4295-bcda-d7acf5df1d9a'
});
console.log(`Found ${pveData.resources.length} resources and ${pveData.edges.length} edges.`);
console.log("Sample resource:");
console.log(JSON.stringify(pveData.resources[0], null, 2));
console.log("Sample edge:");
console.log(JSON.stringify(pveData.edges[0], null, 2));
} catch (e) {
console.error("Proxmox failed:", e.message);
}
console.log("\n=== Running Unifi Plugin ===");
try {
const unifiData = await unifi.discover({
url: 'https://unifi.718it.biz',
user: 'agy',
password: 'MyPassword!23'
});
console.log(`Found ${unifiData.resources.length} resources and ${unifiData.edges.length} edges.`);
console.log("Sample resource:");
console.log(JSON.stringify(unifiData.resources.find(r => r.kind === 'network_device'), null, 2));
} catch (e) {
console.error("Unifi failed:", e.message);
}
}
test();