@@ -13,7 +13,12 @@ import (
1313 "github.com/stackitcloud/stackit-sdk-go/services/iaas"
1414)
1515
16- const projectIdFlag = globalflags .ProjectIdFlag
16+ const (
17+ projectIdFlag = globalflags .ProjectIdFlag
18+ regionFlag = globalflags .RegionFlag
19+
20+ testRegion = "eu01"
21+ )
1722
1823type testCtxKey struct {}
1924
@@ -38,6 +43,7 @@ func fixtureArgValues(mods ...func(argValues []string)) []string {
3843func fixtureFlagValues (mods ... func (flagValues map [string ]string )) map [string ]string {
3944 flagValues := map [string ]string {
4045 projectIdFlag : testProjectId ,
46+ regionFlag : testRegion ,
4147 }
4248 for _ , mod := range mods {
4349 mod (flagValues )
@@ -50,6 +56,7 @@ func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
5056 GlobalFlagModel : & globalflags.GlobalFlagModel {
5157 Verbosity : globalflags .VerbosityDefault ,
5258 ProjectId : testProjectId ,
59+ Region : testRegion ,
5360 },
5461 AffinityGroupId : testAffinityGroupId ,
5562 }
@@ -60,7 +67,7 @@ func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
6067}
6168
6269func fixtureRequest (mods ... func (request * iaas.ApiDeleteAffinityGroupRequest )) iaas.ApiDeleteAffinityGroupRequest {
63- request := testClient .DeleteAffinityGroup (testCtx , testProjectId , testAffinityGroupId )
70+ request := testClient .DeleteAffinityGroup (testCtx , testProjectId , testRegion , testAffinityGroupId )
6471 for _ , mod := range mods {
6572 mod (& request )
6673 }
0 commit comments