Skip to content

Commit 1d108a5

Browse files
committed
fix: ossConfig auto
1 parent 5a57494 commit 1d108a5

2 files changed

Lines changed: 5 additions & 15 deletions

File tree

__tests__/e2e/ci-mac-linux.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ cd ..
7979

8080
echo "test nodejs runtime with auto ..."
8181
cd nodejs
82+
export fc_component_function_name=nodejs18-$(uname)-$(uname -m)-$RANDSTR
83+
s deploy -y -t s_auto.yaml
84+
s invoke -e '{"hello":"fc nodejs with auto"}' -t s_auto.yaml
85+
s info -y -t s_auto.yaml
86+
s remove -y -t s_auto.yaml
8287

8388
echo "test nodejs runtime with oss config auto ..."
8489
export fc_component_function_name=nodejs18-$(uname)-$(uname -m)-$RANDSTR
@@ -87,12 +92,6 @@ s invoke -e '{"hello":"fc nodejs with oss config auto"}' -t ./s_oss_config_auto.
8792
s info -y -t ./s_oss_config_auto.yaml
8893
s remove -y -t ./s_oss_config_auto.yaml
8994

90-
export fc_component_function_name=nodejs18-$(uname)-$(uname -m)-$RANDSTR
91-
s deploy -y -t s_auto.yaml
92-
s invoke -e '{"hello":"fc nodejs with auto"}' -t s_auto.yaml
93-
s info -y -t s_auto.yaml
94-
s remove -y -t s_auto.yaml
95-
9695
echo "test nodejs runtime with more vpc and nas auto ..."
9796
export fc_component_function_name=nodejs16-$(uname)-$(uname -m)-$RANDSTR
9897
s deploy -y -t ./s_lock_auto.yaml

src/interface/index.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ export * from './trigger';
1313
export * from './base';
1414
export * from './async_invoke_config';
1515

16-
export interface IOSSCorsRule {
17-
allowedOrigin: string[];
18-
allowedMethod: string[];
19-
allowedHeader?: string[];
20-
exposeHeader?: string[];
21-
maxAgeSeconds?: number;
22-
}
23-
2416
export interface IProps extends IFunction {
2517
region: IRegion;
2618
triggers?: ITrigger[];
@@ -29,7 +21,6 @@ export interface IProps extends IFunction {
2921
provisionConfig?: IProvisionConfig;
3022
scalingConfig?: IScalingConfig;
3123
endpoint?: string;
32-
cors?: IOSSCorsRule[];
3324
supplement?: any;
3425
annotations?: any;
3526
}

0 commit comments

Comments
 (0)