fix name clash
@@ -205,7 +205,7 @@ func TestAccServiceEndpointArtifactory_RequiresImportErrorStep(t *testing.T) {
},
{
Config: hclSvcEndpointArtifactoryResourceRequiresImport(projectName, serviceEndpointName, t.Name()),
- ExpectError: requiresImportErrorSQ(serviceEndpointName),
+ ExpectError: requiresImportErrorAF(serviceEndpointName),
},
},
})
@@ -230,13 +230,13 @@ func TestAccServiceEndpointArtifactory_RequiresImportErrorStepUsernamePassword(t
},
{
Config: hclSvcEndpointArtifactoryResourceRequiresImport(projectName, serviceEndpointName, t.Name()),
- ExpectError: requiresImportErrorSQ(serviceEndpointName),
+ ExpectError: requiresImportErrorAF(serviceEndpointName),
},
},
})
}
-func requiresImportErrorSQ(resourceName string) *regexp.Regexp {
+func requiresImportErrorAF(resourceName string) *regexp.Regexp {
message := "Error creating service endpoint in Azure DevOps: Service connection with name %[1]s already exists. Only a user having Administrator/User role permissions on service connection %[1]s can see it."
return regexp.MustCompile(fmt.Sprintf(message, resourceName))
}
