64 references to AddPostgres
Aspire.Hosting.Azure.Tests (8)
AzureBicepResourceTests.cs (7)
65{ builder => builder.AddPostgres(resourceName).AsAzurePostgresFlexibleServer() }, 1283var postgres = builder.AddPostgres("postgres", usr, pwd).AsAzurePostgresFlexibleServer(); 1401var postgres = builder.AddPostgres("postgres", usr, pwd).AsAzurePostgresFlexibleServer(); 1510var postgres = builder.AddPostgres("postgres", usr, pwd).PublishAsAzurePostgresFlexibleServer(); 1543var postgres = builder.AddPostgres("postgres1") 1563postgres = builder.AddPostgres("postgres2", userName: param) 1581postgres = builder.AddPostgres("postgres3", password: param)
AzureSchemaTests.cs (1)
19builder.AddPostgres("postgres").PublishAsAzurePostgresFlexibleServer().AddDatabase("db");
Aspire.Hosting.PostgreSQL.Tests (43)
AddPostgresTests.cs (30)
21var redis = builder.AddPostgres("postgres"); 30var pg = appBuilder.AddPostgres("pg"); 40var pg = appBuilder.AddPostgres("pg"); 49appBuilder.AddPostgres("myPostgres"); 104appBuilder.AddPostgres("myPostgres", password: pass, port: 1234); 156var postgres = appBuilder.AddPostgres("postgres") 170appBuilder.AddPostgres("postgres") 195appBuilder.AddPostgres("postgres", password: pass, port: 1234).AddDatabase("db"); 248var pgServer = builder.AddPostgres("pg"); 294var pgServer = builder.AddPostgres("pg", userNameParameter, passwordParameter); 320pgServer = builder.AddPostgres("pg2", userNameParameter); 346pgServer = builder.AddPostgres("pg3", password: passwordParameter); 378builder.AddPostgres("mypostgres").WithPgAdmin(pga => pga.WithHostPort(8081)); 391builder.AddPostgres("mypostgres1").WithPgWeb(); 392builder.AddPostgres("mypostgres2").WithPgWeb(); 401builder.AddPostgres("mypostgres").WithPgWeb(c => 419builder.AddPostgres("mypostgres").WithPgWeb(c => 433builder.AddPostgres("mypostgres").WithPgAdmin(pga => pga.WithImageTag("8.3")); 445builder.AddPostgres("mypostgres1").WithPgAdmin(pga => pga.WithHostPort(8081)); 446builder.AddPostgres("mypostgres2").WithPgAdmin(pga => pga.WithHostPort(8081)); 456var pg1 = builder.AddPostgres("mypostgres1").WithPgAdmin(pga => pga.WithHostPort(8081)); 457var pg2 = builder.AddPostgres("mypostgres2", username).WithPgAdmin(pga => pga.WithHostPort(8081)); 500var pg1 = builder.AddPostgres("mypostgres1").WithPgWeb(pga => pga.WithHostPort(8081)); 501var pg2 = builder.AddPostgres("mypostgres2").WithPgWeb(pga => pga.WithHostPort(8081)); 554var db = builder.AddPostgres("postgres1"); 565builder.AddPostgres("postgres1") 568var db = builder.AddPostgres("postgres2"); 577var postgres1 = builder.AddPostgres("postgres1"); 594var db1 = builder.AddPostgres("postgres1") 597var db2 = builder.AddPostgres("postgres2")
PostgrePublicApiTests.cs (5)
29var postgres = builder.AddPostgres("Postgres"); 44var action = () => builder.AddPostgres(name); 56var action = () => builder.AddPostgres(name); 157var postgres = builder.AddPostgres("Postgres"); 204var postgres = builder.AddPostgres("Postgres");
PostgresFunctionalTests.cs (8)
43var postgres = builder.AddPostgres("postgres") 46var dependentResource = builder.AddPostgres("dependentresource") 83var redis = builder.AddPostgres("postgres").WithPgAdmin(c => adminBuilder = c); 112var postgres = builder.AddPostgres("pg").WithEnvironment("POSTGRES_DB", postgresDbName); 153var pg = builder.AddPostgres("pg1"); 210var postgres1 = builder1.AddPostgres("pg", usernameParameter, passwordParameter).WithEnvironment("POSTGRES_DB", postgresDbName); 279var postgres2 = builder2.AddPostgres("pg", usernameParameter, passwordParameter); 379var postgres = builder.AddPostgres("pg").WithEnvironment("POSTGRES_DB", postgresDbName);
Aspire.Hosting.Tests (2)
ManifestGenerationTests.cs (1)
273program.AppBuilder.AddPostgres("postgrescontainer").AddDatabase("postgresdatabase");
Schema\SchemaTests.cs (1)
106builder.AddPostgres("postgres");
PostgresEndToEnd.AppHost (8)
Program.cs (8)
7var db1 = builder.AddPostgres("pg1").WithPgAdmin().AddDatabase("db1"); 8var db2 = builder.AddPostgres("pg2").WithPgAdmin().AddDatabase("db2"); 9var pg3 = builder.AddPostgres("pg3").WithPgAdmin(); 14var db5 = builder.AddPostgres("pg4").WithPgAdmin().PublishAsContainer().AddDatabase("db5"); 15var db6 = builder.AddPostgres("pg5").WithPgAdmin().PublishAsContainer().AddDatabase("db6"); 16var pg6 = builder.AddPostgres("pg6").WithPgAdmin(c => c.WithHostPort(8999).WithImageTag("8.3")).PublishAsContainer(); 22var db10 = builder.AddPostgres("pg10").WithPgAdmin().PublishAsConnectionString().AddDatabase("db10"); 24var db11 = builder.AddPostgres("pg11").WithPgWeb().AddDatabase("postgres");
TestingAppHost1.AppHost (1)
Program.cs (1)
15builder.AddPostgres("postgres1");
TestProject.AppHost (1)
TestProgram.cs (1)
80var postgres = AppBuilder.AddPostgres("postgres")
TestShop.AppHost (1)
Program.cs (1)
3var catalogDb = builder.AddPostgres("postgres")