aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-04-10 16:56:13 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-04-13 11:51:55 +0200
commitc4c504ca53b7d47028c5ed6bea4a63e4338aaffa (patch)
treea692d55bb72856fabd71486bb13180f510ae42b8 /it
parent0cc3d053bb00db694903f277ea54540f20b69bcb (diff)
downloadsonarqube-c4c504ca53b7d47028c5ed6bea4a63e4338aaffa.tar.gz
sonarqube-c4c504ca53b7d47028c5ed6bea4a63e4338aaffa.zip
SONAR-9018 Fix ITs as users are members of 'members' group
Diffstat (limited to 'it')
-rw-r--r--it/it-tests/src/test/java/it/organization/OrganizationMembershipTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/it/it-tests/src/test/java/it/organization/OrganizationMembershipTest.java b/it/it-tests/src/test/java/it/organization/OrganizationMembershipTest.java
index cffdf0c55b7..adeab69c60d 100644
--- a/it/it-tests/src/test/java/it/organization/OrganizationMembershipTest.java
+++ b/it/it-tests/src/test/java/it/organization/OrganizationMembershipTest.java
@@ -193,7 +193,7 @@ public class OrganizationMembershipTest {
.shouldHaveTotal(1)
.addMember("foo")
.shouldHaveTotal(2);
- page.getMembersByIdx(0).shouldBeNamed("admin", "Administrator").shouldHaveGroups(1);
+ page.getMembersByIdx(0).shouldBeNamed("admin", "Administrator").shouldHaveGroups(2);
page.getMembersByIdx(1).shouldBeNamed("foo", "foo").shouldHaveGroups(0);
}
@@ -220,16 +220,18 @@ public class OrganizationMembershipTest {
adminClient.organizations().addMember(orgKey, "foo");
MembersPage page = nav.logIn().asAdmin().openOrganizationMembers(orgKey);
+ // foo user
page.getMembersByIdx(1)
.manageGroupsOpen()
.manageGroupsSelect("owners")
.manageGroupsSave()
.shouldHaveGroups(1);
+ // admin user
page.getMembersByIdx(0)
.manageGroupsOpen()
.manageGroupsSelect("owners")
.manageGroupsSave()
- .shouldHaveGroups(0);
+ .shouldHaveGroups(1);
}
@Test