Skip to content

Commit e8582ae

Browse files
authored
Merge pull request #1544 from pwschuurman/fix-gce-link-cleaning
Increase strictness of fully qualified GCP link cleaning in e2e test parsing code
2 parents daae642 + 743c305 commit e8582ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/tests/single_zone_e2e_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ func createAndValidateUniqueZonalMultiWriterDisk(client *remote.CsiClient, proje
14071407
}
14081408

14091409
func cleanSelfLink(selfLink string) string {
1410-
r, _ := regexp.Compile("https:\\/\\/www.*apis.com\\/.*(v1|beta|alpha)\\/")
1410+
r, _ := regexp.Compile("https:\\/\\/www.*apis.com\\/[a-z]+\\/(v1|beta|alpha)\\/")
14111411
return r.ReplaceAllString(selfLink, "")
14121412
}
14131413

0 commit comments

Comments
 (0)