Skip to content

Commit

Permalink
spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
uurien committed Oct 22, 2024
1 parent 2aa70db commit cda58b4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ describe('RASP - command_injection', () => {
function checkRaspNotExecutedAndNotThreat (agent, checkRuleEval = true) {
return agent.use((traces) => {
const span = getWebSpan(traces)

assert.notProperty(span.meta, '_dd.appsec.json')
assert.notProperty(span.meta_struct || {}, '_dd.stack')
if (checkRuleEval) {
Expand Down Expand Up @@ -88,6 +89,7 @@ describe('RASP - command_injection', () => {
axios = Axios.create({
baseURL: `http://localhost:${port}`
})

done()
})
})
Expand Down Expand Up @@ -163,6 +165,7 @@ describe('RASP - command_injection', () => {
beforeEach(() => {
app = (req, res) => {
const childProcess = require('child_process')

try {
childProcess.execSync(`ls ${req.query.dir}`)
} catch (e) {
Expand All @@ -180,7 +183,6 @@ describe('RASP - command_injection', () => {
})

describe('execFile', () => {
// requires new libddwaf with support for array
describe('with shell: true', () => {
describe('with callback', () => {
beforeEach(() => {
Expand Down Expand Up @@ -347,7 +349,6 @@ describe('RASP - command_injection', () => {
})

describe('spawn', () => {
// requires new libddwaf with support for array
describe('with shell: true', () => {
describe('with event emitter', () => {
beforeEach(() => {
Expand Down

0 comments on commit cda58b4

Please sign in to comment.