We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent438e69d commitf32c78cCopy full SHA for f32c78c
cli/organization_test.go
@@ -7,6 +7,7 @@ import (
7
8
"github.com/coder/coder/v2/cli/clitest"
9
"github.com/coder/coder/v2/coderd/coderdtest"
10
+"github.com/coder/coder/v2/coderd/rbac"
11
"github.com/coder/coder/v2/codersdk"
12
"github.com/coder/coder/v2/pty/ptytest"
13
"github.com/coder/coder/v2/testutil"
@@ -17,8 +18,10 @@ func TestCurrentOrganization(t *testing.T) {
17
18
19
t.Run("OnlyID",func(t*testing.T) {
20
t.Parallel()
-client:=coderdtest.New(t,nil)
21
-first:=coderdtest.CreateFirstUser(t,client)
+ownerClient:=coderdtest.New(t,nil)
22
+first:=coderdtest.CreateFirstUser(t,ownerClient)
23
+// Owner is required to make orgs
24
+client,_:=coderdtest.CreateAnotherUser(t,ownerClient,first.OrganizationID,rbac.RoleOwner())
25
26
ctx:=testutil.Context(t,testutil.WaitMedium)
27
orgs:= []string{"foo","bar"}