Skip to content

Commit

Permalink
tests: Fix selinux permissions when running tests
Browse files Browse the repository at this point in the history
When running the valkey tests, mounting the configuration file inside the
container fails because of selinux.
Add the `:z` option to mount it with correct permissions inside the container.

Signed-off-by: Heathcliff <[email protected]>
  • Loading branch information
heathcliff26 committed Dec 12, 2024
1 parent 7538881 commit 4377127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/storage/valkey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestValkeySentinelBackend(t *testing.T) {
})

err = utils.ExecCRI("run", "--name", "fleetlock-valkey-sentinel-sentinel", "-d", "--net", "host",
"-v", "./testdata/valkey-sentinel.conf:/config/sentinel.conf", "--userns=keep-id",
"-v", "./testdata/valkey-sentinel.conf:/config/sentinel.conf:z", "--userns=keep-id",
"docker.io/valkey/valkey:latest",
"/config/sentinel.conf", "--sentinel",
)
Expand Down

0 comments on commit 4377127

Please sign in to comment.