Skip to content

Commit

Permalink
fix: update expiration date (#2866)
Browse files Browse the repository at this point in the history
  • Loading branch information
jremy42 authored Jan 8, 2025
1 parent 6efe006 commit 4dda9fb
Show file tree
Hide file tree
Showing 3 changed files with 903 additions and 2,422 deletions.
6 changes: 3 additions & 3 deletions internal/services/mongodb/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestAccMongoDBSnapshot_Basic(t *testing.T) {
resource "scaleway_mongodb_snapshot" "main" {
instance_id = scaleway_mongodb_instance.main.id
name = "test-snapshot"
expires_at = "2024-12-31T23:59:59Z"
expires_at = "2025-12-31T23:59:59Z"
}
`,
Check: resource.ComposeTestCheckFunc(
Expand Down Expand Up @@ -69,11 +69,11 @@ func TestAccMongoDBSnapshot_Update(t *testing.T) {
resource "scaleway_mongodb_snapshot" "main" {
instance_id = scaleway_mongodb_instance.main.id
name = "test-snapshot"
expires_at = "2024-12-31T23:59:59Z"
expires_at = "2025-12-31T23:59:59Z"
}
`,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("scaleway_mongodb_snapshot.main", "expires_at", "2024-12-31T23:59:59Z"),
resource.TestCheckResourceAttr("scaleway_mongodb_snapshot.main", "expires_at", "2025-12-31T23:59:59Z"),
),
},
{
Expand Down
Loading

0 comments on commit 4dda9fb

Please sign in to comment.