diff --git a/packages/dd-trace/test/appsec/reporter.spec.js b/packages/dd-trace/test/appsec/reporter.spec.js index 5672bd7b30..0860b2c75a 100644 --- a/packages/dd-trace/test/appsec/reporter.spec.js +++ b/packages/dd-trace/test/appsec/reporter.spec.js @@ -325,35 +325,6 @@ describe('reporter', () => { expect(span.addTags).to.be.calledOnceWithExactly({}) }) - it('should call addTags', () => { - const schemaValue = [{ key: [8] }] - const derivatives = { - '_dd.appsec.fp.http.endpoint': 'endpoint_fingerprint', - '_dd.appsec.fp.http.header': 'header_fingerprint', - '_dd.appsec.fp.http.network': 'network_fingerprint', - '_dd.appsec.fp.session': 'session_fingerprint', - '_dd.appsec.s.req.headers': schemaValue, - '_dd.appsec.s.req.query': schemaValue, - '_dd.appsec.s.req.params': schemaValue, - '_dd.appsec.s.req.cookies': schemaValue, - '_dd.appsec.s.req.body': schemaValue, - 'custom.processor.output': schemaValue - } - - Reporter.reportDerivatives(derivatives) - - const schemaEncoded = zlib.gzipSync(JSON.stringify(schemaValue)).toString('base64') - expect(span.addTags).to.be.calledOnce - expect(span.addTags).to.be.calledWithMatch({ - '_dd.appsec.s.req.headers': schemaEncoded, - '_dd.appsec.s.req.query': schemaEncoded, - '_dd.appsec.s.req.params': schemaEncoded, - '_dd.appsec.s.req.cookies': schemaEncoded, - '_dd.appsec.s.req.body': schemaEncoded, - 'custom.processor.output': schemaEncoded - }) - }) - it('should call addTags', () => { const schemaValue = [{ key: [8] }] const derivatives = {