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