13 lines
769 B
JavaScript
13 lines
769 B
JavaScript
'use strict';
|
|
const assert = require('node:assert/strict');
|
|
const fs = require('node:fs');
|
|
const path = require('node:path');
|
|
const value = JSON.parse(fs.readFileSync(path.join(__dirname, 'team-node-event-broadcast-map.json'), 'utf8'));
|
|
assert.equal(value.state, 'ACTIVE_SIGNED_EVENT_BROADCAST_NO_POLLING');
|
|
assert.equal(value.transport, 'ONE_SHOT_RESTRICTED_SSH_FORCED_COMMAND');
|
|
assert.equal(value.network_idle_rule, 'NO_EVENT_MEANS_NO_BACKGROUND_REQUEST');
|
|
assert.ok(value.forbidden.includes('PERIODIC_PUBLIC_RELEASE_POLL'));
|
|
assert.ok(value.forbidden.includes('PERSISTENT_TEAM_REVERSE_TUNNEL'));
|
|
assert.equal(value.latest_receipts.world_release.delivered_nodes, 3);
|
|
assert.equal(value.private_content_included, false);
|
|
console.log('team node event broadcast: ok');
|