feat: expose Everyone group through UI (#9117)

- Allows setting quota allowances on the 'Everyone' group.
This commit is contained in:
Jon Ayers
2023-08-17 13:25:16 -05:00
committed by GitHub
parent 8910f05172
commit 2f6687a475
23 changed files with 458 additions and 80 deletions
+11 -5
View File
@@ -74,10 +74,10 @@ func TestGroupList(t *testing.T) {
}
})
t.Run("NoGroups", func(t *testing.T) {
t.Run("Everyone", func(t *testing.T) {
t.Parallel()
client, _ := coderdenttest.New(t, &coderdenttest.Options{LicenseOptions: &coderdenttest.LicenseOptions{
client, user := coderdenttest.New(t, &coderdenttest.Options{LicenseOptions: &coderdenttest.LicenseOptions{
Features: license.Features{
codersdk.FeatureTemplateRBAC: 1,
},
@@ -87,13 +87,19 @@ func TestGroupList(t *testing.T) {
pty := ptytest.New(t)
inv.Stderr = pty.Output()
inv.Stdout = pty.Output()
clitest.SetupConfig(t, client, conf)
err := inv.Run()
require.NoError(t, err)
pty.ExpectMatch("No groups found")
pty.ExpectMatch("coder groups create <name>")
matches := []string{
"NAME", "ORGANIZATION ID", "MEMBERS", " AVATAR URL",
"Everyone", user.OrganizationID.String(), coderdtest.FirstUserParams.Email, "",
}
for _, match := range matches {
pty.ExpectMatch(match)
}
})
}