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 a metadata file to KubeHound dumps #247

Merged
merged 16 commits into from
Sep 10, 2024
Prev Previous commit
Next Next commit
fix unit tests
jt-dd committed Sep 6, 2024

Verified

This commit was signed with the committer’s verified signature.
commit cabe7e59fc679c21ef5c09acd2b02d2ef2adb782
9 changes: 8 additions & 1 deletion pkg/ingestor/puller/blob/blob_test.go
Original file line number Diff line number Diff line change
@@ -289,7 +289,14 @@ func TestBlobStore_Pull(t *testing.T) {
cfg: tt.fields.cfg,
region: tt.fields.region,
}
got, err := bs.Pull(ctx, tt.args.clusterName, tt.args.runID)
dumpResult, err := dump.NewDumpResult(tt.args.clusterName, tt.args.runID, true)
if err != nil {
t.Errorf("dump.NewDumpResult() error = %v, wantErr %v", err, tt.wantErr)

return
}
key := dumpResult.GetFullPath()
got, err := bs.Pull(ctx, key)
if (err != nil) != tt.wantErr {
t.Errorf("BlobStore.Pull() error = %v, wantErr %v", err, tt.wantErr)

31 changes: 15 additions & 16 deletions pkg/ingestor/puller/mocks/mock_puller.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading