-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add test for invalid task metadata #120
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #120 +/- ##
=======================================
Coverage 50.23% 50.23%
=======================================
Files 5 5
Lines 211 211
=======================================
Hits 106 106
Misses 105 105 Continue to review full report at Codecov.
|
I suspect that there is no check for this so it falls back to the regular metadata checks. I'd start with adding all missing fields. |
Sure, I can do that, but do we want metadata-json-lint to also correctly validate task metadata files? Or should that be a separate new feature request? |
AFAIK this gem has never done anything with task metadata files. Given all technologies are in here to make it happen, I can see it being in scope for this gem but it would be a new feature request. |
That makes sense. For now, I've changed the test to use a module metadata file which shows the same problem. |
This looks like a valid reproducer. Now all we need is someone to write a patch to make the tests pass. |
Add test for task metadata file with invalid escape character.
This test is expected to fail on invalid json, but instead it fails on invalid schema - the task metadata files have a different schema. I'm not sure what exactly happens in
pdk validate
when no error is raised on this task metadata json.