-
Notifications
You must be signed in to change notification settings - Fork 35
Added Security_group_id to tests and added non deprecated machine_type #986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Security_group_id to tests and added non deprecated machine_type #986
Conversation
stackit/internal/services/loadbalancer/loadbalancer_acc_test.go
Outdated
Show resolved
Hide resolved
Acc tests are failing, see below
|
If the acc tests are still failing and the security_group_Id changed again I will do another PR. That one will only check if the attribute is set since its being computated. Unless there is a way to check for the actual computated security_group_id? |
stackit/internal/services/loadbalancer/loadbalancer/datasource.go
Outdated
Show resolved
Hide resolved
stackit/internal/services/loadbalancer/loadbalancer/datasource.go
Outdated
Show resolved
Hide resolved
stackit/internal/services/loadbalancer/loadbalancer_acc_test.go
Outdated
Show resolved
Hide resolved
stackit/internal/services/loadbalancer/loadbalancer/resource.go
Outdated
Show resolved
Hide resolved
stackit/internal/services/loadbalancer/loadbalancer/resource.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acc tests are still failing
➜ terraform-provider-stackit git:(6ca2e58a) TF_ACC=1 go test -timeout=30m ./stackit/internal/services/loadbalancer/loadbalancer_acc_test.go
--- FAIL: TestAccLoadBalancerResourceMin (170.28s)
loadbalancer_acc_test.go:100: Step 1/4 error: Check failed: Check 19/24 error: stackit_loadbalancer.loadbalancer: Attribute 'security_group_id' found when not expected
No load balancers found for project
FAIL
FAIL command-line-arguments 200.412s
FAIL
… the load balancer resource. This allows disabling the automatic assignment of a security group to the targets.
This allows users to reference the ID in security group rules for targets in other networks, enabling cross-network traffic.
This allows users to reference the ID in security group rules for targets in other networks, enabling cross-network traffic.
…es ready if disabletargetsecuritygroupassignment is true
…oceeding, updated docs
…wn before and checking them in the acc test correctly now
e5ec665
to
424201f
Compare
Description
#923 (comment)
#923 (comment)
It was requested that we add the security group id to the tests and change machine_type to non deprecated ones.
Checklist
make fmt
examples/
directory)make generate-docs
(will be checked by CI)make test
(will be checked by CI)make lint
(will be checked by CI)