Skip to content

fix(mongodbflex): instance unit tests failing#1496

Draft
j1n-o9r wants to merge 2 commits into
mainfrom
fix/STACKITTPR-677-mongodbflex-instance-unit-tests-failing
Draft

fix(mongodbflex): instance unit tests failing#1496
j1n-o9r wants to merge 2 commits into
mainfrom
fix/STACKITTPR-677-mongodbflex-instance-unit-tests-failing

Conversation

@j1n-o9r
Copy link
Copy Markdown
Contributor

@j1n-o9r j1n-o9r commented Jun 1, 2026

Description

Unit tests are failing with SDK mongodbflex v1.9.0 or above.

➜  terraform-provider-stackit git:(fix/STACKITTPR-677-mongodbflex-instance-unit-tests-failing) ✗ go test ./stackit/internal/services/mongodbflex/instance/
# github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/mongodbflex/instance [github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/mongodbflex/instance.test]
stackit/internal/services/mongodbflex/instance/resource_test.go:125:16: cannot use new("READY") (value of type *string) as *v2api.InstanceStatus value in struct literal
stackit/internal/services/mongodbflex/instance/resource_test.go:200:22: cannot use new("READY") (value of type *string) as *v2api.InstanceStatus value in struct literal
stackit/internal/services/mongodbflex/instance/resource_test.go:285:22: cannot use new("READY") (value of type *string) as *v2api.InstanceStatus value in struct literal
FAIL    github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/mongodbflex/instance [build failed]
FAIL

relates to STACKITTPR-677

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

github-actions Bot commented Jun 1, 2026

Merging this branch will not change overall coverage

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

Coverage by file

Changed unit test files

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

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.

1 participant