Files
steampipe/tests/acceptance/test_files/settings.bats
2023-09-08 12:10:18 +05:30

17 lines
461 B
Bash

load "$LIB_BATS_ASSERT/load.bash"
load "$LIB_BATS_SUPPORT/load.bash"
@test "verify steampipe_server_settings table" {
run steampipe query "select * from steampipe_server_settings"
assert_success
}
function teardown_file() {
# list running processes
ps -ef | grep steampipe
# check if any processes are running
num=$(ps aux | grep steampipe | grep -v bats | grep -v grep | grep -v tests/acceptance | wc -l | tr -d ' ')
assert_equal $num 0
}