Commits

Robert Massaioli [Atlassian]  committed 39b1ef0

CONNECT-105 - I can now run the integration tests.

It is also much easier to run the integration tests when you have a really good read through the
Atlassian AMPS plugin. You can even run the integration tests multiple times if you do that.

  • Participants
  • Parent commits efab5bf
  • Branches CONNECT-105-allow-the-remote-user-to-be-customised

Comments (0)

Files changed (2)

             <plugin>
                 <groupId>com.atlassian.maven.plugins</groupId>
                 <artifactId>maven-jira-plugin</artifactId>
-                <version>3.5.2</version>
+                <version>4.1.5</version>
                 <extensions>true</extensions>
                 <configuration>
                     <productVersion>${jira.version}</productVersion>
                             <instanceIds>
                                 <id>jira5</id>
                             </instanceIds>
+                            <includes>
+                                <include>it/**</include>
+                            </includes>
+                            <systemProperties>
+                                <http.jira.port>2990</http.jira.port>
+                                <baseurl.jira>http://localhost:2990/jira</baseurl.jira>
+                                <context.jira.path>/jira</context.jira.path>
+                            </systemProperties>
                         </testGroup>
                         <testGroup>
                             <id>jira6</id>
                             <instanceIds>
                                 <id>jira6</id>
                             </instanceIds>
+                            <includes>
+                                <include>it/**</include>
+                            </includes>
+                            <systemProperties>
+                                <http.jira.port>2991</http.jira.port>
+                                <baseurl.jira>http://localhost:2991/jira</baseurl.jira>
+                                <context.jira.path>/jira</context.jira.path>
+                            </systemProperties>
                         </testGroup>
                     </testGroups>
 

File src/test/java/it/RemoteUserChangeTest.java

 import com.google.common.base.Optional;
 import it.page.ProjectSettingsPage;
 import it.util.FakeMobileDeviceUtil;
-import it.util.FeedbackCreatorBuilder;
 import org.apache.commons.httpclient.URIException;
 import org.json.JSONException;
 import org.junit.AfterClass;
 
     @BeforeClass
     public static void setUp() throws IOException, InterruptedException {
-        FeedbackCreatorBuilder.createFromStream(RemoteUserChangeTest.class.getResourceAsStream("/scripts/assets/issue1.json"));
         ViewProjectsPage viewProjectsPage = jira.visit(LoginPage.class).loginAsSysAdmin(ViewProjectsPage.class);
         assertTrue("You are supposed to be able to log in with a user that can create project.", viewProjectsPage.canCreateProject());
         AddProjectDialog addProjectDialog = viewProjectsPage.openCreateProjectDialog();
         addProjectDialog.setKey(PROJECT_KEY);
-        if(false) {
+        if(true) {
             ProjectSummaryPageTab createdProject = addProjectDialog.createProjectSuccess(PROJECT_KEY, PROJECT_NAME, ADMIN_USERNAME);
             assertEquals("The project should be created at this point.", PROJECT_KEY, createdProject.getProjectKey());
             ProjectSettingsPage projectSettingsPage = jira.visit(ProjectSettingsPage.class, PROJECT_KEY);