-
Notifications
You must be signed in to change notification settings - Fork 38
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
Validate config before usage #1805
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.
tests have died
@@ -26,7 +28,7 @@ func (x *Config) Storages() []*storage.Config { | |||
switch typ { | |||
case "": | |||
return ss | |||
case "fstree", "blobovnicza": | |||
case fstree.Type, blobovniczatree.Type: |
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.
maybe "TypeName"? i read it as a type
name, not a var
name, and was confused for a second about how that even was compiled and whether it is a type switch
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.
The intention was to make it similar to a Type
method for a storage component.
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
Codecov Report
@@ Coverage Diff @@
## master #1805 +/- ##
==========================================
- Coverage 33.45% 30.80% -2.66%
==========================================
Files 352 372 +20
Lines 23969 26105 +2136
==========================================
+ Hits 8020 8041 +21
- Misses 15283 17388 +2105
- Partials 666 676 +10
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
We need this for #1770 .
Related #1764.
The list of checks will be extended. Currently only storage section is supported, as the most important one.