Skip to content

Commit 1c7fc80

Browse files
committed
fixup! ASOAPI: add e2e test
1 parent 0515d35 commit 1c7fc80

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/e2e/azure_clusterproxy.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,14 @@ func (acp *AzureClusterProxy) collectActivityLogs(ctx context.Context, namespace
248248
groupName = rg.AzureName()
249249
break
250250
}
251+
} else {
252+
if err != nil {
253+
// Failing to fetch logs should not cause the test to fail
254+
Logf("Error fetching activity logs for cluster %s in namespace %s. Not able to find the AzureManagedControlPlane on the management cluster: %v", name, namespace, err)
255+
return
256+
}
257+
groupName = controlPlane.Spec.ResourceGroupName
251258
}
252-
if err != nil {
253-
// Failing to fetch logs should not cause the test to fail
254-
Logf("Error fetching activity logs for cluster %s in namespace %s. Not able to find the AzureManagedControlPlane on the management cluster: %v", name, namespace, err)
255-
return
256-
}
257-
groupName = controlPlane.Spec.ResourceGroupName
258259
} else {
259260
if err != nil {
260261
// Failing to fetch logs should not cause the test to fail

0 commit comments

Comments
 (0)