@@ -468,11 +468,13 @@ mocha.describe('bucketspace_fs', function() {
468
468
const dummy_object_sdk_for_iam_account = make_dummy_object_sdk_for_account ( dummy_object_sdk , account_iam_user1 ) ;
469
469
const res = await bucketspace_fs . list_buckets ( dummy_object_sdk_for_iam_account ) ;
470
470
assert . equal ( res . buckets . length , 1 ) ;
471
+ assert . equal ( res . buckets [ 0 ] . name . unwrap ( ) , test_bucket ) ;
471
472
472
473
// account_iam_user2 can list the created bucket (the implicit policy - same root account)
473
474
const dummy_object_sdk_for_iam_account2 = make_dummy_object_sdk_for_account ( dummy_object_sdk , account_iam_user2 ) ;
474
475
const res2 = await bucketspace_fs . list_buckets ( dummy_object_sdk_for_iam_account2 ) ;
475
476
assert . equal ( res2 . buckets . length , 1 ) ;
477
+ assert . equal ( res2 . buckets [ 0 ] . name . unwrap ( ) , test_bucket ) ;
476
478
} ) ;
477
479
mocha . it ( 'list buckets - different account' , async function ( ) {
478
480
// another user created a bucket (account_user3 cannot list it)
@@ -489,6 +491,7 @@ mocha.describe('bucketspace_fs', function() {
489
491
const dummy_object_sdk_for_iam_account = make_dummy_object_sdk_for_account ( dummy_object_sdk , account_user4 ) ;
490
492
const res = await bucketspace_fs . list_buckets ( dummy_object_sdk_for_iam_account ) ;
491
493
assert . equal ( res . buckets . length , 1 ) ;
494
+ assert . equal ( res . buckets [ 0 ] . name . unwrap ( ) , test_bucket ) ;
492
495
} ) ;
493
496
mocha . it ( 'list buckets - different account with bucket policy (principal by id)' , async function ( ) {
494
497
// another user created a bucket
@@ -499,6 +502,7 @@ mocha.describe('bucketspace_fs', function() {
499
502
const dummy_object_sdk_for_iam_account = make_dummy_object_sdk_for_account ( dummy_object_sdk , account_user4 ) ;
500
503
const res = await bucketspace_fs . list_buckets ( dummy_object_sdk_for_iam_account ) ;
501
504
assert . equal ( res . buckets . length , 1 ) ;
505
+ assert . equal ( res . buckets [ 0 ] . name . unwrap ( ) , test_bucket ) ;
502
506
} ) ;
503
507
mocha . afterEach ( async function ( ) {
504
508
await fs_utils . folder_delete ( `${ new_buckets_path } /${ test_bucket } ` ) ;
0 commit comments