-
Notifications
You must be signed in to change notification settings - Fork 213
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 detailed validation of metadata-server responses #2509
Conversation
| otherwise = Left $ "Length must be no more than " ++ show maxLen ++ " bytes, got " ++ show len | ||
where | ||
len = BS.length $ unAssetLogo logo | ||
maxLen = 87400 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maxLen
should be 65535 (64KB) here right? 87400 is the max-length of the base64-encoded data payload.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
b168fd6
to
066e6a2
Compare
066e6a2
to
53ca900
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Not sure what's missing from the draft PR ?
f9a4209
to
3ba56ce
Compare
3ba56ce
to
4f2119b
Compare
4f2119b
to
c6a0486
Compare
It will only print the logs if the test fails.
d39e901
to
a5cdbbe
Compare
a5cdbbe
to
7e3ea34
Compare
It was still draft because there were test failures, which I eventually found were because I didn't update the mock metadata server after changing the types. bors r+ |
2509: Add detailed validation of metadata-server responses r=rvl a=rvl ### Issue Number ADP-413 ### Overview - Add detailed validation of metadata-server responses - Adds more json parsing and validation tests - Fixes the mock metadata server so that it supports invalid metadata, and only returns properties requested, rather than all properties available. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
Build failed: It failed on weeder, doh! Everything else passed. #expected |
…lidation Add detailed validation of metadata-server responses
Issue Number
ADP-413
Overview