Added few scripts for testing#2674
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds cross-platform helper scripts to simplify working with a local Azurite emulator, including reusable Azure CLI wrappers (PowerShell + Bash) and a PowerShell REST/HMAC helper with smoke tests, plus a small VS Code workspace setting update.
Changes:
- Added PowerShell REST helper (
Invoke-Azurite*) with end-to-end Blob/Queue/Table smoke test. - Added Azure CLI-based helper/smoke-test scripts for Bash and PowerShell to target Azurite via connection strings.
- Updated VS Code workspace settings to enable SARIF Viewer GitHub Code Scanning integration.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 10 comments.
| File | Description |
|---|---|
| scripts/azurite-rest.ps1 | Adds raw REST (Shared Key) helpers and a REST-level smoke test for Blob/Queue/Table. |
| scripts/azurite-cli.sh | Adds Bash helpers and CLI-based smoke tests for Blob/Queue/Table against local Azurite. |
| scripts/azurite-cli.ps1 | Adds PowerShell helpers and CLI-based smoke tests for Blob/Queue/Table against local Azurite. |
| .vscode/settings.json | Adds a SARIF Viewer workspace setting for GitHub Code Scanning integration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+28
to
+31
| param( | ||
| [ValidateSet('blob', 'queue', 'table')] | ||
| [string]$Service = 'blob', | ||
|
|
Comment on lines
+128
to
+132
| else | ||
| echo "Round-trip MISMATCH!" | ||
| echo " expected: $content" | ||
| echo " got: $round_trip" | ||
| fi |
Comment on lines
+163
to
+167
| else | ||
| echo "Round-trip MISMATCH!" | ||
| echo " expected: $content" | ||
| echo " got: $round_trip" | ||
| fi |
Comment on lines
+200
to
+204
| else | ||
| echo "Round-trip MISMATCH!" | ||
| echo " expected: $value" | ||
| echo " got: $round_trip" | ||
| fi |
Comment on lines
+218
to
+220
| test_azurite_blob | ||
| test_azurite_queue | ||
| test_azurite_table |
Comment on lines
+230
to
+233
| else | ||
| use_azurite | ||
| test_azurite_all | ||
| fi |
Comment on lines
+136
to
+138
| } else { | ||
| Write-Host "Round-trip MISMATCH!`n expected: $content`n got: $roundTrip" -ForegroundColor Red | ||
| } |
Comment on lines
+168
to
+170
| else { | ||
| Write-Host "Round-trip MISMATCH!`n expected: $content`n got: $roundTrip" -ForegroundColor Red | ||
| } |
Comment on lines
+198
to
+200
| else { | ||
| Write-Host "Round-trip MISMATCH!`n expected: $value`n got: $roundTrip" -ForegroundColor Red | ||
| } |
Comment on lines
+221
to
+224
| if ($MyInvocation.InvocationName -ne '.') { | ||
| Use-Azurite | ||
| Test-AzuriteAll | ||
| } |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces reusable helper scripts for working with a local Azurite emulator using the Azure CLI, supporting both PowerShell and Bash environments. These scripts provide convenience functions and end-to-end smoke tests for Blob, Queue, and Table storage, making local development and testing with Azurite much easier across Windows, Linux, macOS, and WSL.