microsoft / Power-CAT-Copilot-Studio-Kit

MIT License
61 stars 8 forks source link

Tests are not running #64

Open ricardodesouza-br opened 1 week ago

ricardodesouza-br commented 1 week ago

The tests that I created in the Kit are not running automatically. Futhermore, there are no runs in history of the "Run Copilot Tests" cloud flow.

I installed the latest solution version with the option to enable plug-ins steps enabled and I also verified that all cloud flows are enabled. Do you have any tips about what may be causing this behaviour?

Regards

psimolin commented 2 days ago

Are you testing with end user authentication enabled? Are you getting any notifications when you save a new test run?

mariofontana commented 2 days ago

today I installed the solution and I have the same issue. I'm testing without authentication and tests are not running and I don't see any error/warning.

psimolin commented 2 days ago

@mariofontana Were you able to confirm that the cloud flows are enabled?

mariofontana commented 2 days ago

Thank you @psimolin you pointed to the right direction, The strange thing is that using the same account I used to install the solution and configure the first tests, it seems I don't have access to the cloud flows. If I try to turn them on, I receive an error

Flow client error returned with status code "Forbidden" and details "{"error":{"code":"ConnectionAuthorizationFailed","message":"The caller object id is 'xxx'. Connection 'cat_CopilotStudioAcceleratorDataverse' to 'shared_commondataserviceforapps' cannot be used to activate this flow, either because this is not a valid connection or because it is not a connection you have access permission for.

That's strange because I created that flow using the copilot studio kit app.

I'm definitely missing something because in the properties of the flow, I see my account as co-owner PS: I have the power automate P2 Viral. License