• OCMUI Core Sprint 260

      In the post-mortem incident meeting it was determined that OCM UI should add a comment block near the 'cluster-list' route, warning about the consequences of changing the route.

      Comment should go here:  https://gitlab.cee.redhat.com/service/uhc-portal/-/blob/master/src/components/App/Router.tsx#L439-439

       

      jschuler_kafka_devexp wrote:  Here is the current catchpoint test:

      // Step - 1
      open("https://console.redhat.com/openshift/cluster-list")
      setStepName("Waiting for login form to load")
      // Akamai debug header and custom user agent to filter Adobe Analytics
      setHeaderAll("Pragma", "akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no")
      setHeaderAll("User-Agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.67 Safari/537.36 - newrelic")
      // Block an instable SSO external dependancy
      setHeaderAll("request-block", "jsonip.com")
      setStepName("Enter credentials")
      waitForVisible("//*[@id='username-verification']", "30000")
      type("//*[@id='username-verification']", "${Username}")
      waitForVisible("//*[@id='login-show-step2']", "30000")
      click("//*[@id='login-show-step2']")
      waitForVisible("//*[@id='password']", "30000")
      type("//*[@id='password']", "${Password}")
      waitForVisible("//*[@id='rh-password-verification-submit-button']", "30000")// Step - 2
      clickAndWait("//*[@id='rh-password-verification-submit-button']")
      setStepName("Wait for authentication to complete")
      waitForVisible("//a[starts-with(@href, '/openshift/details/')]", "30000")

      it's really only:

      1. open("https://console.redhat.com/openshift/cluster-list")
      2. SSO login
      3. waitForVisible("//a[starts-with(@href, '/openshift/details/')]", "30000")
        1. Looks like an xpath search for a cluster details link, see attached screenshot

       

      Acceptance Criteria

      • Add code comment warning:
        /* WARNING!  The following route is used by catchpoint tests which determine 'Operational'/'Major Outage' status for "OpenShift Cluster Manager" on the 'http:///status.redhat.com' site.  For more info. see: https://issues.redhat.com/browse/OCMUI-2398 */
      • ...to 'openshift/cluster-list' and 'openshift/details' routes.

       

              dtaylor@redhat.com David Taylor
              dtaylor@redhat.com David Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: