@@ -16,6 +16,10 @@ import (
1616 "github.com/stackitcloud/stackit-sdk-go/services/iaas"
1717)
1818
19+ const (
20+ testRegion = "eu01"
21+ )
22+
1923type testCtxKey struct {}
2024
2125var testCtx = context .WithValue (context .Background (), testCtxKey {}, "foo" )
@@ -26,6 +30,8 @@ var testNetworkAreaId = uuid.NewString()
2630
2731func fixtureFlagValues (mods ... func (flagValues map [string ]string )) map [string ]string {
2832 flagValues := map [string ]string {
33+ globalflags .RegionFlag : testRegion ,
34+
2935 organizationIdFlag : testOrgId ,
3036 networkAreaIdFlag : testNetworkAreaId ,
3137 networkRangeFlag : "1.1.1.0/24" ,
@@ -40,6 +46,7 @@ func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
4046 model := & inputModel {
4147 GlobalFlagModel : & globalflags.GlobalFlagModel {
4248 Verbosity : globalflags .VerbosityDefault ,
49+ Region : testRegion ,
4350 },
4451 OrganizationId : utils .Ptr (testOrgId ),
4552 NetworkAreaId : utils .Ptr (testNetworkAreaId ),
@@ -52,7 +59,7 @@ func fixtureInputModel(mods ...func(model *inputModel)) *inputModel {
5259}
5360
5461func fixtureRequest (mods ... func (request * iaas.ApiCreateNetworkAreaRangeRequest )) iaas.ApiCreateNetworkAreaRangeRequest {
55- request := testClient .CreateNetworkAreaRange (testCtx , testOrgId , testNetworkAreaId )
62+ request := testClient .CreateNetworkAreaRange (testCtx , testOrgId , testNetworkAreaId , testRegion )
5663 request = request .CreateNetworkAreaRangePayload (fixturePayload ())
5764 for _ , mod := range mods {
5865 mod (& request )
0 commit comments