Skip to content

Commit 9ae3acc

Browse files
committed
add logic for kvstore disabled + remove sleep for pg tests
1 parent 514b5b7 commit 9ae3acc

1 file changed

Lines changed: 7 additions & 24 deletions

File tree

.github/workflows/splunkconf-backup-test.yml

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ jobs:
278278
elif [ "$MAJOR_VERSION" -le 9 ]; then
279279
echo "Splunk Enterprise less than 10, no PG"
280280
exit 0
281+
elif [ "${{ matrix.context_type }}" = "kvstore_disabled" ]; then
282+
echo "Splunk Enterprise KVSTORE disable, it also disable postgres"
283+
exit 0
281284
else
282285
# Check if Postgres process is running inside container
283286
echo ""
@@ -286,30 +289,10 @@ jobs:
286289
# for splunk 10.2 and newer, process name is splunk-postgres
287290
docker exec --user ${SPLUNK_USER} splunk bash -c \
288291
"ps aux 2>/dev/null | grep -i [p]ostgres | grep -v grep || echo '❌ Error : No Postgres process found'" || true
289-
echo "Waiting and redoing test"
290-
sleep 10
291-
docker exec --user ${SPLUNK_USER} splunk bash -c \
292-
"ps aux 2>/dev/null | grep -i [p]ostgres | grep -v grep || echo '❌ Error : No Postgres process found'" || true
293-
echo "Waiting and redoing test"
294-
sleep 10
295-
docker exec --user ${SPLUNK_USER} splunk bash -c \
296-
"ps aux 2>/dev/null | grep -i [p]ostgres | grep -v grep || echo '❌ Error : No Postgres process found'" || true
297-
echo "Waiting and redoing test"
298-
sleep 10
299-
docker exec --user ${SPLUNK_USER} splunk bash -c \
300-
"ps aux 2>/dev/null | grep -i [p]ostgres | grep -v grep || echo '❌ Error : No Postgres process found'" || true
301-
echo "Waiting and redoing test"
302-
sleep 10
303-
docker exec --user ${SPLUNK_USER} splunk bash -c \
304-
"ps aux 2>/dev/null | grep -i [p]ostgres | grep -v grep || echo '❌ Error : No Postgres process found'" || true
305-
echo "Waiting and redoing test"
306-
sleep 10
307-
docker exec --user ${SPLUNK_USER} splunk bash -c \
308-
"ps aux 2>/dev/null | grep -i [p]ostgres | grep -v grep || echo '❌ Error : No Postgres process found'" || true
309-
echo "Waiting 60s and redoing test"
310-
sleep 10
311-
docker exec --user ${SPLUNK_USER} splunk bash -c \
312-
"ps aux 2>/dev/null | grep -i [p]ostgres | grep -v grep || echo '❌ Error : No Postgres process found'" || true
292+
#echo "Waiting and redoing test"
293+
#sleep 10
294+
#docker exec --user ${SPLUNK_USER} splunk bash -c \
295+
#"ps aux 2>/dev/null | grep -i [p]ostgres | grep -v grep || echo '❌ Error : No Postgres process found'" || true
313296
# Check if .pgpass file exists (indicates Postgres credentials are configured)
314297
echo ""
315298
echo "--- Checking for Postgres credentials file ---"

0 commit comments

Comments
 (0)