11 references to Environment
Aspire.Hosting (4)
Publishing\BuildImageSecretValue.cs (1)
28
/// <param name="Value">The resolved secret value. For <see cref="BuildImageSecretType.
Environment
"/> secrets, this is the secret content.
Publishing\DockerContainerRuntime.cs (1)
114
if (buildSecret.Value.Type == BuildImageSecretType.
Environment
&& buildSecret.Value.Value is not null)
Publishing\PodmanContainerRuntime.cs (1)
68
if (buildSecret.Value.Type == BuildImageSecretType.
Environment
&& buildSecret.Value.Value is not null)
Publishing\ResourceContainerImageManager.cs (1)
446
var secretType = buildSecret.Value is FileInfo ? BuildImageSecretType.File : BuildImageSecretType.
Environment
;
Aspire.Hosting.Tests (7)
Publishing\ResourceContainerImageManagerTests.cs (7)
679
Assert.Equal(BuildImageSecretType.
Environment
, fakeContainerRuntime.CapturedBuildSecrets["SECRET_ASENV"].Type);
833
Assert.Equal(BuildImageSecretType.
Environment
, fakeContainerRuntime.CapturedBuildSecrets["STRING_SECRET"].Type);
837
Assert.Equal(BuildImageSecretType.
Environment
, fakeContainerRuntime.CapturedBuildSecrets["NULL_SECRET"].Type);
885
Assert.Equal(BuildImageSecretType.
Environment
, fakeContainerRuntime.CapturedBuildSecrets["ENV_SECRET"].Type);
897
["MY_SECRET"] = new BuildImageSecretValue("secret-value", BuildImageSecretType.
Environment
)
923
["MY_SECRET"] = new BuildImageSecretValue(null, BuildImageSecretType.
Environment
)
936
["ENV_TOKEN"] = new BuildImageSecretValue("token-value", BuildImageSecretType.
Environment
),