diff --git a/src/Aspire.Hosting.PostgreSQL/PgAdminConfigWriterHook.cs b/src/Aspire.Hosting.PostgreSQL/PgAdminConfigWriterHook.cs index b1aead3ec1..35e2587048 100644 --- a/src/Aspire.Hosting.PostgreSQL/PgAdminConfigWriterHook.cs +++ b/src/Aspire.Hosting.PostgreSQL/PgAdminConfigWriterHook.cs @@ -34,7 +34,7 @@ public Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, C writer.WriteStartObject($"{serverIndex}"); writer.WriteString("Name", postgresInstance.Name); - writer.WriteString("Group", "Aspire instances"); + writer.WriteString("Group", "Servers"); writer.WriteString("Host", endpoint.ContainerHost); writer.WriteNumber("Port", endpoint.Port); writer.WriteString("Username", "postgres"); diff --git a/tests/Aspire.Hosting.Tests/Postgres/AddPostgresTests.cs b/tests/Aspire.Hosting.Tests/Postgres/AddPostgresTests.cs index cfa7e3deba..b17bb06a89 100644 --- a/tests/Aspire.Hosting.Tests/Postgres/AddPostgresTests.cs +++ b/tests/Aspire.Hosting.Tests/Postgres/AddPostgresTests.cs @@ -406,7 +406,7 @@ public void WithPostgresProducesValidServersJsonFile(string containerHost) // Make sure the first server is correct. Assert.Equal(pg1.Resource.Name, servers.GetProperty("1").GetProperty("Name").GetString()); - Assert.Equal("Aspire instances", servers.GetProperty("1").GetProperty("Group").GetString()); + Assert.Equal("Servers", servers.GetProperty("1").GetProperty("Group").GetString()); Assert.Equal(containerHost, servers.GetProperty("1").GetProperty("Host").GetString()); Assert.Equal(5001, servers.GetProperty("1").GetProperty("Port").GetInt32()); Assert.Equal("postgres", servers.GetProperty("1").GetProperty("Username").GetString()); @@ -416,7 +416,7 @@ public void WithPostgresProducesValidServersJsonFile(string containerHost) // Make sure the second server is correct. Assert.Equal(pg2.Resource.Name, servers.GetProperty("2").GetProperty("Name").GetString()); - Assert.Equal("Aspire instances", servers.GetProperty("2").GetProperty("Group").GetString()); + Assert.Equal("Servers", servers.GetProperty("2").GetProperty("Group").GetString()); Assert.Equal("host2", servers.GetProperty("2").GetProperty("Host").GetString()); Assert.Equal(5002, servers.GetProperty("2").GetProperty("Port").GetInt32()); Assert.Equal("postgres", servers.GetProperty("2").GetProperty("Username").GetString());