-
Notifications
You must be signed in to change notification settings - Fork 24
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 testcase results #1055
Add testcase results #1055
Conversation
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.
Looks good to me.
Looks fine. |
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.
I created an update to zonemaster/zonemaster-engine#1144 with translated test case descriptions. It works to get the them translated in GUI and in zmb
, but there is some coding issue. The PO file is in UTF-8, but when the descriptions are presented they are taken to be some 8 bit character set and character encoding:
zmb --server http://127.0.0.1:5000 get_test_results --test-id 452b0009a1322298 --lang sv | jq
(...)
{
"testcase": "ADDRESS02",
"message": "Bakåtuppslagning (PTR) finns för varje namnserveradress.\n",
"level": "INFO",
"module": "ADDRESS"
},
(...)
"ADDRESS02": "Bakåtuppslagning (PTR) finns för varje namnserveradress.",
(...)
In the PO file the msgid for both the message and the test case description are identical. Note the corrupted "å" and "ö".
API.pm should also be updated. |
Oh I'll look into it, thanks for having tested that.
Documentation is planned. |
This is fixed. |
3e0cc4d
to
c7fbe68
Compare
done. |
@blacksponge, is this PR still a draft? |
No I marked it ready for review. |
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.
Just two minor comments, else ready to approve.
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
Purpose
Make test case available in test result.
Context
Related PR: zonemaster/zonemaster-gui#341
Depends on: zonemaster/zonemaster-engine#1144
Changes
testcase
field in the object of the results array containing test case ids.testcase_descriptions
to map test case ids to the translated test case descriptions.How to test this PR