Skip to content

Updates unit tests based on recent schema changes#6393

Merged
wbreza merged 1 commit into
Azure:mainfrom
wbreza:fix-yaml-validation-test
Dec 17, 2025
Merged

Updates unit tests based on recent schema changes#6393
wbreza merged 1 commit into
Azure:mainfrom
wbreza:fix-yaml-validation-test

Conversation

@wbreza

@wbreza wbreza commented Dec 17, 2025

Copy link
Copy Markdown
Contributor

azure.yaml schema now supports additional properties. Test started failing since it takes a runtime dependency against the published schema that was recently changed.

Updates tests case to take schema changes into account.

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 updates a unit test in the azure.yaml schema validation tool to reflect recent changes to the published azure.yaml schema. The schema now allows additional properties at the root level ("additionalProperties": true), which means the previous test case that validated rejection of unknown fields would no longer fail. The test has been appropriately updated to verify a different schema validation scenario: missing the required name field.

Key Changes:

  • Updated test data from an unknown field (not_a_schema_field: true) to a minimal YAML with no required fields (some_field: value)
  • Updated assertion from checking for "additional properties not allowed" to "missing property 'name'"
  • Added clear comment explaining the test validates missing required field

@weikanglim

Copy link
Copy Markdown
Contributor

/check-enforcer override

@wbreza
wbreza merged commit c3d4edd into Azure:main Dec 17, 2025
19 of 24 checks passed
@wbreza
wbreza deleted the fix-yaml-validation-test branch December 17, 2025 20:35
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