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
When I tried to run multiple cucumber tests that generated and validate with an LDD, validate fails indicating it cannot find the LDD.
π΅οΈ Expected behavior
I expected the tests to work.
π To Reproduce
run mvn test
...
When execute validate command with "-t {resourceDir}/github794/ORB_35_STAR_SCANNER.xml" as arguments # cucumber.ValidateStepDefs.execute_a_validate_command(java.lang.String)
Then produced output from validate command should be similar to reported "github794" JSON report or no error reported. # cucumber.ValidateStepDefs.produced_output_from_validate_command_should_be_similar_to_reference_ref_output_value_or_no_error_reported(java.lang.String)
org.opentest4j.AssertionFailedError: NASA-PDS/pds4-information-model#794 failed. Expected: 0 errors/warnings. Actual: 1 ==> expected: <0> but was: <1>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:563)
at cucumber.ValidateStepDefs.produced_output_from_validate_command_should_be_similar_to_reference_ref_output_value_or_no_error_reported(ValidateStepDefs.java:264)
at β½.produced output from validate command should be similar to reported "github794" JSON report or no error reported.(file:///Users/jpadams/proj/pds/pdsen/workspace/pds4-information-model/model-lddtool/src/test/resources/features/validate.feature:9)
from the output report:
...
"parameters": {
"targets": "[file:/Users/jpadams/proj/pds/pdsen/workspace/pds4-information-model/model-lddtool/src/test/resources/github794/ORB_35_STAR_SCANNER.xml]",
"userSpecifiedSchemas": "[file:/Users/jpadams/proj/pds/pdsen/workspace/pds4-information-model/model-lddtool/target/test/github794/PDS4_VIKINGLANDER_1N00_1000.xsd, file:/Users/jpadams/proj/pds/pdsen/workspace/pds4-information-model/model-lddtool/target/test/github794/export/PDS4_PDS_1N00.xsd]",
"userSpecifiedSchematrons": "[file:/Users/jpadams/proj/pds/pdsen/workspace/pds4-information-model/model-lddtool/target/test/github794/PDS4_VIKINGLANDER_1N00_1000.sch, file:/Users/jpadams/proj/pds/pdsen/workspace/pds4-information-model/model-lddtool/target/test/github794/export/PDS4_PDS_1N00.sch]",
"severityLevel": "WARNING",
"recurseDirectories": "true",
"fileFiltersUsed": "[*.xml, *.XML]",
"dataContentValidation": "off",
"productLevelValidation": "on",
"maxErrors": "100000",
"registeredContextsFile": "/Users/jpadams/proj/pds/pdsen/workspace/pds4-information-model/model-lddtool/src/test/resources/conf/registered_context_products.json"
},
"productLevelValidationResults": [
{
"status": "FAIL",
"label": "file:/Users/jpadams/proj/pds/pdsen/workspace/pds4-information-model/model-lddtool/src/test/resources/github794/ORB_35_STAR_SCANNER.xml",
"messages": [
{
"severity": "ERROR",
"type": "error.label.schema",
"line": 73,
"column": 52,
"message": "cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'vikinglander:Viking_Lander_Parameters'."
}
],
...
verify that the schema/schematrons noted in the output from validate actually exist on the file system and should work.
can also confirm when these tests are run individually, they work just fine.
Checked for duplicates
Yes - I've already checked
π Describe the bug
When I tried to run multiple cucumber tests that generated and validate with an LDD, validate fails indicating it cannot find the LDD.
π΅οΈ Expected behavior
I expected the tests to work.
π To Reproduce
mvn test
π Version of Software Used
No response
π©Ί Test Data / Additional context
No response
π¦ Related requirements
Blocked by NASA-PDS/validate#1105
βοΈ Engineering Details
No response
The text was updated successfully, but these errors were encountered: