c7b72c
From 4692f1032b7954d56f76f243283d519e8453ff58 Mon Sep 17 00:00:00 2001
c7b72c
From: Miroslav Lisik <mlisik@redhat.com>
c7b72c
Date: Tue, 29 Nov 2022 17:46:08 +0100
c7b72c
Subject: [PATCH 1/3] fix smoke test
c7b72c
c7b72c
---
c7b72c
 pcs_test/smoke.sh.in | 5 +++--
c7b72c
 1 file changed, 3 insertions(+), 2 deletions(-)
c7b72c
c7b72c
diff --git a/pcs_test/smoke.sh.in b/pcs_test/smoke.sh.in
c7b72c
index b845b6d6..e9466efd 100755
c7b72c
--- a/pcs_test/smoke.sh.in
c7b72c
+++ b/pcs_test/smoke.sh.in
c7b72c
@@ -52,10 +52,11 @@ python3 -c "import json; import sys; json.load(open('${output_file}'))['status']
c7b72c
 
c7b72c
 # make sure socket is not accessible by all users
c7b72c
 useradd testuser
c7b72c
-su testuser
c7b72c
-! curl --unix-socket "${pcsd_socket_path}" http:/something/api/v1/resource-agent-get-agents-list/v1 --data '{}'
c7b72c
+su testuser -c '! curl --unix-socket '"${pcsd_socket_path}"' http:/something/api/v1/resource-agent-get-agents-list/v1 --data '\''{}'\'''
c7b72c
 
c7b72c
 # cleanup
c7b72c
 rm "${token_file}"
c7b72c
 rm "${output_file}"
c7b72c
+pcs cluster destroy --force
c7b72c
+userdel -r testuser
c7b72c
 exit 0
c7b72c
-- 
c7b72c
2.38.1
c7b72c