feat: publish Alta Local Camera Discovery
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
const assert = require('node:assert/strict');
|
||||
const { buildCsv } = require('./static/export-utils.js');
|
||||
|
||||
const cameras = [
|
||||
{
|
||||
alta_key: 'ABH7-C62U-GC3E',
|
||||
hostname: 'avacam-abh7-c62u-gc3e.local',
|
||||
web_ui_url: 'https://avacam-abh7-c62u-gc3e.local',
|
||||
ip_address: '10.0.0.223',
|
||||
},
|
||||
{
|
||||
alta_key: 'AHG2-Z4ND-FVRN',
|
||||
hostname: 'avacam-ahg2-z4nd-fvrn.local',
|
||||
web_ui_url: 'https://avacam-ahg2-z4nd-fvrn.local',
|
||||
ip_address: '10.0.0.192',
|
||||
},
|
||||
];
|
||||
|
||||
assert.equal(require('./static/export-utils.js').buildKeyPaste, undefined);
|
||||
assert.equal(
|
||||
buildCsv(cameras),
|
||||
'Alta Key,IP Address,Hostname URL\r\n' +
|
||||
'ABH7-C62U-GC3E,10.0.0.223,https://avacam-abh7-c62u-gc3e.local\r\n' +
|
||||
'AHG2-Z4ND-FVRN,10.0.0.192,https://avacam-ahg2-z4nd-fvrn.local\r\n'
|
||||
);
|
||||
console.log('export-utils tests passed');
|
||||
Reference in New Issue
Block a user