Skip to content

fix(mongodbflex): fixed wrong dailySnapshotRetentionDays parameter - #1462

Merged
j1n-o9r merged 1 commit into
mainfrom
fix/STACKITTPR-663-mongodbflex-acc-tests-are-failing
May 18, 2026
Merged

j1n-o9r merged 1 commit into
mainfrom
fix/STACKITTPR-663-mongodbflex-acc-tests-are-failing

Conversation

@j1n-o9r

@j1n-o9r j1n-o9r commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Description

Acc tests for Mongodbflex are failing:

➜  terraform-provider-stackit git:(main) ✗ TF_ACC=1 go test -v ./stackit/internal/services/mongodbflex/mongodbflex_acc_test.go
=== RUN   TestAccMongoDBFlexFlexResource
    mongodbflex_acc_test.go:110: Step 1/5 error: Error running apply: exit status 1
        
        Error: Error creating instance
        
          with stackit_mongodbflex_instance.instance,
          on terraform_plugin_test.tf line 17, in resource "stackit_mongodbflex_instance" "instance":
          17:                           resource "stackit_mongodbflex_instance" "instance" {
        
        Updating options: 400 Bad Request, status code 400, Body: {"message":"error
        validating
        parameters","code":400,"type":"Validation","fields":{"dailySnapshotRetentionDays":["daily
        snapshot retention days must be one of: [0 3 4 5 6 7 15 30 60 90]"]}}
        
        
        Trace ID: "adf460d1e13cf723b74d2e2c86ea1e84"
--- FAIL: TestAccMongoDBFlexFlexResource (439.29s)
FAIL
FAIL    command-line-arguments  439.900s
FAIL

relates to STACKITTPR-663

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see examples/ directory)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Acceptance tests got implemented or updated (see e.g. here)
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

@github-actions

Copy link
Copy Markdown

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/mongodbflex 0.00% (ø)

Coverage by file

Changed unit test files

  • github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/mongodbflex/mongodbflex_acc_test.go

@j1n-o9r
j1n-o9r marked this pull request as ready for review May 18, 2026 10:22
@j1n-o9r
j1n-o9r requested a review from a team as a code owner May 18, 2026 10:22
@j1n-o9r
j1n-o9r merged commit d219183 into main May 18, 2026
3 checks passed
@j1n-o9r
j1n-o9r deleted the fix/STACKITTPR-663-mongodbflex-acc-tests-are-failing branch May 18, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants