summaryrefslogtreecommitdiffstats
path: root/api/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/user_test.go')
-rw-r--r--api/user_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/user_test.go b/api/user_test.go
index 20c555931..2c6238c54 100644
--- a/api/user_test.go
+++ b/api/user_test.go
@@ -986,6 +986,10 @@ func TestUserUpdateRoles(t *testing.T) {
t.Fatal("Should have errored, bad id")
}
+ if _, err := Client.UpdateUserRoles("system_admin", ""); err == nil {
+ t.Fatal("Should have errored, we want to avoid this mistake")
+ }
+
if _, err := Client.UpdateUserRoles("12345678901234567890123456", ""); err == nil {
t.Fatal("Should have errored, bad id")
}