Skip to content

Added few scripts for testing#2674

Merged
jainakanksha-msft merged 1 commit into
mainfrom
akkuScripts
Jul 17, 2026
Merged

Added few scripts for testing#2674
jainakanksha-msft merged 1 commit into
mainfrom
akkuScripts

Conversation

@jainakanksha-msft

Copy link
Copy Markdown
Member

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.

Copilot AI review requested due to automatic review settings July 17, 2026 12:34
@jainakanksha-msft
jainakanksha-msft merged commit 959f3dd into main Jul 17, 2026
41 of 42 checks passed
@jainakanksha-msft
jainakanksha-msft deleted the akkuScripts branch July 17, 2026 12:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 thread scripts/azurite-rest.ps1
Comment on lines +28 to +31
param(
[ValidateSet('blob', 'queue', 'table')]
[string]$Service = 'blob',

Comment thread scripts/azurite-cli.sh
Comment on lines +128 to +132
else
echo "Round-trip MISMATCH!"
echo " expected: $content"
echo " got: $round_trip"
fi
Comment thread scripts/azurite-cli.sh
Comment on lines +163 to +167
else
echo "Round-trip MISMATCH!"
echo " expected: $content"
echo " got: $round_trip"
fi
Comment thread scripts/azurite-cli.sh
Comment on lines +200 to +204
else
echo "Round-trip MISMATCH!"
echo " expected: $value"
echo " got: $round_trip"
fi
Comment thread scripts/azurite-cli.sh
Comment on lines +218 to +220
test_azurite_blob
test_azurite_queue
test_azurite_table
Comment thread scripts/azurite-cli.sh
Comment on lines +230 to +233
else
use_azurite
test_azurite_all
fi
Comment thread scripts/azurite-cli.ps1
Comment on lines +136 to +138
} else {
Write-Host "Round-trip MISMATCH!`n expected: $content`n got: $roundTrip" -ForegroundColor Red
}
Comment thread scripts/azurite-cli.ps1
Comment on lines +168 to +170
else {
Write-Host "Round-trip MISMATCH!`n expected: $content`n got: $roundTrip" -ForegroundColor Red
}
Comment thread scripts/azurite-cli.ps1
Comment on lines +198 to +200
else {
Write-Host "Round-trip MISMATCH!`n expected: $value`n got: $roundTrip" -ForegroundColor Red
}
Comment thread scripts/azurite-cli.ps1
Comment on lines +221 to +224
if ($MyInvocation.InvocationName -ne '.') {
Use-Azurite
Test-AzuriteAll
}
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.

2 participants