-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix osd-dev test pt1 - skip comparing protobuf parameters
OSD-dev was failing for a few reason. First the test is expecting to use Go 1.16, so we updated the osd-dev image to use 1.16. Secondly, there is issue with mock comparing structs generated by protobuf. The new protobuf version has extra hidden fields that causes comparison to fail even if the values are the same. Similar issues in stretchr/testify#758. For the fix, we move all of the mock request using protobuf to use mock.Any() as the parameters to bypass the comparison. This should be discussed with other contributors if there are other possibilities. Testing: local testing passes this issue Signed-off-by: dahuang <[email protected]>
- Loading branch information
1 parent
4c0d363
commit 9ac5090
Showing
5 changed files
with
20 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM quay.io/openstorage/osd-dev-base:1.14 | ||
FROM docker.io/openstorage/osd-dev-base:1.16 | ||
MAINTAINER [email protected] | ||
|
||
EXPOSE 9005 | ||
|
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