-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add simple e2e test about custom-domain
- Loading branch information
1 parent
a5f7416
commit 62707e7
Showing
10 changed files
with
140 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
def handler(event, context): | ||
return "hello wolrd!" | ||
return "hello wolrd!\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# ------------------------------------ | ||
# 官方手册: https://manual.serverless-devs.com/user-guide/aliyun/#fc3 | ||
# 常见小贴士: https://manual.serverless-devs.com/user-guide/tips/ | ||
# 有问题快来钉钉群问一下吧:33947367 | ||
# ------------------------------------ | ||
edition: 3.0.0 | ||
name: hello-world-app | ||
access: "quanxi" | ||
|
||
vars: | ||
region: ${env('REGION', 'cn-huhehaote')} | ||
|
||
resources: | ||
hello_world: | ||
component: ${env('fc_component_version', path('../../../'))} | ||
props: | ||
region: ${vars.region} | ||
functionName: "test-devs-artifact-2" | ||
description: 'hello world by serverless devs' | ||
runtime: "python3.10" | ||
artifact: test-devs-artifact_cn-hangzhou | ||
handler: index.handler | ||
memorySize: 128 | ||
timeout: 40 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def handler(event, context): | ||
return "hello wolrd!\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# ------------------------------------ | ||
# 官方手册: https://manual.serverless-devs.com/user-guide/aliyun/#fc3 | ||
# 常见小贴士: https://manual.serverless-devs.com/user-guide/tips/ | ||
# 有问题快来钉钉群问一下吧:33947367 | ||
# ------------------------------------ | ||
edition: 3.0.0 | ||
name: hello-world-app | ||
access: "quanxi" | ||
|
||
vars: | ||
region: ${env('REGION', 'cn-huhehaote')} | ||
|
||
resources: | ||
hello_world_1: | ||
#component: fc3@dev | ||
component: ${env('fc_component_version', path('../../../'))} | ||
props: | ||
region: ${vars.region} | ||
functionName: "test-cd" | ||
description: 'hello world by serverless devs' | ||
runtime: "python3.10" | ||
code: ./code | ||
handler: index.handler | ||
memorySize: 128 | ||
timeout: 45 | ||
triggers: | ||
- triggerName: httpTrigger | ||
triggerType: http | ||
triggerConfig: | ||
methods: | ||
- GET | ||
- POST | ||
authType: anonymous | ||
disableURLInternet: false | ||
customDomain: | ||
#domainName: auto | ||
domainName: "xiliu-test.devsapp.net" | ||
protocol: HTTP | ||
route: | ||
# methods: | ||
# - GET | ||
path: /* | ||
qualifier: LATEST | ||
|
||
hello_world_2: | ||
#component: fc3@dev | ||
component: ${env('fc_component_version', path('../../../'))} | ||
props: | ||
region: ${vars.region} | ||
functionName: "test-cd2" | ||
description: 'hello world by serverless devs' | ||
runtime: "python3.10" | ||
code: ./code | ||
handler: index.handler | ||
memorySize: 128 | ||
timeout: 45 | ||
triggers: | ||
- triggerName: httpTrigger | ||
triggerType: http | ||
triggerConfig: | ||
methods: | ||
- GET | ||
- POST | ||
authType: anonymous | ||
disableURLInternet: false | ||
customDomain: | ||
domainName: "xiliu-test.devsapp.net" | ||
protocol: HTTP | ||
route: | ||
methods: | ||
- GET | ||
path: /a | ||
qualifier: LATEST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters