summaryrefslogtreecommitdiffstats
path: root/integrations/org_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/org_test.go')
-rw-r--r--integrations/org_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/integrations/org_test.go b/integrations/org_test.go
index d755385726..d787e6f791 100644
--- a/integrations/org_test.go
+++ b/integrations/org_test.go
@@ -116,6 +116,24 @@ func TestPrivateOrg(t *testing.T) {
session.MakeRequest(t, req, http.StatusOK)
}
+func TestOrgMembers(t *testing.T) {
+ defer prepareTestEnv(t)()
+
+ // not logged in user
+ req := NewRequest(t, "GET", "/org/org25/members")
+ MakeRequest(t, req, http.StatusOK)
+
+ // org member
+ session := loginUser(t, "user24")
+ req = NewRequest(t, "GET", "/org/org25/members")
+ session.MakeRequest(t, req, http.StatusOK)
+
+ // site admin
+ session = loginUser(t, "user1")
+ req = NewRequest(t, "GET", "/org/org25/members")
+ session.MakeRequest(t, req, http.StatusOK)
+}
+
func TestOrgRestrictedUser(t *testing.T) {
defer prepareTestEnv(t)()