Skip to content

Fileshares testing update#29307

Merged
NoriZC merged 8 commits intoAzure:mainfrom
ankushbindlish2:fileshares-testing-update
Mar 24, 2026
Merged

Fileshares testing update#29307
NoriZC merged 8 commits intoAzure:mainfrom
ankushbindlish2:fileshares-testing-update

Conversation

@ankushbindlish2
Copy link
Copy Markdown
Member

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

ankushbindlish2 and others added 8 commits July 17, 2025 00:00
Copilot AI review requested due to automatic review settings March 24, 2026 06:33
@azure-client-tools-bot-prd
Copy link
Copy Markdown

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 updates the FileShare AutoRest test suites to be more self-sufficient by ensuring a target file share exists before running Get-* / snapshot tests, and by cleaning up created resources afterward.

Changes:

  • Added BeforeAll setup in Get-AzFileShare.Tests.ps1 to create fileShareName01 when missing, and AfterAll teardown to remove it.
  • Added BeforeAll setup in Get-AzFileShareSnapshot.Tests.ps1 to ensure the parent share exists, plus AfterAll teardown to delete snapshots and the share.
  • Updated Get-AzFileShare.Recording.json to include the additional setup/teardown HTTP interactions.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/FileShare/FileShare.Autorest/test/Get-AzFileShareSnapshot.Tests.ps1 Adds suite-level setup/teardown around snapshot tests (ensure share exists; cleanup snapshots/share).
src/FileShare/FileShare.Autorest/test/Get-AzFileShare.Tests.ps1 Adds suite-level setup/teardown around Get tests (ensure share exists; cleanup share).
src/FileShare/FileShare.Autorest/test/Get-AzFileShare.Recording.json Updates recordings to reflect the new setup/teardown calls for playback mode.

@NoriZC
Copy link
Copy Markdown
Contributor

NoriZC commented Mar 24, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@NoriZC NoriZC merged commit 6a700a7 into Azure:main Mar 24, 2026
15 of 16 checks passed
notyashhh pushed a commit that referenced this pull request Mar 24, 2026
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.

4 participants