From 309fca4526f46725a2883deb1f2dd704ab48b3b1 Mon Sep 17 00:00:00 2001 From: Ekjot <43255916+ekjotmultani@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:22:31 -0800 Subject: [PATCH] updated tests to account for changes to uploadData api --- .../amplify_core/lib/src/types/storage/list_options.dart | 3 --- .../example/integration_test/list_test.dart | 8 ++++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/amplify_core/lib/src/types/storage/list_options.dart b/packages/amplify_core/lib/src/types/storage/list_options.dart index 4a63e1ec2b..f0a1d80962 100644 --- a/packages/amplify_core/lib/src/types/storage/list_options.dart +++ b/packages/amplify_core/lib/src/types/storage/list_options.dart @@ -31,9 +31,6 @@ class StorageListOptions /// Optionally specify which bucket to retrieve final StorageBucket? bucket; - /// an optional bucket to specify which bucket to return the list for - final StorageBucket? bucket; - @override List get props => [pageSize, nextToken, pluginOptions, bucket]; diff --git a/packages/storage/amplify_storage_s3/example/integration_test/list_test.dart b/packages/storage/amplify_storage_s3/example/integration_test/list_test.dart index a1d3d651f2..15c3737225 100644 --- a/packages/storage/amplify_storage_s3/example/integration_test/list_test.dart +++ b/packages/storage/amplify_storage_s3/example/integration_test/list_test.dart @@ -39,7 +39,9 @@ void main() { await Amplify.Storage.uploadData( path: StoragePath.fromString(uploadedPaths[pathIndex]), data: StorageDataPayload.bytes('test content'.codeUnits), - bucket: mainBucket, + options: StorageUploadDataOptions( + bucket: mainBucket, + ), ).result; } for (var pathIndex = uploadedPaths.length ~/ 2; @@ -48,7 +50,9 @@ void main() { await Amplify.Storage.uploadData( path: StoragePath.fromString(uploadedPaths[pathIndex]), data: StorageDataPayload.bytes('test content'.codeUnits), - bucket: secondaryBucket, + options: StorageUploadDataOptions( + bucket: secondaryBucket, + ), ).result; } for (final path in uploadedPaths) {