Skip to content

Commit 96c5f00

Browse files
authored
Add ServiceBus and SQL (#63)
Add remaining tests
1 parent 5f434ab commit 96c5f00

File tree

65 files changed

+898
-479
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+898
-479
lines changed

app/v3-oldConfig/cosmosDBTrigger/function.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"direction": "in",
77
"leaseCollectionName": "leases",
88
"connectionStringSetting": "CosmosDBConnection",
9-
"databaseName": "e2eTestDB",
9+
"databaseName": "e2eTestCosmosDB",
1010
"collectionName": "e2eTestContainerTrigger",
1111
"createLeaseCollectionIfNotExists": true,
1212
"leaseCollectionPrefix": "2"

app/v3-oldConfig/cosmosDBTriggerAndOutput/function.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"direction": "in",
77
"leaseCollectionName": "leases",
88
"connectionStringSetting": "CosmosDBConnection",
9-
"databaseName": "e2eTestDB",
9+
"databaseName": "e2eTestCosmosDB",
1010
"collectionName": "e2eTestContainerTriggerAndOutput",
1111
"createLeaseCollectionIfNotExists": true,
1212
"leaseCollectionPrefix": "1"
@@ -16,7 +16,7 @@
1616
"name": "$return",
1717
"direction": "out",
1818
"connectionStringSetting": "CosmosDBConnection",
19-
"databaseName": "e2eTestDB",
19+
"databaseName": "e2eTestCosmosDB",
2020
"collectionName": "e2eTestContainerTrigger"
2121
}
2222
],

app/v3-oldConfig/httpTriggerCosmosDBInput/function.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"name": "inputDoc",
1818
"direction": "in",
1919
"connectionStringSetting": "CosmosDBConnection",
20-
"databaseName": "e2eTestDB",
20+
"databaseName": "e2eTestCosmosDB",
2121
"collectionName": "e2eTestContainerTriggerAndOutput",
2222
"partitionKey": "testPartKey",
2323
"id": "{Query.id}"

app/v3-oldConfig/httpTriggerCosmosDBOutput/function.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"name": "outputDoc",
1818
"direction": "out",
1919
"connectionStringSetting": "CosmosDBConnection",
20-
"databaseName": "e2eTestDB",
20+
"databaseName": "e2eTestCosmosDB",
2121
"collectionName": "e2eTestContainerTriggerAndOutput"
2222
}
2323
],

app/v3/cosmosDBTrigger/function.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"direction": "in",
77
"leaseContainerName": "leases",
88
"connection": "CosmosDBConnection",
9-
"databaseName": "e2eTestDB",
9+
"databaseName": "e2eTestCosmosDB",
1010
"containerName": "e2eTestContainerTrigger",
1111
"createLeaseContainerIfNotExists": true,
1212
"leaseContainerPrefix": "2"

app/v3/cosmosDBTriggerAndOutput/function.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"direction": "in",
77
"leaseContainerName": "leases",
88
"connection": "CosmosDBConnection",
9-
"databaseName": "e2eTestDB",
9+
"databaseName": "e2eTestCosmosDB",
1010
"containerName": "e2eTestContainerTriggerAndOutput",
1111
"createLeaseContainerIfNotExists": true,
1212
"leaseContainerPrefix": "1"
@@ -16,7 +16,7 @@
1616
"name": "$return",
1717
"direction": "out",
1818
"connection": "CosmosDBConnection",
19-
"databaseName": "e2eTestDB",
19+
"databaseName": "e2eTestCosmosDB",
2020
"containerName": "e2eTestContainerTrigger"
2121
}
2222
],

app/v3/httpTriggerCosmosDBInput/function.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"name": "inputDoc",
1818
"direction": "in",
1919
"connection": "CosmosDBConnection",
20-
"databaseName": "e2eTestDB",
20+
"databaseName": "e2eTestCosmosDB",
2121
"containerName": "e2eTestContainerTriggerAndOutput",
2222
"partitionKey": "testPartKey",
2323
"id": "{Query.id}"

app/v3/httpTriggerCosmosDBOutput/function.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"name": "outputDoc",
1818
"direction": "out",
1919
"connection": "CosmosDBConnection",
20-
"databaseName": "e2eTestDB",
20+
"databaseName": "e2eTestCosmosDB",
2121
"containerName": "e2eTestContainerTriggerAndOutput"
2222
}
2323
],

app/v3/httpTriggerServiceBusOutput/function.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"type": "serviceBus",
1717
"name": "outputMsg",
1818
"direction": "out",
19-
"connection": "e2eTest_serviceBus",
20-
"queueName": "e2eTestQueueOneTrigger"
19+
"connection": "ServiceBusConnection",
20+
"queueName": "e2e-test-queue-one-trigger"
2121
}
2222
],
2323
"scriptFile": "../dist/httpTriggerServiceBusOutput/index.js"
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
// // Copyright (c) .NET Foundation. All rights reserved.
2-
// // Licensed under the MIT License.
1+
// Copyright (c) .NET Foundation. All rights reserved.
2+
// Licensed under the MIT License.
33

4-
// import { AzureFunction, Context, HttpRequest } from '@azure/functions';
4+
import { AzureFunction, Context, HttpRequest } from '@azure/functions';
55

6-
// const httpTriggerServiceBusOutput: AzureFunction = async function (
7-
// context: Context,
8-
// request: HttpRequest
9-
// ): Promise<void> {
10-
// context.bindings.outputMsg = request.body.output;
11-
// context.res = { body: 'done' };
12-
// };
6+
const httpTriggerServiceBusOutput: AzureFunction = async function (
7+
context: Context,
8+
request: HttpRequest
9+
): Promise<void> {
10+
context.bindings.outputMsg = request.body.output;
11+
context.res = { body: 'done' };
12+
};
1313

14-
// export default httpTriggerServiceBusOutput;
14+
export default httpTriggerServiceBusOutput;

0 commit comments

Comments
 (0)