File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -52,24 +52,24 @@ waitForArcK8sClusterCreated() {
5252}
5353
5454waitForCIExtensionInstalled () {
55- installedState =false
55+ provisioningState =false
5656 max_retries=60
5757 sleep_seconds=10
5858 for i in $( seq 1 $max_retries )
5959 do
6060 echo " iteration: ${i} , clustername: ${CLUSTER_NAME} , resourcegroup: ${RESOURCE_GROUP} "
61- installState =$( az k8s-extension show --cluster-name $CLUSTER_NAME --resource-group $RESOURCE_GROUP --cluster-type connectedClusters --name azuremonitor-containers --query installState -o json)
62- installState =$( echo $installState | tr -d ' "' | tr -d ' "\r\n' )
63- echo " extension install state: ${installState } "
64- if [ ! -z " $installState " ]; then
65- if [ " ${installState } " == " Installed " ]; then
66- installedState =true
61+ provisioningState =$( az k8s-extension show --cluster-name $CLUSTER_NAME --resource-group $RESOURCE_GROUP --cluster-type connectedClusters --name azuremonitor-containers --query provisioningState -o json)
62+ provisioningState =$( echo $provisioningState | tr -d ' "' | tr -d ' "\r\n' )
63+ echo " extension install state: ${provisioningState } "
64+ if [ ! -z " $provisioningState " ]; then
65+ if [ " ${provisioningState } " == " Succeeded " ]; then
66+ provisioningState =true
6767 break
6868 fi
6969 fi
7070 sleep ${sleep_seconds}
7171 done
72- echo " container insights extension installedState : $installedState "
72+ echo " container insights extension provisioningState : $provisioningState "
7373}
7474
7575validateCommonParameters () {
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ def test_e2e_workflows(env_dict):
120120 pytest .fail ("rowCount should be greater than for cluster: {0} for workflow: {1} " .format (clusterResourceId , 'KUBE_SERVICES' ))
121121
122122 # KubeEvents
123+ # only the kube events with !normal event type will be collected
123124 query = constants .KUBE_EVENTS_QUERY .format (queryTimeInterval )
124125 params = { 'query' : query }
125126 result = requests .get (queryUrl , params = params , headers = Headers )
You can’t perform that action at this time.
0 commit comments