Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-25283

IT: ImportApplicationWizardTest needs to reuse an existing connection and existing resources

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Major Major
    • 4.27.0.AM1
    • 4.5.1.AM3
    • openshift
    • None

      ImportApplicationWizardTest is using (via the super class ImportApplicationBase)

      @CleanConnection
      

      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:

      @RequiredService(
      		project = DatastoreOS3.TEST_PROJECT, 
      		service = OpenShiftResources.NODEJS_SERVICE, 
      		template = OpenShiftResources.NODEJS_TEMPLATE)
      

      The very same is true about the following annotation that it's currently using:

      @CleanOpenShiftExplorer
      

      This annotation is clearing all connections that exists in the explorer. We should simply reuse the (existing) connection that the test is annotated with:

      @RequiredBasicConnection
      

      This annotation is referring to the server that is given via the system properties (in cmd-line with -D)

            Unassigned Unassigned
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: