mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2026-10-12 02:12:31 +00:00
* "cscli capi status": save auth token * CI: test auth token cache * test that capi status saves the token too * fix postgres test
25 lines
366 B
Bash
25 lines
366 B
Bash
#!/usr/bin/env bats
|
|
|
|
set -u
|
|
|
|
setup_file() {
|
|
load "../lib/setup_file.sh"
|
|
}
|
|
|
|
teardown_file() {
|
|
load "../lib/teardown_file.sh"
|
|
}
|
|
|
|
setup() {
|
|
load "../lib/setup.sh"
|
|
load "../lib/bats-file/load.bash"
|
|
./instance-data load
|
|
}
|
|
|
|
#----------
|
|
|
|
@test "sql helper" {
|
|
rune -0 ./instance-db exec_sql "SELECT 11235813"
|
|
assert_output --partial '11235813'
|
|
}
|