@@ -15,7 +15,12 @@ import (
1515 "github.com/stackitcloud/stackit-sdk-go/services/iaas"
1616)
1717
18- var projectIdFlag = globalflags .ProjectIdFlag
18+ const (
19+ projectIdFlag = globalflags .ProjectIdFlag
20+ regionFlag = globalflags .RegionFlag
21+
22+ testRegion = "eu01"
23+ )
1924
2025type testCtxKey struct {}
2126
2833func fixtureFlagValues (mods ... func (flagValues map [string ]string )) map [string ]string {
2934 flagValues := map [string ]string {
3035 projectIdFlag : testProjectId ,
36+ regionFlag : testRegion ,
3137 }
3238 for _ , mod := range mods {
3339 mod (flagValues )
@@ -37,7 +43,11 @@ func fixtureFlagValues(mods ...func(flagValues map[string]string)) map[string]st
3743
3844func fixtureInputModel (mods ... func (model * inputModel )) * inputModel {
3945 model := & inputModel {
40- GlobalFlagModel : & globalflags.GlobalFlagModel {ProjectId : testProjectId , Verbosity : globalflags .VerbosityDefault },
46+ GlobalFlagModel : & globalflags.GlobalFlagModel {
47+ ProjectId : testProjectId ,
48+ Region : testRegion ,
49+ Verbosity : globalflags .VerbosityDefault ,
50+ },
4151 }
4252 for _ , mod := range mods {
4353 mod (model )
@@ -46,7 +56,7 @@ func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
4656}
4757
4858func fixtureRequest (mods ... func (request * iaas.ApiListQuotasRequest )) iaas.ApiListQuotasRequest {
49- request := testClient .ListQuotas (testCtx , testProjectId )
59+ request := testClient .ListQuotas (testCtx , testProjectId , testRegion )
5060 for _ , mod := range mods {
5161 mod (& request )
5262 }
0 commit comments