Skip to content

Commit

Permalink
tests: Add cluster group config test
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Sponsored-by: Luizalabs (https://luizalabs.com)
  • Loading branch information
stgraber committed Jul 22, 2024
1 parent c9f3f85 commit f7bcac5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/suites/clustering.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3438,6 +3438,12 @@ test_clustering_groups() {
# Renaming the default group is not allowed
! incus cluster group rename cluster:default foobar || false

# User properties can be set
incus cluster group set cluster:default invalid foo || false
incus cluster group set cluster:default user.foo bar
[ "$(incus cluster group get cluster:default user.foo)" = "bar" ] || false
incus cluster group unset cluster:default user.foo

incus cluster list cluster:
# Nodes need to belong to at least one group, removing it from the default group should therefore fail
! incus cluster group remove cluster:node1 default || false
Expand Down

0 comments on commit f7bcac5

Please sign in to comment.