Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run >1 cucumber test with LDDs #866

Open
jordanpadams opened this issue Jan 10, 2025 · 0 comments
Open

Unable to run >1 cucumber test with LDDs #866

jordanpadams opened this issue Jan 10, 2025 · 0 comments
Assignees
Labels

Comments

@jordanpadams
Copy link
Member

jordanpadams commented Jan 10, 2025

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

  1. 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)
  1. 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'."
        }
      ],
...
  1. verify that the schema/schematrons noted in the output from validate actually exist on the file system and should work.
  2. can also confirm when these tests are run individually, they work just fine.

πŸ“š Version of Software Used

No response

🩺 Test Data / Additional context

No response

πŸ¦„ Related requirements

Blocked by NASA-PDS/validate#1105

βš™οΈ Engineering Details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ToDo
Status: ToDo
Development

No branches or pull requests

1 participant