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

This commit is contained in:
Muneeb Ullah Khan
2026-04-01 18:01:15 +05:00
committed by GitHub
parent 681b305b3c
commit 6bd2d14f7a
+1 -2
View File
@@ -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).