MCPcopy Create free account
hub / github.com/EvoMap/evolver / assertNoRawHubResponseSecrets

Function assertNoRawHubResponseSecrets

test/a2aProtocol.test.js:46–52  ·  view source on GitHub ↗
(logText, raw)

Source from the content-addressed store, hash-verified

44}
45
46function assertNoRawHubResponseSecrets(logText, raw) {
47 assert.equal(logText.includes(raw.nodeSecret), false, 'raw node_secret value must not be logged');
48 assert.equal(logText.includes(raw.bearer), false, 'raw Bearer token must not be logged');
49 assert.equal(logText.includes(raw.token), false, 'raw token field value must not be logged');
50 assert.equal(logText.includes(raw.envPath), false, 'raw .env path must not be logged');
51 assert.equal(logText.includes(raw.body), false, 'raw Hub response body must not be logged verbatim');
52}
53
54describe('protocol constants', () => {
55 it('has expected protocol name', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected