Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-19346

Update the hypershift CI MCE test scripts to verify MCE status

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • MCE 2.9.0
    • MCE 2.9.0
    • HyperShift
    • None
    • None

      As part of the n-4 hosted cluster OCP version support, we need to update the existing hypershift MCE CI test scripts to verify that MCE can import n ~ n-4 hosted cluster versions and the MCE addon agents get installed and work in the hosted cluster.

       

      Verify that the hosted cluster import works by using the following commands:

       
      ManagedClusterJoined=`oc get managedcluster ${hostedClusterName} -o jsonpath='{.status.conditions[?(@.type=="ManagedClusterJoined")].status}'`
      ManagedClusterConditionAvailable=`oc get managedcluster ${hostedClusterName} -o jsonpath='{.status.conditions[?(@.type=="ManagedClusterConditionAvailable")].status}'`
      ManagedClusterURL=`oc get managedcluster ${hostedClusterName} -o jsonpath='{.spec.managedClusterClientConfigs[0].url}'`
       
       
      Expect ManagedClusterJoined = True, ManagedClusterConditionAvailable=True, and ManagedClusterURL is not empty.
       
      Verify that the MCE addon agents are installed and working in the hosted cluster by using the following commands.
       
      ClusterProxyAddonAvailable=`oc get managedclusteraddon cluster-proxy -n ${hostedClusterName} -o jsonpath='{.status.conditions[?(@.type=="Available")].status}'`
      MSAAddonAvailable=`oc get managedclusteraddon managed-serviceaccount -n ${hostedClusterName} -o jsonpath='{.status.conditions[?(@.type=="Available")].status}'`
      WorkManagerAddonAvailable=`oc get managedclusteraddon work-manager -n ${hostedClusterName} -o jsonpath='{.status.conditions[?(@.type=="Available")].status}'`
       
      Expect ClusterProxyAddonAvailable = MSAAddonAvailable = WorkManagerAddonAvailable = "True".

              rhn-support-liangli Liangquan Li
              rokejungrh Roke Jung
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: