You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current implementation of java tests run against a snapshot of the schema files, shipped with org.cyclinedx java package.
This is undesired and error-prone, as changes to the schema files in this repo are not checked against the schema example files.
Therefore, most java checks in pull requests are just bogus results without any meaning.
This must change ASAP.
Use cases:
a PullRequest is opened, that modifies a schema file. tests must run based on these changes, not some snapshots.
a PullRequest is opened, that modify some test-resources. tests must run based on these changes.
acceptance criteria
all test run against the actual schema files in this repo, not against any other snapshots
optional, but preferred: tests run offline, do not load any data from external sources
echo">> validate $(realpath --relative-to="$PWD""$FILE") as ${MESSAGE} of ${SCHEMA_FILE}">&2
# this test method is a bare minimum, and it might not detect all kinds of malformed input.
# could be improved by utilizing protoc -- see https://github.com/CycloneDX/specification/pull/385/commits/8db0967c11cb913ac3c7a9a037159338df3f3bd9
Current implementation of java tests run against a snapshot of the schema files, shipped with
org.cyclinedxjava package.This is undesired and error-prone, as changes to the schema files in this repo are not checked against the schema example files.
Therefore, most java checks in pull requests are just bogus results without any meaning.
This must change ASAP.
Use cases:
acceptance criteria
scope
valid-*.{json,xml,textproto}should pass schema validationinvalid-*.{json,xml,textproto}should fail schema validationtargets
specification/tools/src/test/java/org/cyclonedx/schema/JsonSchemaVerificationTest.java
Lines 60 to 61 in d37a107
specification/tools/src/test/java/org/cyclonedx/schema/XmlSchemaVerificationTest.java
Lines 64 to 65 in d37a107
out of scope (since already fixed/done)
specification/tools/src/test/php/json-schema-functional-tests.php
Lines 15 to 16 in d37a107
specification/tools/src/test/php/json-schema-lint-tests.php
Lines 5 to 6 in d37a107
specification/tools/src/test/php/json-schema-lint-tests.php
Line 16 in d37a107
specification/tools/src/test/php/xml-schema-functional-tests.php
Lines 15 to 16 in d37a107
specification/tools/src/test/js/json-schema-functional-tests.js
Lines 24 to 25 in 2003555
specification/tools/src/test/js/json-schema-lint-tests.js
Line 16 in 2003555
specification/tools/src/test/proto/test.sh
Lines 104 to 130 in 19a1530
caused by #255
related: https://cyclonedx.slack.com/archives/G01PMU9ERJA/p1687363757137109