Skip to content
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

Reject configuration with unknown fields #2981

Merged
merged 2 commits into from
Nov 5, 2024

node, ir: validate config for unknown fields

652e230
Select commit
Loading
Failed to load commit list.
Merged

Reject configuration with unknown fields #2981

node, ir: validate config for unknown fields
652e230
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Oct 31, 2024 in 0s

86.11% of diff hit (target 22.88%)

View this Pull Request on Codecov

86.11% of diff hit (target 22.88%)

Annotations

Check warning on line 77 in cmd/internal/configvalidator/validate.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/internal/configvalidator/validate.go#L76-L77

Added lines #L76 - L77 were not covered by tests

Check warning on line 92 in cmd/internal/configvalidator/validate.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/internal/configvalidator/validate.go#L91-L92

Added lines #L91 - L92 were not covered by tests

Check warning on line 35 in cmd/neofs-ir/defaults.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/neofs-ir/defaults.go#L33-L35

Added lines #L33 - L35 were not covered by tests

Check warning on line 40 in cmd/neofs-ir/defaults.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/neofs-ir/defaults.go#L38-L40

Added lines #L38 - L40 were not covered by tests

Check warning on line 43 in cmd/neofs-ir/defaults.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/neofs-ir/defaults.go#L43

Added line #L43 was not covered by tests

Check warning on line 61 in cmd/neofs-node/config/config.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/neofs-node/config/config.go#L61

Added line #L61 was not covered by tests