Skip to content

Commit

Permalink
add test case for all working together
Browse files Browse the repository at this point in the history
  • Loading branch information
weikanglim committed Oct 17, 2024
1 parent 82e0b28 commit 87e8b11
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions cli/azd/internal/scaffold/scaffold_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,51 @@ func TestExecInfra(t *testing.T) {
},
},
},
{
"All",
InfraSpec{
DbPostgres: &DatabasePostgres{
DatabaseName: "appdb",
},
DbCosmosMongo: &DatabaseCosmosMongo{
DatabaseName: "appdb",
},
DbRedis: &DatabaseRedis{},
Services: []ServiceSpec{
{
Name: "api",
Port: 3100,
Backend: &Backend{
Frontends: []ServiceReference{
{
Name: "web",
},
},
},
DbCosmosMongo: &DatabaseReference{
DatabaseName: "appdb",
},
DbRedis: &DatabaseReference{
DatabaseName: "redis",
},
DbPostgres: &DatabaseReference{
DatabaseName: "appdb",
},
},
{
Name: "web",
Port: 3101,
Frontend: &Frontend{
Backends: []ServiceReference{
{
Name: "api",
},
},
},
},
},
},
},
{
"API with Postgres",
InfraSpec{
Expand Down

0 comments on commit 87e8b11

Please sign in to comment.