登记按需事件式团队算力池
This commit is contained in:
parent
e9adf83d2d
commit
2d7d227dad
6 changed files with 88 additions and 8 deletions
14
routing/team-compute-pool-map.test.js
Normal file
14
routing/team-compute-pool-map.test.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
'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-compute-pool-map.json'), 'utf8'));
|
||||
assert.equal(value.state, 'ACTIVE_ON_DEMAND_EVENT_CAPACITY_POOL');
|
||||
assert.deepEqual(value.nodes.map((entry) => entry.node_id), ['AW-OWN-GZ-001', 'JZ-SV-001', 'SY-GZ-001', 'YY-SV-001']);
|
||||
assert.equal(value.polling_enabled, false);
|
||||
assert.equal(value.scheduled_heartbeat_enabled, false);
|
||||
assert.equal(value.persistent_worker_tunnel_enabled, false);
|
||||
assert.equal(value.arbitrary_command_execution, false);
|
||||
assert.match(value.job_execution_state, /^NOT_IMPLEMENTED/);
|
||||
assert.equal(value.private_content_included, false);
|
||||
console.log('team compute pool: ok');
|
||||
Loading…
Reference in a new issue