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

Port Forwarding: Warning/error dialog should pop up if there is no oc binary when opening Port forwarding dialog

XMLWordPrintable

    • devex #115 May 2016
    • 4
    • Hide

      ASSERT: Have a OpenShift 3 connection with project in OpenShift Explorer View.
      EXEC: Set incorrect path to OpenShift oc binary in preferences (type some invalid string or path non-leading to oc binary) and press Esc or close dialog.
      EXEC: Create a new OpenShift 3 application (I created eap-basic s2i from server template)
      ASSERT: Application is running (there is a succeeded pod for build called eap-app-1-build and there is a running pod with name eap-app-1-* where * is some string/hash)
      EXEC: Select running pod and open its context menu.
      EXEC: Select Port Forwarding... context menu.
      RESULT: Dialog Application Port Forwarding is opened.
      EXPECTED RESULT: Warning/Error dialog about oc should be shown.

      Show
      ASSERT: Have a OpenShift 3 connection with project in OpenShift Explorer View. EXEC: Set incorrect path to OpenShift oc binary in preferences (type some invalid string or path non-leading to oc binary) and press Esc or close dialog. EXEC: Create a new OpenShift 3 application (I created eap-basic s2i from server template) ASSERT: Application is running (there is a succeeded pod for build called eap-app-1-build and there is a running pod with name eap-app-1-* where * is some string/hash) EXEC: Select running pod and open its context menu. EXEC: Select Port Forwarding... context menu. RESULT: Dialog Application Port Forwarding is opened. EXPECTED RESULT: Warning/Error dialog about oc should be shown.

      OpenShift 3 port forwarding features requires 'oc' binary to be set up in tooling. It's done in Workbench preference dialog on page OpenShift 3. If there is no 'oc' binary set and user invokes a port forwarding dialog, it is opened and even Start All button is enabled. User finds out that it is not possible to perform only when he gets an error message upon clicking on Start All button describing the problem. There could be some warning/error dialog popped up before opening a port forwarding dialog if there is no 'oc' location set in preferences.

            dbocharo@redhat.com Dmitrii Bocharov (Inactive)
            mlabuda_jira Marián Labuda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: