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

Import wizard: if launched from existing application, all projects are imported, not the context-dir only

XMLWordPrintable

    • devex #115 May 2016
    • Hide
      1. ASSERT: make sure that you have an existing service running in OpenShift (ex. eap-app, created via the eap template)
      2. EXEC: in OpenShift explorer: pick "Import Application" in the context menu of your service
      3. ASSERT: the import wizard pops up populated with sensible defaults
      4. EXEC: hit "Finish" in the import wizard

      Result:
      you get all the projects within jboss-eap-quickstarts imported to your workspace, not just the kitchensink project which the CONTEXT_DIR template parameter is pointing to.

      Expected result:
      The import wizard only imports the "kitchensink" project to your workspace.

      If you create a new application by using the eap64-basic-s2i template, the import wizard is launched after the resources were created in OpenShift and it will (clone the whole git repository with the jboss-eap-quickstarts from //github.com/jboss-developer/jboss-eap-quickstarts but) will import only the "kitchensink" project to your workspace.

      If you look at the build config for your service you'll find that the context directory is pointing to kitchensink, but is looks as if the import wizard was ignoring it:

              "source" : {
                  "type" : "Git",
                  "git" : {
                      "uri" : "https://github.com/jboss-developer/jboss-eap-quickstarts",
                      "ref" : "7.0.x-develop"
                  },
                  "contextDir" : "kitchensink"
      
      Show
      ASSERT: make sure that you have an existing service running in OpenShift (ex. eap-app, created via the eap template) EXEC: in OpenShift explorer: pick "Import Application" in the context menu of your service ASSERT: the import wizard pops up populated with sensible defaults EXEC: hit "Finish" in the import wizard Result: you get all the projects within jboss-eap-quickstarts imported to your workspace, not just the kitchensink project which the CONTEXT_DIR template parameter is pointing to. Expected result: The import wizard only imports the "kitchensink" project to your workspace. If you create a new application by using the eap64-basic-s2i template, the import wizard is launched after the resources were created in OpenShift and it will (clone the whole git repository with the jboss-eap-quickstarts from //github.com/jboss-developer/jboss-eap-quickstarts but) will import only the "kitchensink" project to your workspace. If you look at the build config for your service you'll find that the context directory is pointing to kitchensink, but is looks as if the import wizard was ignoring it: "source" : { "type" : "Git" , "git" : { "uri" : "https: //github.com/jboss-developer/jboss-eap-quickstarts" , "ref" : "7.0.x-develop" }, "contextDir" : "kitchensink"

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

              Created:
              Updated:
              Resolved: