From 239936e87183a10a33ce593709eb16c92a04af98 Mon Sep 17 00:00:00 2001 From: s Date: Thu, 13 Nov 2025 21:53:58 -0500 Subject: refactor: improve file display formatting and metadata handling --- internal/formatter/buckets_test.go | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'internal/formatter/buckets_test.go') 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", }, }, }, -- cgit v1.2.3