File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ export const resolveBuckets = (
6464 accessControl : aclMap . get (
6565 calcRefs ( bucket . security ?. acl , context ) ?? ( '' as BucketAccessEnum ) ,
6666 ) ,
67+ blockPublicAccess : calcRefs ( bucket . security ?. acl , context ) === BucketAccessEnum . PRIVATE ,
6768 websiteConfigurationV2 : bucket . website
6869 ? {
6970 indexDocument : {
Original file line number Diff line number Diff line change @@ -13,6 +13,16 @@ const mockedGenerateAsync = jest.fn();
1313const mockedInfoLogger = jest . fn ( ) ;
1414const mockedDebugLogger = jest . fn ( ) ;
1515
16+ jest . mock ( '../../src/common/rosClient' , ( ) => ( { } ) ) ;
17+ jest . mock ( '../../src/common/imsClient' , ( ) => ( { } ) ) ;
18+ jest . mock ( '@alicloud/ros-cdk-core' , ( ) => ( { } ) ) ;
19+
20+ jest . mock ( '@alicloud/ros-cdk-ossdeployment' , ( ) => ( {
21+ Source : {
22+ asset : jest . fn ( ) . mockImplementation ( ( ) => ( { bind : jest . fn ( ) } ) ) ,
23+ } ,
24+ } ) ) ;
25+
1626jest . mock ( 'node:async_hooks' , ( ) => ( {
1727 AsyncLocalStorage : jest . fn ( ) . mockImplementation ( ( ) => ( {
1828 enterWith : jest . fn ( ) ,
You can’t perform that action at this time.
0 commit comments