From d4f622da7d81a9e92fc6c67fa5eec3c8e3172b93 Mon Sep 17 00:00:00 2001 From: Boaz Shuster Date: Thu, 6 Oct 2022 14:08:01 +0300 Subject: Return error in podman system service if URI scheme is not unix/tcp Signed-off-by: Boaz Shuster --- test/system/251-system-service.bats | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/system') diff --git a/test/system/251-system-service.bats b/test/system/251-system-service.bats index 197d1cb18..3af42b455 100644 --- a/test/system/251-system-service.bats +++ b/test/system/251-system-service.bats @@ -14,6 +14,14 @@ function teardown() { basic_teardown } +@test "podman systerm service returns error" { + skip_if_remote "podman system service unavailable over remote" + run_podman 125 system service localhost:9292 + is "$output" "Error: API Service endpoint scheme \"localhost\" is not supported. Try tcp://localhost:9292 or unix:/localhost:9292" + + run_podman 125 system service myunix.sock + is "$output" "Error: API Service endpoint scheme \"\" is not supported. Try tcp://myunix.sock or unix:/myunix.sock" +} @test "podman-system-service containers survive service stop" { skip_if_remote "podman system service unavailable over remote" -- cgit v1.2.3-54-g00ecf