Skip to content

Network Cloud testing updates for better response checks - #10598

Merged
xuming-ms merged 19 commits into
Azure:mainfrom
cliffparsons:main
Nov 19, 2026
Merged

xuming-ms merged 19 commits into
Azure:mainfrom
cliffparsons:main

Conversation

@idanielsteven

@idanielsteven idanielsteven commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ️✔️ All clear

Breaking Changes Suppressions
️✔️ None ️✔️ None

Network Cloud testing updates for better response checks. Includes broader sanitization of recordings and test values.

aaz: N/A


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install azdev required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Nov 17, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution idanielsteven! We will review the pull request and get back to you soon.

@x-engineering-agent

Copy link
Copy Markdown

Hi idanielsteven,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in pyproject.toml (or setup.py, if the extension has not migrated yet) as well.

@idanielsteven
idanielsteven marked this pull request as ready for review November 17, 2026 16:38
Copilot AI balanced review requested due to automatic review settings November 17, 2026 16:38

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.

🟡 Changes recommended

Two test assertions remain broken: volume playback compares mismatched subscription IDs, and the cloud services network comparison treats the expected port as a string instead of an integer.

2 open issues
What changed in this PR

This PR strengthens response validation in the Network Cloud extension’s scenario tests without changing production commands.

Changes:

  • Adds an attr() helper to parse configured JSON and shorthand expectations.
  • Replaces manual or empty checks with explicit response assertions and forwards checks through command helpers.
  • Updates configuration values and two cluster-manager recordings to match scenario expectations.

Paths are relative to src/networkcloud/azext_networkcloud/tests/latest/.

File Description
utils/​output_checks.py Adds structured expectation parsing.
test_volumes.py Checks volume properties and storage appliance IDs.
test_virtualmachineconsole.py Validates console settings after create and update.
test_virtualmachine.py Checks VM properties and operation status.
test_trunkednetwork.py Validates VLANs and isolation-domain IDs.
test_storageappliance.py Checks appliance properties and command output.
test_racksku.py Converts rack SKU assertions to standard checks.
test_rack.py Validates rack location and serial number.
test_metricsconfiguration.py Checks collection interval and enabled metrics.
test_l3network.py Checks network properties and aligns parameter names.
test_l2network.py Checks isolation-domain properties and aligns parameter names.
test_kubernetesversion.py Adds update and show response checks.
test_kubernetesclusterfeature.py Validates feature versions and required state.
test_kubernetesclusteragentpool.py Checks pool configuration and update responses.
test_kubernetescluster.py Validates cluster configuration and operation status.
test_clustermanager.py Checks manager defaults, properties, and relay status.
test_clustermanager_identity.py Validates identity-type transitions.
test_cluster.py Adds reusable rack-definition checks and operation assertions.
test_cloudservicesnetwork.py Checks egress endpoints and storage options.
test_bmckeyset.py Validates updated keyset properties.
test_baremetalmachinekeyset.py Adds scenario-specific keyset checks.
test_baremetalmachine.py Checks machine properties and action responses.
test_accessbridge.py Moves response expectations into configuration.
recordings/​test_clustermanager_scenario6.yaml Aligns recorded relay-operation resource-group IDs.
recordings/​test_clustermanager_scenario5.yaml Aligns the recorded create request’s resource-group ID.
config.ini Adds response expectations and standardizes value formatting.

Review effort: Balanced

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@xuming-ms
xuming-ms merged commit 14c51ee into Azure:main Nov 19, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-quality-productivity-squad Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Network

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants