1 write to PasswordParameter
Aspire.Hosting.PostgreSQL (1)
PostgresServerResource.cs (1)
29
PasswordParameter
= password;
10 references to PasswordParameter
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresExtensions.cs (1)
26
builder.WithParameter("administratorLoginPassword", postgresResource.
PasswordParameter
);
Aspire.Hosting.PostgreSQL (3)
PostgresBuilderExtensions.cs (2)
85
context.EnvironmentVariables[PasswordEnvVarName] = postgresServer.
PasswordParameter
;
193
writer.WriteString("PasswordExecCommand", $"echo '{postgresInstance.
PasswordParameter
.Value}'"); // HACK: Generating a pass file and playing around with chmod is too painful.
PostgresServerResource.cs (1)
54
$"Host={PrimaryEndpoint.Property(EndpointProperty.Host)};Port={PrimaryEndpoint.Property(EndpointProperty.Port)};Username={UserNameReference};Password={
PasswordParameter
}");
Aspire.Hosting.PostgreSQL.Tests (6)
AddPostgresTests.cs (6)
32
Assert.Equal("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", pg.Resource.
PasswordParameter
.Default?.GetType().FullName);
42
Assert.NotEqual("Aspire.Hosting.ApplicationModel.UserSecretsParameterDefault", pg.Resource.
PasswordParameter
.Default?.GetType().FullName);
163
Assert.Equal($"Host=localhost;Port=2000;Username=postgres;Password={postgres.Resource.
PasswordParameter
.Value}", connectionString);
483
Assert.Equal($"echo '{pg1.Resource.
PasswordParameter
.Value}'", servers.GetProperty("1").GetProperty("PasswordExecCommand").GetString());
493
Assert.Equal($"echo '{pg2.Resource.
PasswordParameter
.Value}'", servers.GetProperty("2").GetProperty("PasswordExecCommand").GetString());
617
password = "{postgresDatabase.Parent.
PasswordParameter
.Value}"