Enable validator for test 6.3.11 in CSAF 2.1#690
Conversation
|
@georgbramm Please at least mention in the corresponding issue before you start that you want to work on that issue. So we can avoid doing the same work twice. |
|
Before enabling an existing 2.0 test for 2.1, we typically
If all these conditions are met, we enable the test, and mark it as implemented in the Readme.md. |
|
The test did not change between CSAF 2.0 and 2.1 and was to my understanding not touched by any bigger semantics changes, so the implementation should be fine. I also did not find any obvious issues, fail-fast, ... For the code coverage, I would argue that some work needs to be done. There is only a passing test case with product version The case of a) V being uppercase (like Also, there is no test coverage for multiple error cases, so a fail-fast approach vs. exhaustive error search would also pass the test suite. Also, there is no test coverage of the branch category check existing. i.e. that an architecture namend Also, and this might be in the realm of premature optimization: This regex is so simple we could try to do this with string ops, as in: test fails if string length >=2, first char is ignore-case 'v', second char is ascii digit. Even if we keep the regex, we can simplify from the standards recommendation of @georgbramm if you agree the impl looks fine, could you look into the perf optimization? Also, I'm opening a "Improve 6.3.11 test coverage" issue. Can interest you in creating the supplemental test cases (and others, if you see room for more) for this? |
Also, pointing #700 to this well-written summary |
Closes Issue for Test 6.3.11 in csaf version 2.1