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
25 lines
927 B
C#
25 lines
927 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
//using System.Linq.Expressions;
|
|
|
|
namespace CosmosDB.Testing.AppHost;
|
|
|
|
public static class CosmosDBTestConstants
|
|
{
|
|
public const string TestCosmosDbName = "ActorStateStorageTests";
|
|
public const string TestCosmosDbDatabaseName = "state-database";
|
|
|
|
//Set to use the CosmosDB emulator for testing via environment variable.
|
|
//Example: set COSMOSDB_TESTS_USE_EMULATOR = true in your environment.
|
|
//Warning: Using the emulator may cause test flakiness.
|
|
public static bool UseAspireEmulatorForTesting => string.Equals(
|
|
Environment.GetEnvironmentVariable("COSMOSDB_TESTS_USE_EMULATOR"),
|
|
"true",
|
|
StringComparison.OrdinalIgnoreCase);
|
|
|
|
public static bool UseEmulatorInCICD => string.Equals(
|
|
Environment.GetEnvironmentVariable("COSMOSDB_TESTS_USE_EMULATOR_CICD"),
|
|
"true",
|
|
StringComparison.OrdinalIgnoreCase);
|
|
}
|