Skip to content

Commit 743c305

Browse files
committed
Increase strictness of link cleaning in e2e test parsing code
1 parent 1a1f846 commit 743c305

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)