Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I have some tests that needed to access the telemetry API, so I had to enable the dashboard:
var builder = DistributedApplicationTestingBuilder.Create([], (opt, _) =>
{
opt.DisableDashboard = false;
opt.DashboardApplicationName = TestContext.CurrentContext?.Test.Name;
});
However my test ended up deadlocking as one of my resources ended up trying to use the interaction service as InteractionService.IsAvailable was now true.
Describe the solution you'd like
I was able to fix my problem by explicitly disabling the interaction service in my tests
builder.Configuration["ASPIRE_INTERACTIVITY_ENABLED"] = "false";
But it left me wondering if this should be the default for DistributedApplicationTestingBuilder? Currently the value seems to be based simply on whether the dashboard is enabled. But with the dashboard now hosting APIs, it is starting to be used in non interactive scenarios.
Additional context
No response
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I have some tests that needed to access the telemetry API, so I had to enable the dashboard:
However my test ended up deadlocking as one of my resources ended up trying to use the interaction service as
InteractionService.IsAvailablewas nowtrue.Describe the solution you'd like
I was able to fix my problem by explicitly disabling the interaction service in my tests
But it left me wondering if this should be the default for
DistributedApplicationTestingBuilder? Currently the value seems to be based simply on whether the dashboard is enabled. But with the dashboard now hosting APIs, it is starting to be used in non interactive scenarios.Additional context
No response