mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
25291de8cb
* support retries * tests + registration options * fix ordering .. * HK + update packages * fix paths * Update dotnet/tests/CosmosDB.IntegrationTests/Microsoft.Extensions.AI.Agents.Runtime.Storage.CosmosDB.Tests/CosmosTestFixture.cs * re create project and fix some pk usage * fix all tests * try workflow? * wip 1 * fix definition * try with cosmos_use_emulator env? * try ignore SSL errors? * other cert verifications * hardcode to 8081? * proper valuation of ENV * logging * ensure db exsists for CI * bump * cleanup * fix usage * nit comment * try only release for stability? * try skip some flaky tests * merge fixes + rollback container * reimplement with iasyncdisposable pattern * remove example doc struct
29 lines
892 B
C#
29 lines
892 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using CosmosDB.Testing.AppHost;
|
|
|
|
namespace Microsoft.Extensions.AI.Agents.Runtime.Storage.CosmosDB.Tests;
|
|
|
|
/// <summary>
|
|
/// Skip test if running on CosmosDB emulator.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, AllowMultiple = false)]
|
|
public sealed class SkipOnEmulatorFactAttribute : FactAttribute
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SkipOnEmulatorFactAttribute"/> class.
|
|
/// </summary>
|
|
public SkipOnEmulatorFactAttribute()
|
|
{
|
|
if (CosmosDBTestConstants.UseAspireEmulatorForTesting)
|
|
{
|
|
this.Skip = "Skipping test on Aspire-configured CosmosDB emulator.";
|
|
}
|
|
|
|
if (CosmosDBTestConstants.UseEmulatorInCICD)
|
|
{
|
|
this.Skip = "Skipping test on CICD-configured CosmosDB emulator.";
|
|
}
|
|
}
|
|
}
|