| 44 | } |
| 45 | |
| 46 | function 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 | |
| 54 | describe('protocol constants', () => { |
| 55 | it('has expected protocol name', () => { |