How do I resolve pantherlog errors when I try to run multiple schema tests?
Issue
When trying to test schemas with pantherlog, I get the following error message:
Error: Not equal: expected: "" actual : "Custom.SampleLog.V1" Diff: --- Expected +++ Actual @@ -1 +1 @@ - +Custom.SampleLog.V1
Resolution
To resolve this issue:
- Make sure your schema test does not attempt to include multiple tests, like this:
input: | 1,staging 2,production
- Use
pantherlog
to run multiple tests at once using the following format:
$ pantherlog test schema.yml schema_tests.yml other_schema_tests.yml
Also see How can I write multiple pantherlog tests for a schema?
If you experience this error, but the symptom listed here does not apply to your use case, please contact the Panther Support team.
Cause
This can occur if your schema test includes multiple tests formatted incorrectly.