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

Concurrency supported in Smoke Tests #7169

Merged
merged 27 commits into from
Aug 8, 2019
Merged

Concurrency supported in Smoke Tests #7169

merged 27 commits into from
Aug 8, 2019

Conversation

JonathanCrd
Copy link
Member

A random UUID was added to the objects in order to support various instances of the smoke tests running simultaneously without interfering each other's resources.

For Key Vault - Secrets, the random UUID was added at the end of the secret-name.
For Storage - Blob, it was added in the blob-name.
For Cosmos DB, it was added at the end of the database-name
For Event Hubs, there is no need to add this random uuid.

Also, the license headers were added to the files.

Performs functionalities with Key Vault, Identity, Event Hubs and Blob Storage Track 2 SDKs.
The names were changed to match the name convention for environment variables.
A gitignore file was created in the SmokeTest folder, and now all launchSettings.json files are being ignored.
Work based on the reviews from the PR #6652. The public methods are now in PascalCase, the methods does not longer return English strings, instead they return booleans or Exceptions.  And Exit Codes handling was implemented.
Class names were changed to match the following pattern: <service>Test. Example: BlobStorage -> BlobStorageTest.
XML comments were added and some unnecesary comments were deleted.
Use of higher order functions to dry up the code.
Drying up the code by using high order functions.
Tests done with Mirosoft.Azure.DocumentDB SDK.
The samples not longer need the "TestBase" class to run.
This text file is not going to be needed any more since the test Blob is being created within the code.
All classes are now static.
@JonathanCrd JonathanCrd added the EngSys This issue is impacting the engineering system. label Aug 6, 2019
@JonathanCrd JonathanCrd self-assigned this Aug 6, 2019
Copy link
Member

@danieljurek danieljurek left a comment

Choose a reason for hiding this comment

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

Minor changes. Looks good otherwise.

samples/SmokeTest/SmokeTest/KeyVaultTest.cs Outdated Show resolved Hide resolved
samples/SmokeTest/SmokeTest/BlobStorageTest.cs Outdated Show resolved Hide resolved
samples/SmokeTest/SmokeTest/CosmosDBTest.cs Outdated Show resolved Hide resolved
samples/SmokeTest/SmokeTest/EventHubsTest.cs Outdated Show resolved Hide resolved
@JonathanCrd JonathanCrd merged commit d73876f into Azure:master Aug 8, 2019
pull bot pushed a commit to test-repo-billy/azure-sdk-for-net that referenced this pull request Aug 8, 2019
* .NET smoke Test Sample

Performs functionalities with Key Vault, Identity, Event Hubs and Blob Storage Track 2 SDKs.

* Env Variables names changed

The names were changed to match the name convention for environment variables.

* Update .gitignore

* gitignore updated

A gitignore file was created in the SmokeTest folder, and now all launchSettings.json files are being ignored.

* Exit Codes, PascalCase and refactoring of the static methods.

Work based on the reviews from the PR Azure#6652. The public methods are now in PascalCase, the methods does not longer return English strings, instead they return booleans or Exceptions.  And Exit Codes handling was implemented.

* Class names changed

Class names were changed to match the following pattern: <service>Test. Example: BlobStorage -> BlobStorageTest.

* Comments

XML comments were added and some unnecesary comments were deleted.

* Higher order functions

Use of higher order functions to dry up the code.

* Test classes refactured

Drying up the code by using high order functions.

* Create CosmosDBTest.cs

* Cosmos DB implementation

Tests done with Mirosoft.Azure.DocumentDB SDK.

* Update CosmosDBTest.cs

* Update CosmosDBTest.cs

* Unnecessary blank lines removed

* ExecuteTest typo

* Base class deleted

The samples not longer need the "TestBase" class to run.

* BlobTestSource.tst deleted

This text file is not going to be needed any more since the test Blob is being created within the code.

* Static Classes

All classes are now static.

* Pair programming comments

* Concurrency support

* License headers added

* License header added

* Adapted for concurrency

* Use of string interpolation

* Use of string interpolation

* Update EventHubsTest.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EngSys This issue is impacting the engineering system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants