Skip to content

Commit

Permalink
client/clientutil: correct some docstrings and bump copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
Meulengracht committed Mar 14, 2024
1 parent 3e74d86 commit 166f1e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/clientutil/service_scope_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// -*- Mode: Go; indent-tabs-mode: t -*-

/*
* Copyright (C) 2022 Canonical Ltd
* Copyright (C) 2024 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
Expand Down Expand Up @@ -53,7 +53,6 @@ func (s *serviceScopeSuite) TestUsers(c *C) {
opts clientutil.ServiceScopeOptions
expected client.UserSelector
}{
// when expected is nil it means both scopes
{clientutil.ServiceScopeOptions{}, client.UserSelector{Names: []string{}, Selector: client.UserSelectionList}},
{clientutil.ServiceScopeOptions{User: true}, client.UserSelector{Selector: client.UserSelectionSelf}},
{clientutil.ServiceScopeOptions{Usernames: "all"}, client.UserSelector{Selector: client.UserSelectionAll}},
Expand All @@ -72,7 +71,6 @@ func (s *serviceScopeSuite) TestInvalidOptions(c *C) {
opts clientutil.ServiceScopeOptions
expected string
}{
// when expected is nil it means both scopes
{clientutil.ServiceScopeOptions{Usernames: "foo"}, `only "all" is supported as a value for --users`},
{clientutil.ServiceScopeOptions{User: true, System: true}, `--system and --user cannot be used in conjunction with each other`},
{clientutil.ServiceScopeOptions{Usernames: "all", User: true}, `--user and --users cannot be used in conjunction with each other`},
Expand Down

0 comments on commit 166f1e2

Please sign in to comment.