-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-10843] Properly detect validation execution errors
The validaton logic was not using a pointer type when comparing the validation error returned from the plugin infrastructure, and thus misclassified execution errors. This change set: 1) Changes the Error() method in the API of the validation to have a pointer receiver, to prevent any implementer of Validate() to return by mistake a concrete type instead of a pointer type. 2) Adds an explicit cast in the plugin test to ensure that if a plugin Init() fails, an execution error is returned 3) Adds a test that simulates a failure in finding a plugin in the validation tests 4) Adds a test that simulates an execution error in a plugin, in the validation tests Change-Id: Ic525e91fb7dc982d4deacffc0c1bf2a49331e90a Signed-off-by: yacovm <[email protected]>
- Loading branch information
Showing
4 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters