Skip to content

Conversation

@GokceGK
Copy link
Contributor

@GokceGK GokceGK commented Jan 14, 2026

Description

relates to STACKITTPR-456

Checklist

  • Issue was linked above
  • [X ] 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
  • [ X] 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)

@GokceGK GokceGK requested a review from a team as a code owner January 14, 2026 14:46
@github-actions
Copy link

Merging this branch changes the coverage (1 decrease, 5 increase)

Impacted Packages Coverage Δ 🤖
github.com/stackitcloud/terraform-provider-stackit/stackit 1.54% (ø)
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas 0.00% (ø)
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/route 15.27% (+15.27%) 🎉
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/routes 32.88% (+32.88%) 🌟
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/shared 48.44% (+48.44%) 🌟
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/table 17.04% (+17.04%) 🎉
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/tables 31.88% (+31.88%) 🌟
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaasalpha 0.00% (ø)
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaasalpha/utils 0.00% (-75.00%) 💀 💀 💀 💀 💀

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/route/datasource.go 0.00% (ø) 48 (+48) 0 48 (+48)
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/route/resource.go 18.50% (+18.50%) 227 (+227) 42 (+42) 185 (+185) 🎉
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/routes/datasource.go 32.88% (+32.88%) 73 (+73) 24 (+24) 49 (+49) 🌟
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/shared/route.go 77.50% (+77.50%) 80 (+80) 62 (+62) 18 (+18) 🌟
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/shared/shared.go 0.00% (ø) 48 (+48) 0 48 (+48)
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/table/datasource.go 22.58% (+22.58%) 62 (+62) 14 (+14) 48 (+48) 🌟
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/table/resource.go 15.38% (+15.38%) 208 (+208) 32 (+32) 176 (+176) 🎉
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/tables/datasource.go 31.88% (+31.88%) 69 (+69) 22 (+22) 47 (+47) 🌟
github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaasalpha/utils/util.go 0.00% (-75.00%) 0 (-8) 0 (-6) 0 (-2) 💀 💀 💀 💀 💀
github.com/stackitcloud/terraform-provider-stackit/stackit/provider.go 1.54% (ø) 130 2 128

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/iaas_acc_test.go
  • github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/route/resource_test.go
  • github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/routes/datasource_test.go
  • github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/shared/route_test.go
  • github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/table/datasource_test.go
  • github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/table/resource_test.go
  • github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaas/routingtable/tables/datasource_test.go
  • github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaasalpha/iaasalpha_acc_test.go
  • github.com/stackitcloud/terraform-provider-stackit/stackit/internal/services/iaasalpha/utils/util_test.go

var testConfigNetworkAreaVarsMin = config.Variables{
"organization_id": config.StringVariable(testutil.OrganizationId),
"name": config.StringVariable(fmt.Sprintf("tf-acc-%s", acctest.RandStringFromCharSet(5, acctest.CharSetAlpha))),
"name": config.StringVariable(fmt.Sprintf("GGK-tf-acc-%s", acctest.RandStringFromCharSet(5, acctest.CharSetAlpha))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: Prefix can be removed

Suggested change
"name": config.StringVariable(fmt.Sprintf("GGK-tf-acc-%s", acctest.RandStringFromCharSet(5, acctest.CharSetAlpha))),
"name": config.StringVariable(fmt.Sprintf("tf-acc-%s", acctest.RandStringFromCharSet(5, acctest.CharSetAlpha))),

var testConfigNetworkAreaVarsMax = config.Variables{
"organization_id": config.StringVariable(testutil.OrganizationId),
"name": config.StringVariable(fmt.Sprintf("tf-acc-%s", acctest.RandStringFromCharSet(5, acctest.CharSetAlpha))),
"name": config.StringVariable(fmt.Sprintf("GGK-tf-acc-%s", acctest.RandStringFromCharSet(5, acctest.CharSetAlpha))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here


var testConfigRoutingTableMin = config.Variables{
"organization_id": config.StringVariable(testutil.OrganizationId),
"name": config.StringVariable(fmt.Sprintf("GGK-acc-test-%s", acctest.RandStringFromCharSet(5, acctest.CharSetAlphaNum))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"name": config.StringVariable(fmt.Sprintf("GGK-acc-test-%s", acctest.RandStringFromCharSet(5, acctest.CharSetAlphaNum))),
"name": config.StringVariable(fmt.Sprintf("acc-test-%s", acctest.RandStringFromCharSet(5, acctest.CharSetAlphaNum))),


features.CheckExperimentEnabled(ctx, &r.providerData, features.RoutingTablesExperiment, "stackit_routing_table_route", core.Resource, &resp.Diagnostics)
if resp.Diagnostics.HasError() {
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove now the experimental flag for routing tables because it doesn't use alpha anymore


features.CheckExperimentEnabled(ctx, &d.providerData, features.RoutingTablesExperiment, "stackit_routing_table_routes", core.Datasource, &resp.Diagnostics)
if resp.Diagnostics.HasError() {
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same check can be removed here


features.CheckExperimentEnabled(ctx, &d.providerData, features.RoutingTablesExperiment, "stackit_routing_table", core.Datasource, &resp.Diagnostics)
if resp.Diagnostics.HasError() {
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here


features.CheckExperimentEnabled(ctx, &r.providerData, features.RoutingTablesExperiment, "stackit_routing_table", core.Resource, &resp.Diagnostics)
if resp.Diagnostics.HasError() {
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here


features.CheckExperimentEnabled(ctx, &d.providerData, features.RoutingTablesExperiment, "stackit_routing_tables", core.Datasource, &resp.Diagnostics)
if resp.Diagnostics.HasError() {
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

experimental check

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.

4 participants