Files
agent-framework/dotnet/tests/CosmosDB.IntegrationTests/CosmosDB.Testing.AppHost/CosmosDBTestConstants.cs
T
Korolev Dmitry 25291de8cb .NET: chore: support retries on Cosmos storage creation (#402)
* 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
2025-08-21 18:37:12 +00:00

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);
}