Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 4.13 KB

File metadata and controls

44 lines (24 loc) · 4.13 KB

Contributing

Thank you for your interest in contributing to the Service Bus client library. As an open source effort, we're excited to welcome feedback and contributions from the community. A great first step in sharing your thoughts and understanding where help is needed would be to take a look at the open issues.

Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use any contribution that you make. For details, visit https://cla.microsoft.com.

Code of conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Getting started

Before working on a contribution, it would be beneficial to familiarize yourself with the process and guidelines used for the Azure SDKs so that your submission is consistent with the project standards and is ready to be accepted with fewer changes requested. In particular, it is recommended to review:

Development environment setup

Running tests

The Service Bus client library tests may be executed using the dotnet CLI, or the test runner of your choice - such as Visual Studio or Visual Studio Code. For those developers using Visual Studio, it is safe to use the Live Unit Testing feature, as any tests with external dependencies have been marked to be excluded.

Tests in the Service Bus client library are split into two categories:

  • Unit tests have no special considerations; these are self-contained and execute locally without any reliance on external resources. Unit tests are considered the default test type in the Service Bus client library and, thus, have no explicit category trait attached to them.

  • Integration tests have dependencies on live Azure resources and require setting up your development environment prior to running. Known in the Azure SDK project commonly as "Live" tests, these tests are decorated with a category trait of "Live". To run them, an Azure resource group and Azure Service Principal with "contributor" rights to that resource group are required.

To automatically create the resources necessary for running live tests, run the New-TestResources script that is found in the eng directory and pass in servicebus as the service:

eng\common\TestResources\New-TestResources.ps1 servicebus

If you are running in Windows, the script will automatically create a test-resources.json.env file containing the encrypted secrets required to run the live tests. Otherwise, the script will output a list of environment variables that you will need to set to get the live tests working.

Samples

In order to run the samples, you'll need a Service Bus namespace and a queue. For the session samples, you will need a session-enabled queue.

Development history

For additional insight and context, the development, release, and issue history for the Azure Service Bus client library is available in read-only form, in its previous location, the Azure Service Bus .NET repository.