Skip to content

Commit

Permalink
tests: Add server info instance type test
Browse files Browse the repository at this point in the history
Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin committed Jan 18, 2024
1 parent 76f5c65 commit 2101720
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ if [ "${1:-"all"}" != "cluster" ]; then
run_test test_oidc "OpenID Connect"
run_test test_certificate_edit "Certificate edit"
run_test test_basic_usage "basic usage"
run_test test_server_info "server info"
run_test test_remote_url "remote url handling"
run_test test_remote_admin "remote administration"
run_test test_remote_usage "remote usage"
Expand Down
5 changes: 5 additions & 0 deletions test/suites/basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -669,3 +669,8 @@ test_basic_usage() {
remaining_instances="$(lxc list --format csv)"
[ -z "${remaining_instances}" ]
}

test_server_info() {
# Ensure server always reports support for containers.
lxc query /1.0 | jq -e '.environment.instance_types | contains(["container"])'
}

0 comments on commit 2101720

Please sign in to comment.