[jbosstools-issues] [JBoss JIRA] (JBIDE-25283) IT: ImportApplicationWizardTest needs to reuse resource

Andre Dietisheim (JIRA) issues at jboss.org
Mon Oct 23 11:45:00 EDT 2017


Andre Dietisheim created JBIDE-25283:
----------------------------------------

             Summary: IT: ImportApplicationWizardTest needs to reuse resource
                 Key: JBIDE-25283
                 URL: https://issues.jboss.org/browse/JBIDE-25283
             Project: Tools (JBoss Tools)
          Issue Type: Enhancement
          Components: openshift
    Affects Versions: 4.5.1.AM3
            Reporter: Andre Dietisheim
             Fix For: 4.5.x


ImportApplicationWizardTest is using (via the super class ImportApplicationBase)
{code}
@CleanConnection
{code}
which kills all projects that exist in the OpenShift server that the given/default connection points to. We need to get rid of this annotation and make sure that the test is re-using the service that it's requiring via the service requirement annotation:
{code}
@RequiredService(
		project = DatastoreOS3.TEST_PROJECT, 
		service = OpenShiftResources.NODEJS_SERVICE, 
		template = OpenShiftResources.NODEJS_TEMPLATE)
{code}

The very same is true about the following annotation that it's currently using:
{code}
@CleanOpenShiftExplorer
{code}
This annotation is clearing all connections that exists in the explorer. We should simply reuse the (existing) connection that the test is annotated with:
{code}
@RequiredBasicConnection
{code}
This annotation is referring to the server that is given via the system properties (in cmd-line with -D)



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jbosstools-issues mailing list