test: expand Core 2.0 conformance pack edge cases#61
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR expands the Core 2.0 conformance pack from 3 to 10 cases with additional negative and edge-case scenarios.
The goal is to increase confidence in the experimental conformance path, JSON report output, CI validation, and partner-facing test coverage.
Added
New conformance cases under
testdata/core_2_conformance/:missing_required_field_errormalformed_json_errorunknown_reason_code_errorunsupported_hash_algorithm_errorwrong_profile_failinside_payload_mutation_detectedoutside_metadata_ignoredUpdated
.github/workflows/ci.ymlREADME.mdcmd/digiemu/experimental_json_test.gointernal/schema/conformance_report_schema_test.gointernal/schema/verify_result_v2_schema_test.gotestdata/core_2_conformance/report_expected_basic.jsonNew Expected Result
The experimental conformance CLI now reports:
The JSON report now includes:
{ "status": "PASS", "total": 10, "passed": 10, "failed": 0 }Notes
The current conformance runner validates expected verify-result documents structurally. Some new cases are representative partner test vectors for expected implementation behavior, not full runtime verification semantics yet.
UNKNOWN_REASON_CODEwas not added because the current schema only allows enumerated reason codes. The corresponding case uses a schema-compatibleINTERNAL_ERRORmapping.Validation
go test ./...passes--jsonpassesCompatibility