Skip to content

Commit 6671bc0

Browse files
Specify zones for HdT e2e tests
1 parent dd4bc61 commit 6671bc0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/e2e/tests/setup_e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var (
3838
project = flag.String("project", "", "Project to run tests in")
3939
serviceAccount = flag.String("service-account", "", "Service account to bring up instance with")
4040
architecture = flag.String("arch", "amd64", "Architecture pd csi driver build on")
41-
zones = flag.String("zones", "us-central1-c,us-central1-b", "Zones to run tests in. If there are multiple zones, separate each by comma")
41+
zones = flag.String("zones", "us-central1-c,us-central1-a", "Zones to run tests in. If there are multiple zones, separate each by comma")
4242
machineType = flag.String("machine-type", "n2-standard-2", "Type of machine to provision instance on")
4343
imageURL = flag.String("image-url", "projects/debian-cloud/global/images/family/debian-11", "OS image url to get image from")
4444
runInProw = flag.Bool("run-in-prow", false, "If true, use a Boskos loaned project and special CI service accounts and ssh keys")

test/e2e/tests/single_zone_e2e_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ var _ = Describe("GCE PD CSI Driver", func() {
276276
client := testContext.Client
277277
instance := testContext.Instance
278278

279+
if diskType == hdtDiskType {
280+
z = "us-central1-a"
281+
}
282+
279283
volName, _ := createAndValidateUniqueZonalDisk(client, p, z, diskType)
280284

281285
underSpecifiedID := common.GenerateUnderspecifiedVolumeID(volName, true /* isZonal */)

0 commit comments

Comments
 (0)