mirror of
https://github.com/containers/podman.git
synced 2025-08-26 21:20:17 +08:00
sqlite: add a hidden --db-backend flag
Add a hidden flag to set the database backend and plumb it into podman-info. Further add a system test to make sure the flag and the info output are working properly. Note that the test may need to be changed once we settled on how to test the sqlite backend in CI. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -150,4 +150,16 @@ host.slirp4netns.executable | $expr_path
|
||||
fi
|
||||
}
|
||||
|
||||
@test "podman --db-backend info - basic output" {
|
||||
# TODO: this tests needs to change once sqlite is being tested in the system tests
|
||||
skip_if_remote "--db-backend does not work on a remote client"
|
||||
for backend in boltdb sqlite; do
|
||||
run_podman --db-backend=$backend info --format "{{ .Host.DatabaseBackend }}"
|
||||
is "$output" "$backend"
|
||||
done
|
||||
|
||||
run_podman 125 --db-backend=bogus info --format "{{ .Host.DatabaseBackend }}"
|
||||
is "$output" "Error: unsupported database backend: \"bogus\""
|
||||
}
|
||||
|
||||
# vim: filetype=sh
|
||||
|
Reference in New Issue
Block a user