File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ const (
71
71
// Example: us
72
72
multiRegionalLocationFmt = "^[a-z]+$"
73
73
// Example: us-east1
74
- regionalLocationFmt = "^[a-z]+-[a-z]+[0-9]+ $"
74
+ regionalLocationFmt = "^[a-z]+-[a-z]+[0-9]{1,2} $"
75
75
76
76
// Full or partial URL of the machine type resource, in the format:
77
77
// zones/zone/machineTypes/machine-type
Original file line number Diff line number Diff line change @@ -804,10 +804,16 @@ func TestSnapshotStorageLocations(t *testing.T) {
804
804
[]string {"us-east1" },
805
805
false ,
806
806
},
807
+ {
808
+ "valid region in large continent" ,
809
+ "europe-west12" ,
810
+ []string {"europe-west12" },
811
+ false ,
812
+ },
807
813
{
808
814
// Zones are not valid bucket/snapshot locations.
809
815
"single zone" ,
810
- "us-east1a " ,
816
+ "us-east1-a " ,
811
817
[]string {},
812
818
true ,
813
819
},
You can’t perform that action at this time.
0 commit comments