Re-enabled TestAPKHandler test and updated artifact url (#4856)
Lint / golangci-lint (push) Waiting to run
Lint / semgrep (push) Waiting to run
Scan for secrets / test (push) Waiting to run
Test / test (push) Waiting to run
Test / test-community (push) Waiting to run
Release / mark-latest (push) Canceled after 0s
Release / Release (push) Canceled after 0s
Lint / golangci-lint (push) Waiting to run
Lint / semgrep (push) Waiting to run
Scan for secrets / test (push) Waiting to run
Test / test (push) Waiting to run
Test / test-community (push) Waiting to run
Release / mark-latest (push) Canceled after 0s
Release / Release (push) Canceled after 0s
This commit is contained in:
@@ -13,7 +13,6 @@ import (
|
||||
)
|
||||
|
||||
func TestAPKHandler(t *testing.T) {
|
||||
t.Skip("[INS-421] - Skipping this test because the apk file being used in this test is unavailable")
|
||||
tests := map[string]struct {
|
||||
archiveURL string
|
||||
expectedChunks int
|
||||
@@ -21,7 +20,7 @@ func TestAPKHandler(t *testing.T) {
|
||||
matchString string
|
||||
}{
|
||||
"apk_with_3_leaked_keys": {
|
||||
archiveURL: "https://github.com/joeleonjr/leakyAPK/raw/refs/heads/main/aws_leak.apk",
|
||||
archiveURL: "https://raw.githubusercontent.com/trufflesecurity/leakyAPK/main/aws_leak.apk",
|
||||
expectedChunks: 942,
|
||||
// Note: the secret count is 4 instead of 3 b/c we're not actually running the secret detection engine,
|
||||
// we're just looking for a string match. There is one extra string match in the APK (but only 3 detected secrets).
|
||||
|
||||
Reference in New Issue
Block a user