test/inspect.bats: fix SC2086
Brought to you by
shellcheck -f diff *.bats | patch -p1
@@ -12,7 +12,7 @@ function teardown() {
@test "info inspect" {
start_crio
- out=$(echo -e "GET /info HTTP/1.1\r\nHost: crio\r\n" | socat - UNIX-CONNECT:$CRIO_SOCKET)
+ out=$(echo -e "GET /info HTTP/1.1\r\nHost: crio\r\n" | socat - UNIX-CONNECT:"$CRIO_SOCKET")
echo "$out"
[[ "$out" == *"\"cgroup_driver\":\"$CONTAINER_CGROUP_MANAGER\""* ]]
[[ "$out" == *"\"storage_root\":\"$TESTDIR/crio\""* ]]
@@ -29,7 +29,7 @@ function teardown() {
[ "$status" -eq 0 ]
ctr_id="$output"
- out=$(echo -e "GET /containers/$ctr_id HTTP/1.1\r\nHost: crio\r\n" | socat - UNIX-CONNECT:$CRIO_SOCKET)
+ out=$(echo -e "GET /containers/$ctr_id HTTP/1.1\r\nHost: crio\r\n" | socat - UNIX-CONNECT:"$CRIO_SOCKET")
[[ "$out" == *"\"sandbox\":\"$pod_id\""* ]]
[[ "$out" == *"\"image\":\"quay.io/crio/redis:alpine\""* ]]
[[ "$out" == *"\"image_ref\":\"$REDIS_IMAGEREF\""* ]]
@@ -53,6 +53,6 @@ function teardown() {
@test "ctr inspect not found" {
start_crio
- out=$(echo -e "GET /containers/notexists HTTP/1.1\r\nHost: crio\r\n" | socat - UNIX-CONNECT:$CRIO_SOCKET)
+ out=$(echo -e "GET /containers/notexists HTTP/1.1\r\nHost: crio\r\n" | socat - UNIX-CONNECT:"$CRIO_SOCKET")
[[ "$out" == *"can't find the container with id notexists"* ]]
}
