diff options
| author | s <[email protected]> | 2025-11-13 21:53:58 -0500 |
|---|---|---|
| committer | s <[email protected]> | 2025-11-13 21:53:58 -0500 |
| commit | 239936e87183a10a33ce593709eb16c92a04af98 (patch) | |
| tree | 7230f6328610a8c1718b84e24dbc15735a5ab8b6 /internal/formatter/buckets_test.go | |
| parent | 344a6f6415c3c1b593677adec3b8844e0839971b (diff) | |
| download | dborg-239936e87183a10a33ce593709eb16c92a04af98.tar.gz dborg-239936e87183a10a33ce593709eb16c92a04af98.zip | |
refactor: improve file display formatting and metadata handling
Diffstat (limited to 'internal/formatter/buckets_test.go')
| -rw-r--r-- | internal/formatter/buckets_test.go | 30 |
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", }, }, }, |
