]
Jeff MAURY updated JBIDE-25283:
-------------------------------
Fix Version/s: 4.6.x
(was: 4.5.x)
IT: ImportApplicationWizardTest needs to reuse an existing connection
and existing resources
--------------------------------------------------------------------------------------------
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.6.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)