Skip to content

Commit

Permalink
ci: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gotbadger committed Feb 22, 2024
1 parent 2817adf commit 05986ee
Show file tree
Hide file tree
Showing 34 changed files with 127 additions and 127 deletions.
2 changes: 1 addition & 1 deletion scripts/migrate_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const test_template = (case_string) => (
`const {
createNewInvoker,
getEnvironment,
} = require("../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)
describe(ruleId, () => {
Expand Down
8 changes: 4 additions & 4 deletions tests/go/gosec/blocklist/cgi/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,7 +16,7 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})


test("main2", () => {
const testCase = "main2.go"
Expand All @@ -26,5 +26,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/blocklist/des/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/blocklist/md5/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/blocklist/rc4/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/blocklist/sha1/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/crypto/bad_tls_settings/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/crypto/insecure_ignore_host_key/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/crypto/weak_crypto/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/crypto/weak_key_strength/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/crypto/weak_random/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/crypto/weak_tls_version/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/file_permissions/file_perm/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/file_permissions/mkdir/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/filesystem/decompression_bomb/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
4 changes: 2 additions & 2 deletions tests/go/gosec/filesystem/dirtraversal/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)
describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
6 changes: 3 additions & 3 deletions tests/go/gosec/filesystem/filereadtaint/test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const {
createNewInvoker,
getEnvironment,
} = require("../../../../../helper.js")
} = require("../../../../helper.js")
const { ruleId, ruleFile, testBase } = getEnvironment(__dirname)

describe(ruleId, () => {
const invoke = createNewInvoker(ruleId, ruleFile, testBase)


test("main", () => {
const testCase = "main.go"

Expand All @@ -16,5 +16,5 @@ describe(ruleId, () => {
expect(results.Missing).toEqual([])
expect(results.Extra).toEqual([])
})

})
Loading

0 comments on commit 05986ee

Please sign in to comment.