Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Azure Event Hub #98

Merged
merged 7 commits into from
Jul 4, 2021
Merged

Added support for Azure Event Hub #98

merged 7 commits into from
Jul 4, 2021

Conversation

djorgensendk
Copy link
Contributor

This PR adds support in Squadron for Azure Event Hubs. It is possible to create an EventHub namespace with one or more EventHubs in it. Test shows how to publish and consume events on a new event hub and assert that the message published is similar to what this consumed.

@glucaci
Copy link
Member

glucaci commented Jun 28, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@glucaci
Copy link
Member

glucaci commented Jun 30, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@glucaci
Copy link
Member

glucaci commented Jun 30, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

<AssemblyName>Squadron.AzureCloudEventHub.Tests</AssemblyName>
</PropertyGroup>

<ItemGroup>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty itemgroup

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed


namespace Squadron.AzureCloudEventHub.Tests
{
public class AzureNewEventHubResourceTests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add test also for existing eventhub

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A test has been added in class AzureExistingEventHubResourceTests

<ProjectReference Include="..\Core\Core.csproj" />
</ItemGroup>


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove emtpy line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

private EventHubOptionsBuilder()
: base()
{

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

/// <returns></returns>
public static EventHubOptionsBuilder New() => new EventHubOptionsBuilder();


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

- add test for existing event hub namespace
- remove blank lines and empty itemgroup
@djorgensendk djorgensendk requested a review from glucaci July 1, 2021 08:22
"SubscriptionId": "",
"ResourceGroup": "",
"DefaultLocation": "",
"SubscriptionId": "3764e1f0-3a1b-4a28-a340-1ed0d8d388fd",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ups... remove these

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks - must have gone too fast wehen I committed. All secrets are removed

@glucaci
Copy link
Member

glucaci commented Jul 2, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@djorgensendk
Copy link
Contributor Author

@glucaci it seems like RabbitMQ and ReavenDB tests are failing, which are tests that shouldn't be affected by this PR

@sonarcloud
Copy link

sonarcloud bot commented Jul 2, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@glucaci glucaci merged commit aa775e6 into SwissLife-OSS:master Jul 4, 2021
@djorgensendk djorgensendk deleted the add-azure-event-hub branch July 5, 2021 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants