-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from marcduiker/develop
Develop
- Loading branch information
Showing
64 changed files
with
2,158 additions
and
608 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
// Use IntelliSense to find out which attributes exist for C# debugging | ||
// Use hover for the description of the existing attributes | ||
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": ".NET Core Launch (console)", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
// If you have changed target frameworks, make sure to update the program path. | ||
"program": "${workspaceFolder}/src/AzureFunctionsUpdates.UnitTests/bin/Debug/netcoreapp2.2/AzureFunctionsUpdates.UnitTests.dll", | ||
"args": [], | ||
"cwd": "${workspaceFolder}/src/AzureFunctionsUpdates.UnitTests", | ||
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window | ||
"console": "internalConsole", | ||
"stopAtEntry": false, | ||
"internalConsoleOptions": "openOnSessionStart" | ||
}, | ||
{ | ||
"name": ".NET Core Attach", | ||
"type": "coreclr", | ||
"request": "attach", | ||
"processId": "${command:pickProcess}" | ||
} | ||
,] | ||
} |
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,15 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/src/AzureFunctionsUpdates.UnitTests/AzureFunctionsUpdates.UnitTests.csproj" | ||
], | ||
"problemMatcher": "$msCompile" | ||
} | ||
] | ||
} |
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,6 @@ | ||
### Get the latest release for a GitHub repository | ||
@owner = azure | ||
@repo = azure-functions-host | ||
|
||
@baseUrl = https://api.github.com | ||
GET {{baseUrl}}/repos/{{owner}}/{{repo}}/releases/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@appName = | ||
@functionAppUrl = https://{{appName}}.azurewebsites.net | ||
@code = | ||
@taskHub = AzFuncUpdatesV130 | ||
|
||
GET {{functionAppUrl}}/runtime/webhooks/durableTask/instances | ||
?taskHub={{taskHub}} | ||
&code={{code}} | ||
&runtimeStatus=Failed | ||
&showInput=true | ||
&top=50 | ||
|
||
### Purge failed instances | ||
DELETE {{functionAppUrl}}/runtime/webhooks/durabletask/instances | ||
?taskHub={{taskHub}} | ||
&code={{code}} |
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,26 @@ | ||
PartitionKey,RowKey,Timestamp,CreatedAt,CreatedAt@type,HashTags,HashTags@type,IsActive,IsActive@type,PublicationSourceName,PublicationSourceName@type,PublicationSourceOwner,PublicationSourceOwner@type,PublicationSourceUrl,PublicationSourceUrl@type,RepositoryName,RepositoryName@type,RepositoryOwner,RepositoryOwner@type | ||
Publications,Azure|Azure Service Updates,2019-03-20T21:55:31.405Z,2019-03-17T17:05:00.000Z,Edm.DateTime,#AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,Azure Service Updates,Edm.String,Azure,Edm.String,https://azurecomcdn.azureedge.net/en-us/updates/feed/?product=functions,Edm.String,,,, | ||
Repositories,Azure|azure-functions-core-tools,2019-03-08T21:12:46.700Z,2019-02-27T17:40:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-core-tools,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-datalake-extension,2019-04-19T12:55:47.373Z,2019-04-19T14:55:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-datalake-extension,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-docker,2019-03-08T21:12:46.700Z,2019-03-04T17:07:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless #Docker,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-docker,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-durable-extension,2019-03-08T21:12:46.700Z,2019-02-27T17:44:00.000Z,Edm.DateTime,#Azure #AzureFunctions #DurableFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-durable-extension,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-durable-js,2019-03-08T21:33:47.752Z,2019-03-08T22:33:00.000Z,Edm.DateTime,#Azure #AzureFunctions #DurableFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-durable-js,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-eventgrid-extension,2019-03-08T21:12:46.700Z,2019-02-28T15:45:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-eventgrid-extension,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-host,2019-04-19T12:44:03.617Z,2019-02-13T23:14:40.371Z,Edm.DateTime,#Azure #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-host,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-java-library,2019-03-08T21:12:46.700Z,2019-03-04T20:58:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless #Java,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-java-library,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-java-worker,2019-03-08T21:12:46.700Z,2019-03-04T20:59:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless #Java,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-java-worker,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-kafka-extension,2019-04-19T12:53:07.009Z,2019-04-19T14:52:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-kafka-extension,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-microsoftgraph-extension,2019-04-19T12:51:47.784Z,2019-04-19T14:51:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-microsoftgraph-extension,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-nodejs-worker,2019-03-08T21:12:46.700Z,2019-03-03T16:28:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless #NodeJS #TypeScript,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-nodejs-worker,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-pack,2019-04-19T12:50:15.598Z,2019-04-19T14:49:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless #NodeJS,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-pack,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-powershell-worker,2019-03-08T21:33:54.838Z,2019-03-04T19:45:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless #PowerShell,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-powershell-worker,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-python-library,2019-04-19T12:54:27.858Z,2019-04-19T14:53:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-python-library,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-python-worker,2019-03-08T21:12:46.700Z,2019-03-04T17:06:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless #Python,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-python-worker,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-signalrservice-extension,2019-03-08T21:12:46.700Z,2019-02-28T15:51:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-signalrservice-extension,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-templates,2019-03-08T21:12:46.700Z,2019-02-27T17:42:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-templates,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-ux,2019-03-08T21:12:46.700Z,2019-03-04T17:04:00.000Z,Edm.DateTime,#Azure #Portal #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-ux,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-functions-vs-build-sdk,2019-03-08T21:12:46.700Z,2019-03-04T16:56:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless #MSBuild,Edm.String,true,Edm.Boolean,,,,,,,azure-functions-vs-build-sdk,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-webjobs-sdk,2019-03-08T21:12:46.700Z,2019-02-27T22:58:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-webjobs-sdk,Edm.String,Azure,Edm.String | ||
Repositories,Azure|azure-webjobs-sdk-extensions,2019-03-08T21:12:46.700Z,2019-02-28T15:40:00.000Z,Edm.DateTime,#Azure #AzureFunctions #Serverless,Edm.String,true,Edm.Boolean,,,,,,,azure-webjobs-sdk-extensions,Edm.String,Azure,Edm.String | ||
Repositories,marcduiker|az-func-updates,2019-03-20T22:22:55.285Z,2019-03-20T23:12:00.000Z,Edm.DateTime,#AzureFunctions #Twitterbot #MetaTweet #SelfReflection,Edm.String,true,Edm.Boolean,,,,,,,az-func-updates,Edm.String,marcduiker,Edm.String | ||
Repositories,microsoft|vscode-azurefunctions,2019-07-08T10:36:01.944Z,2019-07-08T12:35:00.000Z,Edm.DateTime,#AzureFunctions #Serverless @code,Edm.String,true,Edm.Boolean,,,,,,,vscode-azurefunctions,Edm.String,microsoft,Edm.String |
This file was deleted.
Oops, something went wrong.
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,48 @@ | ||
# These are sources being monitored | ||
|
||
## GitHub Repositories | ||
|
||
| Owner | Repository name | | ||
|-|-| | ||
|anthonychu|azure-functions-deno-worker| | ||
|Azure|azure-functions-appinsights-extension| | ||
|Azure|azure-functions-core-tools| | ||
|Azure|azure-functions-docker| | ||
|Azure|azure-functions-datalake-extension| | ||
|Azure|azure-functions-dotnet-extensions| | ||
|Azure|azure-functions-durable-extension| | ||
|Azure|azure-functions-durable-js| | ||
|Azure|azure-functions-eventgrid-extension| | ||
|Azure|azure-functions-eventhubs-extension| | ||
|Azure|azure-functions-extension-bundles| | ||
|Azure|azure-functions-host| | ||
|Azure|azure-functions-iothub-extension| | ||
|Azure|azure-functions-java-library| | ||
|Azure|azure-functions-java-worker| | ||
|Azure|azure-functions-kafka-extension| | ||
|Azure|azure-functions-language-worker-protobuf| | ||
|Azure|azure-functions-microsoftgraph-extension| | ||
|Azure|azure-functions-nodejs-worker| | ||
|Azure|azure-functions-pack| | ||
|Azure|azure-functions-powershell-worker| | ||
|Azure|azure-functions-python-library| | ||
|Azure|azure-functions-python-worker| | ||
|Azure|azure-functions-rabbitmq-extension| | ||
|Azure|azure-functions-servicebus-extension| | ||
|Azure|azure-functions-signalrservice-extension| | ||
|Azure|azure-functions-templates| | ||
|Azure|azure-functions-tooling-feed| | ||
|Azure|azure-functions-ux| | ||
|Azure|azure-functions-vs-build-sdk| | ||
|Azure|azure-webjobs-sdk| | ||
|Azure|azure-webjobs-sdk-extensions| | ||
|Azure|functions-action| | ||
|Azure|functions-container-action| | ||
|Azure|homebrew-functions| | ||
|marcduiker|az-func-updates| | ||
|microsoft|vscode-azurefunctions| | ||
|
||
## RSS Feeds | ||
| Owner | Feed | | ||
|-|-| | ||
|Azure|[Azure Service Updates](https://azurecomcdn.azureedge.net/en-us/updates/feed/?product=functions)| |
12 changes: 6 additions & 6 deletions
12
src/AzureFunctionsUpdates.UnitTests/AzureFunctionsUpdates.UnitTests.csproj
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
58 changes: 58 additions & 0 deletions
58
src/AzureFunctionsUpdates.UnitTests/Builders/MessageBuilderTests.cs
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,58 @@ | ||
using AzureFunctionsUpdates.Builders; | ||
using AzureFunctionsUpdates.Models.RepositoryReleases; | ||
using AzureFunctionsUpdates.UnitTests.TestObjectBuilders; | ||
using FluentAssertions; | ||
using Xunit; | ||
|
||
namespace AzureFunctionsUpdates.UnitTests.Builders | ||
{ | ||
public class MessageBuilderTests | ||
{ | ||
[Fact] | ||
public void GivenMessageContentIsTooLong_WhenUpdateMessageIsCreated_ThenTheMessageIsShortened() | ||
{ | ||
// Arrange | ||
var release = RepositoryReleaseBuilder.BuildOneWithLongRepoAndReleaseName<GitHubRepositoryRelease>(); | ||
|
||
// Act | ||
var message = MessageBuilder.BuildForRelease(release); | ||
|
||
// Assert | ||
var messageLengthWithoutUrlPlusFixedShortenedUrl = | ||
message.Content.Length - release.HtmlUrl.Length + MessageBuilder.TwitterShortenedUrlCharacterCount; | ||
messageLengthWithoutUrlPlusFixedShortenedUrl.Should().BeLessOrEqualTo(MessageBuilder.MaxTwitterCharacterCount); | ||
} | ||
|
||
[Fact] | ||
public void GivenMessageContentIsNotTooLong_WhenUpdateMessageIsCreated_ThenTheMessageIsNotShortened() | ||
{ | ||
// Arrange | ||
var release = RepositoryReleaseBuilder.BuildOneWithShortRepoAndReleaseNameOnAspecificDate<GitHubRepositoryRelease>(); | ||
|
||
// Act | ||
var message = MessageBuilder.BuildForRelease(release); | ||
|
||
// Assert | ||
var messageLengthWithoutUrlPlusFixedShortenedUrl = | ||
message.Content.Length - release.HtmlUrl.Length + MessageBuilder.TwitterShortenedUrlCharacterCount; | ||
messageLengthWithoutUrlPlusFixedShortenedUrl.Should().BeLessOrEqualTo(MessageBuilder.MaxTwitterCharacterCount); | ||
} | ||
|
||
[Fact] | ||
public void GivenARepositoryRelease_WhenUpdateMessageIsCreated_ThenTheMessageContainsTheCorrespondingReleaseInfo() | ||
{ | ||
// Arrange | ||
var release = RepositoryReleaseBuilder.BuildOneWithShortRepoAndReleaseNameOnAspecificDate<GitHubRepositoryRelease>(); | ||
|
||
// Act | ||
var message = MessageBuilder.BuildForRelease(release); | ||
|
||
// Assert | ||
message.Content.Should().Be(@"A new azure-functions-host release, Azure Functions Runtime 2.0.12477 (tagged v2.0.12477), is available on GitHub since 01 Jan 2018. | ||
See https://github.com/Azure/azure-functions-host/releases/tag/v2.0.12477 for more information. | ||
#AzureFunctions #Serverless"); | ||
} | ||
} | ||
} |
Oops, something went wrong.