aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-03-22 21:13:16 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-03-23 17:38:34 +0100
commitf9d7fc8b49631ced6878a8e625d5561c8742f18b (patch)
treed8bb371bf91c47a91710ed875c62b00d34d7ff25
parentf2ffddfe321416578d97ff7d100ff85e940ba1b4 (diff)
downloadsonarqube-f9d7fc8b49631ced6878a8e625d5561c8742f18b.tar.gz
sonarqube-f9d7fc8b49631ced6878a8e625d5561c8742f18b.zip
SONAR-8925 re-enable IssueAssignTest
-rw-r--r--it/it-tests/src/test/java/it/organization/IssueAssignTest.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/it/it-tests/src/test/java/it/organization/IssueAssignTest.java b/it/it-tests/src/test/java/it/organization/IssueAssignTest.java
index 4d8e3cb477c..8bd231d4409 100644
--- a/it/it-tests/src/test/java/it/organization/IssueAssignTest.java
+++ b/it/it-tests/src/test/java/it/organization/IssueAssignTest.java
@@ -28,7 +28,6 @@ import java.util.stream.Collectors;
import org.junit.After;
import org.junit.Before;
import org.junit.ClassRule;
-import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
@@ -55,7 +54,6 @@ import static util.ItUtils.newAdminWsClient;
import static util.ItUtils.runProjectAnalysis;
import static util.ItUtils.setServerProperty;
-@Ignore
public class IssueAssignTest {
@Test
@@ -69,6 +67,7 @@ public class IssueAssignTest {
assertThat(issueRule.getRandomIssue().getAssignee()).isEqualTo(ASSIGNEE_LOGIN);
}
+
private final static String SAMPLE_PROJECT_KEY = "sample";
private final static String ORGANIZATION_KEY = "organization-key";
private final static String OTHER_ORGANIZATION_KEY = "other-organization-key";
@@ -148,6 +147,7 @@ public class IssueAssignTest {
@Test
public void bulk_assign_issues_to_user_being_only_member_of_same_organization_as_project_issue_organization() throws Exception {
createOrganization(OTHER_ORGANIZATION_KEY);
+ restoreProfile(OTHER_ORGANIZATION_KEY);
userRule.createUser(ASSIGNEE_LOGIN, ASSIGNEE_LOGIN);
// User is only member of "organization-key", not of "other-organization-key"
adminClient.organizations().addMember(ORGANIZATION_KEY, ASSIGNEE_LOGIN);
@@ -190,8 +190,13 @@ public class IssueAssignTest {
private void analyseProject(String projectKey, String organization) {
addQualityProfileToProject(organization, projectKey);
- runProjectAnalysis(orchestrator, "issue/xoo-with-scm", "sonar.projectKey", projectKey,
- "sonar.organization", organization, "sonar.login", "admin", "sonar.password", "admin", "sonar.scm.disabled", "false", "sonar.scm.provider", "xoo");
+ runProjectAnalysis(orchestrator, "issue/xoo-with-scm",
+ "sonar.projectKey", projectKey,
+ "sonar.organization", organization,
+ "sonar.login", "admin",
+ "sonar.password", "admin",
+ "sonar.scm.disabled", "false",
+ "sonar.scm.provider", "xoo");
}
private void addQualityProfileToProject(String organization, String projectKey) {