106 references to WithEnvironment
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
279IResourceBuilder<ParameterResource> parameter => builder.WithEnvironment(name, parameter),
Aspire.Hosting.Azure.Tests (9)
AzureContainerAppExpressTests.cs (1)
249.WithEnvironment("API_KEY", secret)
AzureContainerAppsTests.cs (7)
408.WithEnvironment("SecretVal", secretValue) 409.WithEnvironment("secret_value_1", secretValue) 410.WithEnvironment("Value", value) 515.WithEnvironment("SecretVal", secretValue) 516.WithEnvironment("secret_value_1", secretValue) 517.WithEnvironment("Value", value) 574.WithEnvironment("TOP_SECRET", secret)
AzureSandboxesTests.cs (1)
3306.WithEnvironment("SECRET", secret)
Aspire.Hosting.Docker.Tests (18)
DockerComposePublisherTests.cs (18)
42.WithEnvironment("DECLARED", declared); 46consumer.WithEnvironment("DECLARED", declared) 50.WithEnvironment("RESERVED", reservedSuffix); 263.WithEnvironment("param0", param0) 264.WithEnvironment("param1", param1) 265.WithEnvironment("param2", param2) 496builder.AddContainer("app", "busybox").WithEnvironment("param1", param); 566builder.AddContainer("app", "busybox").WithEnvironment("param1", parameter); 955.WithEnvironment("PARAM1", param1) 956.WithEnvironment("PARAM2", param2) 984.WithEnvironment("PARAM1", param1) 985.WithEnvironment("PARAM2", param2); 1017.WithEnvironment("STRING_PARAM", stringParam) 1018.WithEnvironment("SECRET_PARAM", secretParam) 1019.WithEnvironment("PARAM_WITH_DEFAULT", paramWithDefault) 1044.WithEnvironment("PARAM1", param1); 1078.WithEnvironment("PARAM1", param1); 1133.WithEnvironment("MY_PARAM", param);
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectBuildCoordinatorTests.cs (1)
1559.WithEnvironment("SETTING", parameter)
Aspire.Hosting.Go.Tests (1)
GoRunDebuggingTests.cs (1)
244go.WithEnvironment("GOFLAGS", parameter);
Aspire.Hosting.Kubernetes.Tests (14)
KubernetesDeployTests.cs (6)
1143.WithEnvironment("DB_PASSWORD", password); 1323.WithEnvironment("REDIS_PASSWORD", cachePassword); 1328.WithEnvironment("CACHE_PASSWORD", cachePassword); 1394.WithEnvironment("REDIS_PASSWORD", cachePassword); 1513.WithEnvironment("REDIS_PASSWORD", cachePassword); 1518.WithEnvironment("CACHE_PASSWORD", cachePassword);
KubernetesPublisherTests.cs (8)
66.WithEnvironment("JSON_CONFIG", json) 69.WithEnvironment("TOKEN", token) 70.WithEnvironment("MULTILINE", builder.AddParameter("multiline", "first \"quoted\" line\nsecond\\line", publishValueAsDefault: true)) 459.WithEnvironment("param0", param0) 460.WithEnvironment("param1", param1) 461.WithEnvironment("param2", param2) 462.WithEnvironment("param3", param3) 880.WithEnvironment("param3", param3)
Aspire.Hosting.Radius.Tests (29)
Publishing\BackingResourceValueResolutionTests.cs (1)
917.WithEnvironment("ADMIN_PASSWORD", shared);
Publishing\ContainerEnvironmentEmissionTests.cs (2)
166.WithEnvironment("API_KEY", secret); 188.WithEnvironment("REGION", plain);
Publishing\ContainerSecretEnvironmentTests.cs (14)
54.WithEnvironment("API_KEY", secret!); 97.WithEnvironment("API_KEY", secret); 133.WithEnvironment("REGION", plain) 177.WithEnvironment("PW", password); 214.WithEnvironment("BAD KEY", password); 240.WithEnvironment("..token", password); 283.WithEnvironment("PW", password); 309.WithEnvironment("PW", password); 327.WithEnvironment("PW", password); 345.WithEnvironment("PW", password); 363.WithEnvironment("PW", password); 386.WithEnvironment("PW", password); 405.WithEnvironment("PW", password); 431.WithEnvironment("PW", password);
Publishing\PostCallbackSecretValidationTests.cs (7)
72.WithEnvironment("PW", password); 480.WithEnvironment("PW", password); 504.WithEnvironment("PW", password); 530.WithEnvironment("PW", password); 773.WithEnvironment("PW", builder.AddParameter("pw", secret: true)); 792.WithEnvironment("PW", builder.AddParameter("pw", secret: true)), 854.WithEnvironment("PW", builder.AddParameter("pw", secret: true)),
Publishing\RadiusDeployParametersTests.cs (3)
346.WithEnvironment("API_KEY", shared); 376.WithEnvironment("API_KEY", shared); 402.WithEnvironment("API_KEY", reserved);
Recipes\RecipeParameterAdvancedTests.cs (2)
222.WithEnvironment("API_KEY", envParam); 240.WithEnvironment("API_KEY", shared);
Aspire.Hosting.Seq (1)
SeqBuilderExtensions.cs (1)
66resourceBuilder.WithEnvironment("SEQ_FIRSTRUN_ADMINPASSWORD", adminPassword);
Aspire.Hosting.Tests (13)
ExecutionConfigurationGathererTests.cs (1)
283.WithEnvironment("OPTIONAL_VALUE", optional)
Orchestrator\ParameterProcessorTests.cs (6)
755.WithEnvironment("TEST_ENV", referencedParam); 826.WithEnvironment("TEST_ENV", referencedParam); 896.WithEnvironment("TEST_ENV", missingParam); 923.WithEnvironment("ENV1", param1) 924.WithEnvironment("ENV2", param2); 927.WithEnvironment("ENV3", param1);
ResourceDependencyTests.cs (1)
193.WithEnvironment("API_KEY", param);
ResourceExtensionsTests.cs (2)
255.WithEnvironment("ELASTIC_PASSWORD", passwordParameter); 290.WithEnvironment("ELASTIC_PASSWORD", passwordParameter);
WithEnvironmentTests.cs (3)
286.WithEnvironment("MY_PARAMETER", parameter); 309.WithEnvironment("MY_PARAMETER", parameter); 325.WithEnvironment("MY_PARAMETER", parameter);
AzureAppService.AppHost (1)
AppHost.cs (1)
38.WithEnvironment("VALUE", param)
AzureContainerApps.AppHost (1)
AppHost.cs (1)
47.WithEnvironment("VALUE", param)
Deployers.AppHost (3)
AppHost.cs (3)
53.WithEnvironment("P0", computeParam) 54.WithEnvironment("P1", secretParam) 55.WithEnvironment("P3", parameterWithDefault)
ParameterEndToEnd.AppHost (5)
AppHost.cs (5)
91.WithEnvironment("InsertionRows", insertionrows) 92.WithEnvironment("OPTIONAL_UNSET", optionalUnset) 93.WithEnvironment("OPTIONAL_CONFIGURED", optionalConfigured) 94.WithEnvironment("PROGRAMMATIC_VALUE", programmaticValue) 95.WithEnvironment("REQUIRED_AFTER_OPTIONAL", requiredAfterOptional)
Publishers.AppHost (4)
AppHost.cs (4)
51.WithEnvironment("P0", param0) 52.WithEnvironment("P1", param1) 53.WithEnvironment("P2", param2) 54.WithEnvironment("P3", param3)
Stress.AppHost (2)
AppHost.cs (2)
71.WithEnvironment("API_KEY", apiKeyParam) 72.WithEnvironment("DB_CONNECTION_STRING", connectionStringParam)
TestShop.AppHost (3)
AppHost.cs (3)
140.WithEnvironment("Inventory__LowStockThreshold", lowStockThreshold) 170.WithEnvironment("Checkout__SigningKey", checkoutSigningKey) 179.WithEnvironment("Storefront__Promotion", storefrontPromotion)