Skip to content

Commit

Permalink
Add PostgreSQL configuration resource and test (#1139)
Browse files Browse the repository at this point in the history
* Add PostgreSQL configuration resource and test

Signed-off-by: Steffen Exler <[email protected]>

* Update PostgreSQL configuration validation and add new options

Signed-off-by: Steffen Exler <[email protected]>

* Update digitalocean/database/resource_database_postgres_config_test.go

Co-authored-by: danaelhe <[email protected]>

* execute make terrafmt

Signed-off-by: Steffen Exler <[email protected]>

* Update digitalocean/database/resource_database_postgres_config.go

Co-authored-by: danaelhe <[email protected]>

* add computed:true, helper fxns, update docs

* make terrafmt

* add jit

* terrafmt

---------

Signed-off-by: Steffen Exler <[email protected]>
Co-authored-by: danaelhe <[email protected]>
  • Loading branch information
linuxluigi and danaelhe authored Apr 18, 2024
1 parent 6e1475f commit 38c672f
Show file tree
Hide file tree
Showing 5 changed files with 961 additions and 0 deletions.
11 changes: 11 additions & 0 deletions digitalocean/database/resource_database_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,17 @@ resource "digitalocean_database_cluster" "foobar" {
tags = ["production"]
}`

const testAccCheckDigitalOceanDatabaseClusterPostgreSQL = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "pg"
version = "%s"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
tags = ["production"]
}`

const testAccCheckDigitalOceanDatabaseClusterConfigWithEvictionPolicy = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
Expand Down
Loading

0 comments on commit 38c672f

Please sign in to comment.