Not able to mock the managed API connector action
Hello Team
I am trying to mock the SharePoint action for which I am using the managed API connection but I am not able to mock them. I had added the SharePoint link in the externalApiUrlsToMock section but I don't think it is working. When I run the test method it fails ie the workflow status is having Failed status. When I inspected the test results I can see all the built-in actions are mocked but the list of mocked requests does not have anything for the SharePoint action. I am not sure if I am missing any steps. Below is the connection.json I am using in local dev.
"managedApiConnections": { "SharePointOnline": { "api": { "id": "/subscriptions/@appsetting('WORKFLOWS_SUBSCRIPTION_ID')/providers/Microsoft.Web/locations/@appsetting('WORKFLOWS_LOCATION_NAME')/managedApis/sharepointonline" }, "authentication": { "type": "@appsetting('SPAuthTypeRaw')" }, "connection": { "id": "/subscriptions/@appsetting('WORKFLOWS_SUBSCRIPTION_ID')/resourceGroups/@appsetting('WORKFLOWS_RESOURCE_GROUP_NAME')/providers/Microsoft.Web/connections/sharepointonline-5" }, "connectionRuntimeUrl": "@appsetting('SHSharePointUrl')" } }
Any help in this would be greatly appreciated. Please let me know if you need anymore information. Thanks