-
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.
Add e2e_tests to cover different configurations for serial_number and…
… slot_number Signed-off-by: Mohamed Omar Asaker <mohamed.omarasaker@arm.com>
- Loading branch information
1 parent
72b07b2
commit ae0f507
Showing
5 changed files
with
129 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
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
e2e_tests/tests/all_providers/config/tomls/serial_number_only.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,31 @@ | ||
[core_settings] | ||
# The CI already timestamps the logs | ||
log_timestamp = false | ||
log_error_details = true | ||
|
||
# The container runs the Parsec service as root, so make sure we disable root | ||
# checks. | ||
allow_root = true | ||
|
||
[listener] | ||
listener_type = "DomainSocket" | ||
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing | ||
# that the service does not hang for very big values of body or authentication length. | ||
timeout = 3000 # in milliseconds | ||
socket_path = "/tmp/parsec.sock" | ||
|
||
[authenticator] | ||
auth_type = "Direct" | ||
|
||
[[key_manager]] | ||
name = "sqlite-manager" | ||
manager_type = "SQLite" | ||
database_path = "./kim-mappings/sqlite/sqlite-key-info-manager.sqlite3" | ||
|
||
[[provider]] | ||
provider_type = "Pkcs11" | ||
key_info_manager = "sqlite-manager" | ||
library_path = "/usr/local/lib/softhsm/libsofthsm2.so" | ||
user_pin = "123456" | ||
# The serial number optional field is going to replace the following line with a valid number | ||
# serial_number |
31 changes: 31 additions & 0 deletions
31
e2e_tests/tests/all_providers/config/tomls/slot_number_only.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,31 @@ | ||
[core_settings] | ||
# The CI already timestamps the logs | ||
log_timestamp = false | ||
log_error_details = true | ||
|
||
# The container runs the Parsec service as root, so make sure we disable root | ||
# checks. | ||
allow_root = true | ||
|
||
[listener] | ||
listener_type = "DomainSocket" | ||
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing | ||
# that the service does not hang for very big values of body or authentication length. | ||
timeout = 3000 # in milliseconds | ||
socket_path = "/tmp/parsec.sock" | ||
|
||
[authenticator] | ||
auth_type = "Direct" | ||
|
||
[[key_manager]] | ||
name = "sqlite-manager" | ||
manager_type = "SQLite" | ||
database_path = "./kim-mappings/sqlite/sqlite-key-info-manager.sqlite3" | ||
|
||
[[provider]] | ||
provider_type = "Pkcs11" | ||
key_info_manager = "sqlite-manager" | ||
library_path = "/usr/local/lib/softhsm/libsofthsm2.so" | ||
user_pin = "123456" | ||
# The slot_number optional field is going to replace the following line with a valid number | ||
# slot_number |
33 changes: 33 additions & 0 deletions
33
e2e_tests/tests/all_providers/config/tomls/slot_numbers_mismatch.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,33 @@ | ||
[core_settings] | ||
# The CI already timestamps the logs | ||
log_timestamp = false | ||
log_error_details = true | ||
|
||
# The container runs the Parsec service as root, so make sure we disable root | ||
# checks. | ||
allow_root = true | ||
|
||
[listener] | ||
listener_type = "DomainSocket" | ||
# The timeout needs to be smaller than the test client timeout (five seconds) as it is testing | ||
# that the service does not hang for very big values of body or authentication length. | ||
timeout = 3000 # in milliseconds | ||
socket_path = "/tmp/parsec.sock" | ||
|
||
[authenticator] | ||
auth_type = "Direct" | ||
|
||
[[key_manager]] | ||
name = "sqlite-manager" | ||
manager_type = "SQLite" | ||
database_path = "./kim-mappings/sqlite/sqlite-key-info-manager.sqlite3" | ||
|
||
[[provider]] | ||
provider_type = "Pkcs11" | ||
key_info_manager = "sqlite-manager" | ||
library_path = "/usr/local/lib/softhsm/libsofthsm2.so" | ||
user_pin = "123456" | ||
# A dummy slot_number | ||
slot_number=12345678 | ||
# The serial number optional field is going to replace the following line with a valid number | ||
# serial_number |