Skip to content

Commit

Permalink
ci/config.toml: Add Parsec socket path
Browse files Browse the repository at this point in the history
Specify the socket path '/tmp/parsec.sock' in the test config.toml
used in parsec.

This replicates the same testing environment as the parsec-tool
(https://github.com/parallaxsecond/parsec-tool/blob/0.7.0/tests/test_config.toml#L10)
and avoids depending on the default for testing.

Signed-off-by: Tomás González <[email protected]>
  • Loading branch information
tgonzalezorlandoarm committed Dec 18, 2023
1 parent d67ee96 commit c0bd285
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions ci/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ sleep 5
# Ownership has already been taken with "tpm_pass".
tpm2_startup -T mssim

# Create the Parsec socket directory. This must be the default one.
mkdir /run/parsec

# Install and run Parsec
git clone --branch 1.3.0 https://github.com/parallaxsecond/parsec
pushd parsec
Expand Down
1 change: 1 addition & 0 deletions ci/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ 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 = "UnixPeerCredentials"
Expand Down

0 comments on commit c0bd285

Please sign in to comment.