Skip to content

Commit

Permalink
Merge pull request #15439 from rhatdan/service
Browse files Browse the repository at this point in the history
Fix documentation of use of tcp connections
  • Loading branch information
openshift-merge-robot committed Aug 24, 2022
2 parents 0f92cf2 + 8b1e88b commit 082388a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/source/markdown/podman-system-service.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ podman\-system\-service - Run an API service

## DESCRIPTION
The **podman system service** command creates a listening service that will answer API calls for Podman. You may
optionally provide an endpoint for the API in URI form. For example, *unix:///tmp/foobar.sock* or *tcp:localhost:8080*.
optionally provide an endpoint for the API in URI form. For example, *unix:///tmp/foobar.sock* or *tcp://localhost:8080*.
If no endpoint is provided, defaults will be used. The default endpoint for a rootful
service is *unix:///run/podman/podman.sock* and rootless is *unix://$XDG_RUNTIME_DIR/podman/podman.sock* (for
example *unix:///run/user/1000/podman/podman.sock*)
Expand Down
2 changes: 1 addition & 1 deletion test/apiv2/python/rest_api/fixtures/api_testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def setUpClass(cls):

APITestCase.podman = Podman()
APITestCase.service = APITestCase.podman.open(
"system", "service", "tcp:localhost:8080", "--time=0"
"system", "service", "tcp://localhost:8080", "--time=0"
)
# give the service some time to be ready...
time.sleep(2)
Expand Down
2 changes: 1 addition & 1 deletion test/apiv2/python/rest_api/v1_test_rest_v1_0_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def setUpClass(cls):
podman(),
"system",
"service",
"tcp:localhost:8080",
"tcp://localhost:8080",
"--log-level=debug",
"--time=0",
],
Expand Down
4 changes: 2 additions & 2 deletions test/system/272-system-connection.bats
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ $c2[ ]\+tcp://localhost:54321[ ]\+true" \
# we need for the server.
${PODMAN%%-remote*} --root ${PODMAN_TMPDIR}/root \
--runroot ${PODMAN_TMPDIR}/runroot \
system service -t 99 tcp:localhost:$_SERVICE_PORT &
system service -t 99 tcp://localhost:$_SERVICE_PORT &
_SERVICE_PID=$!
wait_for_port localhost $_SERVICE_PORT

_run_podman_remote info --format '{{.Host.RemoteSocket.Path}}'
is "$output" "tcp:localhost:$_SERVICE_PORT" \
is "$output" "tcp://localhost:$_SERVICE_PORT" \
"podman info works, and talks to the correct server"

_run_podman_remote info --format '{{.Store.GraphRoot}}'
Expand Down
2 changes: 1 addition & 1 deletion test/system/900-ssh.bats
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function _run_podman_remote() {

${PODMAN%%-remote*} --root ${PODMAN_TMPDIR}/root \
--runroot ${PODMAN_TMPDIR}/runroot \
system service -t 99 tcp:localhost:$_SERVICE_PORT &
system service -t 99 tcp://localhost:$_SERVICE_PORT &
_SERVICE_PID=$!
wait_for_port localhost $_SERVICE_PORT

Expand Down

0 comments on commit 082388a

Please sign in to comment.