diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-08 02:53:07 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-08 03:13:02 +0900 |
| commit | 422efcf258eb49ecd0d4de8e53adae656696ea56 (patch) | |
| tree | 5abcdd8a0636567939dd94a7a7d1cd5ba180176c /hst/config_test.go | |
| parent | 104eeecf650ba52e155ff63a4d4456a6391e961f (diff) | |
hst: check for insecure PulseAudio enablement
This is currently still a noop, but required for #26.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/config_test.go')
| -rw-r--r-- | hst/config_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hst/config_test.go b/hst/config_test.go index 6bc878a7..731a1317 100644 --- a/hst/config_test.go +++ b/hst/config_test.go @@ -53,6 +53,12 @@ func TestConfigValidate(t *testing.T) { Env: map[string]string{"TERM\x00": ""}, }}, &hst.AppError{Step: "validate configuration", Err: hst.ErrEnviron, Msg: `invalid environment variable "TERM\x00"`}}, + {"insecure pulse", &hst.Config{Enablements: hst.NewEnablements(hst.EPulse), Container: &hst.ContainerConfig{ + Home: fhs.AbsTmp, + Shell: fhs.AbsTmp, + Path: fhs.AbsTmp, + }}, &hst.AppError{Step: "validate configuration", Err: hst.ErrInsecure, + Msg: "enablement PulseAudio requires PipeWire, which is not set"}}, {"valid", &hst.Config{Container: &hst.ContainerConfig{ Home: fhs.AbsTmp, Shell: fhs.AbsTmp, |
