Repository navigation
Network Cloud testing updates for better response checks - #10598
Conversation
|
Thank you for your contribution idanielsteven! We will review the pull request and get back to you soon. |
|
Hi idanielsteven, |
There was a problem hiding this comment.
🟡 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
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |

🤖 PR Validation — ️✔️ All clear
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
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install azdevrequired)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.jsonautomatically.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.