@@ -14,7 +14,12 @@ import (
1414 "github.com/stackitcloud/stackit-sdk-go/services/iaas"
1515)
1616
17- var projectIdFlag = globalflags .ProjectIdFlag
17+ const (
18+ projectIdFlag = globalflags .ProjectIdFlag
19+ regionFlag = globalflags .RegionFlag
20+
21+ testRegion = "eu01"
22+ )
1823
1924type testCtxKey struct {}
2025
@@ -37,7 +42,9 @@ func fixtureArgValues(mods ...func(argValues []string)) []string {
3742
3843func fixtureFlagValues (mods ... func (flagValues map [string ]string )) map [string ]string {
3944 flagValues := map [string ]string {
40- projectIdFlag : testProjectId ,
45+ projectIdFlag : testProjectId ,
46+ regionFlag : testRegion ,
47+
4148 associatedResourceIdFlag : testAssociatedResourceId ,
4249 }
4350 for _ , mod := range mods {
@@ -51,6 +58,7 @@ func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
5158 GlobalFlagModel : & globalflags.GlobalFlagModel {
5259 ProjectId : testProjectId ,
5360 Verbosity : globalflags .VerbosityDefault ,
61+ Region : testRegion ,
5462 },
5563 PublicIpId : testPublicIpId ,
5664 AssociatedResourceId : utils .Ptr (testAssociatedResourceId ),
@@ -62,7 +70,7 @@ func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
6270}
6371
6472func fixtureRequest (mods ... func (request * iaas.ApiUpdatePublicIPRequest )) iaas.ApiUpdatePublicIPRequest {
65- request := testClient .UpdatePublicIP (testCtx , testProjectId , testPublicIpId )
73+ request := testClient .UpdatePublicIP (testCtx , testProjectId , testRegion , testPublicIpId )
6674 request = request .UpdatePublicIPPayload (fixturePayload ())
6775 for _ , mod := range mods {
6876 mod (& request )
0 commit comments