Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding archive entry paths #3638

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
updated test cases
  • Loading branch information
joeleonjr committed Nov 21, 2024
commit 704937af5e799b049853f0725028799b255e480a
8 changes: 4 additions & 4 deletions pkg/handlers/archive_test.go
Original file line number Diff line number Diff line change
@@ -26,15 +26,15 @@ func TestArchiveHandler(t *testing.T) {
1,
"AKIAYVP4CIPPH5TNP3SW",
false,
"(decompressed .gz file)",
"",
},
"gzip-nested": {
"https://raw.githubusercontent.com/bill-rich/bad-secrets/master/double-zip.gz",
1,
"AKIAYVP4CIPPH5TNP3SW",
false,
// This is b/c we can't get file path from nested archiver.OpenReader()
"(decompressed .gz file)/(decompressed .gz file)",
"",
},
"gzip-too-deep": {
"https://raw.githubusercontent.com/bill-rich/bad-secrets/master/six-zip.gz",
@@ -69,14 +69,14 @@ func TestArchiveHandler(t *testing.T) {
1,
"AKIAYVP4CIPPH5TNP3SW",
false,
"(decompressed .tar.gz file)/aws-canary-creds",
"aws-canary-creds",
},
"gzip-large": {
"https://raw.githubusercontent.com/bill-rich/bad-secrets/master/FifteenMB.gz",
1543,
"AKIAYVP4CIPPH5TNP3SW",
false,
"(decompressed .gz file)",
"",
},
"zip-single": {
"https://raw.githubusercontent.com/bill-rich/bad-secrets/master/aws-canary-creds.zip",
Loading
Oops, something went wrong.