summaryrefslogtreecommitdiffstats
path: root/internal/formatter/buckets_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/formatter/buckets_test.go')
-rw-r--r--internal/formatter/buckets_test.go30
1 files changed, 22 insertions, 8 deletions
diff --git a/internal/formatter/buckets_test.go b/internal/formatter/buckets_test.go
index eabddf0..98c2397 100644
--- a/internal/formatter/buckets_test.go
+++ b/internal/formatter/buckets_test.go
@@ -130,21 +130,35 @@ func TestFormatBucketFilesResults(t *testing.T) {
"files": []any{
map[string]any{
"bucket": "test-bucket.s3.amazonaws.com",
+ "bucketId": float64(123),
+ "filename": "report.pdf",
+ "fullPath": "documents/report.pdf",
"file": "documents/report.pdf",
"url": "https://test-bucket.s3.amazonaws.com/documents/report.pdf",
"size": float64(1024000),
- "lastModified": "2024-01-01T00:00:00Z",
+ "lastModified": float64(1704067200),
+ "type": "aws",
+ "id": "12345",
},
map[string]any{
- "bucket": "test-bucket.s3.amazonaws.com",
- "file": "images/logo.png",
- "url": "https://test-bucket.s3.amazonaws.com/images/logo.png",
- "size": float64(50000),
+ "bucket": "test-bucket.s3.amazonaws.com",
+ "bucketId": float64(123),
+ "filename": "logo.png",
+ "fullPath": "images/logo.png",
+ "file": "images/logo.png",
+ "url": "https://test-bucket.s3.amazonaws.com/images/logo.png",
+ "size": float64(50000),
+ "lastModified": float64(1577836800),
+ "type": "aws",
},
map[string]any{
- "bucket": "another-bucket.s3.amazonaws.com",
- "file": "data.json",
- "url": "https://another-bucket.s3.amazonaws.com/data.json",
+ "bucket": "storage.blob.core.windows.net",
+ "bucketId": float64(456),
+ "filename": "data.json",
+ "file": "data.json",
+ "url": "https://storage.blob.core.windows.net/container/data.json",
+ "type": "azure",
+ "container": "container",
},
},
},