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
Add AzureTest framework #967
Conversation
…ependency for AzureTest.
* Update DVR references to point to fork rather than venmo. * Remove static linkage to DVR.
…nto feature/AzureTest
* Environment Variable for sdk root * Revert project.pbxproj * Edit to outputDirectory construction
…nto feature/AzureTest
* Environment Variable for sdk root Enforce that DVR record-playback honors environment variables * Environment Variables work as intended with the new DVR updates * Undo Podfile Changes Local Changes that need to be removed * Slight edit to record mode Co-authored-by: Jair Myree <t-jairmyree@microsoft.com>
* Add resource group delete operation. * Progress. * Project setting fixes. * Add test-resources.bicep file. * Update bicep file. * Target python script in test resource deploy post-script. * Remove ResourceUtil files and dependencies. * Revert to previous output style.
…o feature/AzureTest
…o feature/AzureTest
…o feature/AzureTest
* Commit test-settings.plist and git-ignore. * TestSettings protocol. * Update Podfile for DVR * Don't use local DVR * Chat test updates. * Add recordings to project. * Update prepare_chat_tests.py * Update deployment targets. * Add podspec. * Add readme. * Fix hard-coded links.
…o feature/AzureTest
* Remove headers. * Add scrubbed recordings.
…o feature/AzureTest # Conflicts: # sdk/communication/AzureCommunicationChat/AzureCommunicationChat.xcodeproj/project.pbxproj
* Major edits toward scrubbing subscription IDs * Minor edits on scrubbing * Update sdk/test/AzureTest/Scrubbing.swift Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com> * Update sdk/test/AzureTest/Scrubbing.swift Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com> * Update sdk/test/AzureTest/Scrubbing.swift Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com> * Update sdk/test/AzureTest/Scrubbing.swift Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com> * Recommit: Files changes got left out of last commit * Requested Draft PR changes * Clean up after rebase * Testing response scrubbing in progress * Finished Scrubbing SubscriptionIDs * Adjustments made to PR based on review comments. * Edits to PR based on review comments * Update sdk/test/AzureTest/AzureTestTests/AzureTestTests.swift Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com> * More edits based of pr review * More edits to pr based off of review comments * More edits to PR based off suggestions in review * More edits to PR from review comments * Removed unused functions and extensions * Edits to PR based off review comments * Edits to PR from review comments * Edits based off PR review comments Co-authored-by: Jair Myree <t-jairmyree@microsoft.com> Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com>
…o feature/AzureTest
* Add base class for recordable tests. * Run swiftformat.
57ec740
to
827ad96
Compare
This repository is protected by Check Enforcer. The check-enforcer check-run will not pass until there is at least one more check-run successfully passing. Check Enforcer supports the following comment commands:
|
@@ -5,36 +5,49 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this file be better placed in the ACS service directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I would have preferred if I could have used test-resources-post.py
. Absent that, I don't want to clutter the service directory and figured it would be best to keep this in the "normal" spot under eng/scripts
.
key = "AZURE_COMMUNICATION_USER_ID_2" | ||
value = "" | ||
key = "SDK_REPO_ROOT" | ||
value = "/Users/travisprescott/repos/azure-sdk-for-ios" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this shouldn't be your windows user path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is my Mac user directory and yes, it is intentional. Anyone who wants to run the test would need to update this with their own settings, but since the build artifact isn't "aware" of the source directory, it (seemingly) has to be hard coded like this for the recording functionality to work correctly.
…o feature/AzureTest # Conflicts: # sdk/communication/AzureCommunicationChat/AzureCommunicationChat.xcodeproj/project.pbxproj
Adds AzureTest for creating record/playback style tests. Add RecordableXCTestCase to make it easier to add recordable tests.
Documentation provided here:
https://github.com/Azure/azure-sdk-for-ios/wiki/Writing-End-to-End-Tests-using-AzureTest