diff --git a/tests/azure/azure_test.go b/tests/azure/azure_test.go
index 045426596b74c25e7ea8370bf21543773f9ad7f0..ce4c29376bb7225d191b3206c0abb7b9d12980d1 100644
--- a/tests/azure/azure_test.go
+++ b/tests/azure/azure_test.go
@@ -483,7 +483,7 @@ func TestImageRepositoryACR(t *testing.T) {
 			Interval: metav1.Duration{
 				Duration: 1 * time.Minute,
 			},
-			SourceRef: automationv1beta1.SourceReference{
+			SourceRef: automationv1beta1.CrossNamespaceSourceReference{
 				Kind: "GitRepository",
 				Name: name,
 			},