File: loglevel.bats

package info (click to toggle)
golang-github-containers-buildah 1.19.6%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,020 kB
  • sloc: sh: 1,957; makefile: 199; perl: 173; awk: 12; ansic: 1
file content (28 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bats

load helpers

@test "log-level set to debug" {
  run_buildah --log-level=debug images -q
  expect_output --substring "level=debug "
}

@test "log-level set to info" {
  run_buildah --log-level=info images -q
  expect_output ""
}

@test "log-level set to warn" {
  run_buildah --log-level=warn images -q
  expect_output ""
}

@test "log-level set to error" {
  run_buildah --log-level=error images -q
  expect_output ""
}

@test "log-level set to invalid" {
  run_buildah 125 --log-level=invalid images -q
  expect_output --substring "unable to parse log level"
}