github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/tests/acceptance/test_files/settings.bats (about)

     1  load "$LIB_BATS_ASSERT/load.bash"
     2  load "$LIB_BATS_SUPPORT/load.bash"
     3  
     4  @test "verify steampipe_server_settings table" {
     5      run steampipe query "select * from steampipe_server_settings"
     6      assert_success
     7  }
     8  
     9  function teardown_file() {
    10    # list running processes
    11    ps -ef | grep steampipe
    12  
    13    # check if any processes are running
    14    num=$(ps aux | grep steampipe | grep -v bats | grep -v grep | grep -v tests/acceptance | wc -l | tr -d ' ')
    15    assert_equal $num 0
    16  }