Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 9838bb1

Browse files
committed
ci: Merge master into dev
2 parents 528fb19 + 9b57dac commit 9838bb1

File tree

7 files changed

+142
-11
lines changed

7 files changed

+142
-11
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ hello/
1313
local.settings.json
1414
__pycache__/
1515
.python_packages/
16-
.serverless/
16+
.serverless/

package-lock.json

+14-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/armTemplates/resources/appServicePlan.ts

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ interface AppServicePlanParams extends DefaultArmParams {
2222
appServicePlanSkuTier: ArmParameter;
2323
}
2424

25+
interface AppServicePlanParams extends DefaultArmParams {
26+
appServicePlanName: ArmParameter;
27+
appServicePlanSkuName: ArmParameter;
28+
appServicePlanSkuTier: ArmParameter;
29+
}
30+
2531
export class AppServicePlanResource implements ArmResourceTemplateGenerator {
2632
public static getResourceName(config: ServerlessAzureConfig) {
2733
const options: AzureNamingServiceOptions = {

src/config.ts

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
export const configConstants = {
2+
bearer: "Bearer ",
3+
deploymentConfig: {
4+
container: "deployment-artifacts",
5+
rollback: true,
6+
external: false,
7+
},
8+
naming: {
9+
maxLength: {
10+
storageAccount: 24,
11+
deploymentName: 64,
12+
},
13+
suffix: {
14+
deployment: "DEPLOYMENT",
15+
artifact: "ARTIFACT",
16+
}
17+
},
18+
functionAppApiPath: "/api/",
19+
functionAppDomain: ".azurewebsites.net",
20+
functionsAdminApiPath: "/admin/functions/",
21+
functionsApiPath: "/api/functions",
22+
funcCoreTools: "func",
23+
funcCoreToolsArgs: ["host", "start"],
24+
funcConsoleColor: "blue",
25+
runFromPackageSetting: "WEBSITE_RUN_FROM_PACKAGE",
26+
jsonContentType: "application/json",
27+
logInvocationsApiPath: "/azurejobs/api/functions/definitions/",
28+
logOutputApiPath: "/azurejobs/api/log/output/",
29+
logStreamApiPath: "/api/logstream/application/functions/function/",
30+
masterKeyApiPath: "/api/functions/admin/masterkey",
31+
providerName: "azure",
32+
scmCommandApiPath: "/api/command",
33+
scmDomain: ".scm.azurewebsites.net",
34+
scmVfsPath: "/api/vfs/site/wwwroot/",
35+
scmZipDeployApiPath: "/api/zipdeploy",
36+
resourceGroupHashLength: 6,
37+
defaults: {
38+
awsRegion: "us-east-1",
39+
region: "westus",
40+
stage: "dev",
41+
prefix: "sls",
42+
localPort: 7071,
43+
},
44+
};
45+
46+
export default configConstants;

src/services/functionAppService.test.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,16 @@ describe("Function App Service", () => {
508508

509509
function expectLogFunctions(sls: Serverless) {
510510
expectSlsLogContains(sls, "Deployed serverless functions:");
511-
expectSlsLogContains(sls, "Deploying zip file to function app: Test");
512511
expectSlsLogContains(sls, "-> hello: [*] myHostName.azurewebsites.net/api/hello");
513512
expectSlsLogContains(sls, "-> goodbye: [*] myHostName.azurewebsites.net/api/goodbye");
514513
}
515514

516515
function expectSlsLogContains(sls: Serverless, message: string) {
517516
const calls = (sls.cli.log as any).mock.calls;
518-
expect(calls.find((args) => args[0])).toBeTruthy();
517+
const call = calls.find((args) => {
518+
const equals = args[0] === message;
519+
return equals;
520+
});
521+
expect(call).toBeDefined();
519522
}
520523
});

src/services/runtimeVersions.json

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"nodejs": [
3+
{
4+
"version": "0.10.40"
5+
},
6+
{
7+
"version": "0.10.5"
8+
},
9+
{
10+
"version": "0.12.6"
11+
},
12+
{
13+
"version": "0.6.20"
14+
},
15+
{
16+
"version": "0.8.28"
17+
},
18+
{
19+
"version": "10.14.1"
20+
},
21+
{
22+
"version": "10.15.2"
23+
},
24+
{
25+
"version": "10.6.0"
26+
},
27+
{
28+
"version": "4.8.4"
29+
},
30+
{
31+
"version": "6.12.3"
32+
},
33+
{
34+
"version": "6.5.0"
35+
},
36+
{
37+
"version": "6.9.1"
38+
},
39+
{
40+
"version": "6.9.5"
41+
},
42+
{
43+
"version": "7.10.1"
44+
},
45+
{
46+
"version": "8.1.4"
47+
},
48+
{
49+
"version": "8.10.0"
50+
},
51+
{
52+
"version": "8.11.1"
53+
},
54+
{
55+
"version": "8.4.0"
56+
},
57+
{
58+
"version": "8.5.0"
59+
},
60+
{
61+
"version": "8.9.4"
62+
}
63+
],
64+
"python": [
65+
{
66+
"version": "3.6"
67+
}
68+
]
69+
}

src/shared/bindings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1817,4 +1817,4 @@
18171817
]
18181818
}
18191819
]
1820-
}
1820+
}

0 commit comments

Comments
 (0)