-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Isolate config logic and add e2e config tests
This commit puts the serialised version of the config file into one single Rust file. This file is put under a CODEOWNERS rule so that it is carefully check for breaking changes. It also adds one end-to-end config test checking the behaviour of various fields. Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
- Loading branch information
Showing
14 changed files
with
291 additions
and
239 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# The content of the config.rs file should not change in a breaking way. | ||
# See https://github.com/parallaxsecond/parsec/issues/393 for details. | ||
src/utils/config.rs @parallaxsecond/admin |
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
28 changes: 28 additions & 0 deletions
28
e2e_tests/tests/all_providers/config/tomls/various_field_check.toml
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[core_settings] | ||
allow_root = true | ||
thread_pool_size = 2 | ||
idle_listener_sleep_duration = 12 | ||
log_level = "trace" | ||
log_timestamp = true | ||
# 1 KiB max for requests | ||
body_len_limit = 1024 | ||
log_error_details = true | ||
# 1 KiB max for responses | ||
buffer_size_limit = 1024 | ||
|
||
[listener] | ||
listener_type = "DomainSocket" | ||
timeout = 202 | ||
socket_path = "/tmp/toto.sock" | ||
|
||
[authenticator] | ||
auth_type = "Direct" | ||
|
||
[[key_manager]] | ||
name = "I-want-to-speak-to-the-manager" | ||
manager_type = "OnDisk" | ||
store_path = "/tmp/the-mappings" | ||
|
||
[[provider]] | ||
provider_type = "MbedCrypto" | ||
key_info_manager = "I-want-to-speak-to-the-manager" |
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
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
Oops, something went wrong.