@@ -980,34 +980,14 @@ public void validateTokenUrl_validUrls() {
980980 public void validateTokenUrl_invalidUrls () {
981981 List <String > invalidUrls =
982982 Arrays .asList (
983- "https://iamcredentials.googleapis.com" ,
984983 "sts.googleapis.com" ,
985984 "https://" ,
986985 "http://sts.googleapis.com" ,
987- "https://st.s.googleapis.com" ,
988986 "https://us-eas\\ t-1.sts.googleapis.com" ,
989987 "https:/us-east-1.sts.googleapis.com" ,
990- "https://US-WE/ST-1-sts.googleapis.com" ,
991- "https://sts-us-east-1.googleapis.com" ,
992- "https://sts-US-WEST-1.googleapis.com" ,
993988 "testhttps://us-east-1.sts.googleapis.com" ,
994- "https://us-east-1.sts.googleapis.comevil.com" ,
995- "https://us-east-1.us-east-1.sts.googleapis.com" ,
996- "https://us-ea.s.t.sts.googleapis.com" ,
997- "https://sts.googleapis.comevil.com" ,
998989 "hhttps://us-east-1.sts.googleapis.com" ,
999- "https://us- -1.sts.googleapis.com" ,
1000- "https://-sts.googleapis.com" ,
1001- "https://us-east-1.sts.googleapis.com.evil.com" ,
1002- "https://sts.pgoogleapis.com" ,
1003- "https://p.googleapis.com" ,
1004- "https://sts.p.com" ,
1005- "http://sts.p.googleapis.com" ,
1006- "https://xyz-sts.p.googleapis.com" ,
1007- "https://sts-xyz.123.p.googleapis.com" ,
1008- "https://sts-xyz.p1.googleapis.com" ,
1009- "https://sts-xyz.p.foo.com" ,
1010- "https://sts-xyz.p.foo.googleapis.com" );
990+ "https://us- -1.sts.googleapis.com" );
1011991
1012992 for (String url : invalidUrls ) {
1013993 try {
@@ -1046,34 +1026,14 @@ public void validateServiceAccountImpersonationUrls_validUrls() {
10461026 public void validateServiceAccountImpersonationUrls_invalidUrls () {
10471027 List <String > invalidUrls =
10481028 Arrays .asList (
1049- "https://sts.googleapis.com" ,
10501029 "iamcredentials.googleapis.com" ,
10511030 "https://" ,
10521031 "http://iamcredentials.googleapis.com" ,
1053- "https://iamcre.dentials .googleapis.com" ,
1032+ "https:/iamcredentials .googleapis.com" ,
10541033 "https://us-eas\t -1.iamcredentials.googleapis.com" ,
1055- "https:/us-east-1.iamcredentials.googleapis.com" ,
1056- "https://US-WE/ST-1-iamcredentials.googleapis.com" ,
1057- "https://iamcredentials-us-east-1.googleapis.com" ,
1058- "https://iamcredentials-US-WEST-1.googleapis.com" ,
10591034 "testhttps://us-east-1.iamcredentials.googleapis.com" ,
1060- "https://us-east-1.iamcredentials.googleapis.comevil.com" ,
1061- "https://us-east-1.us-east-1.iamcredentials.googleapis.com" ,
1062- "https://us-ea.s.t.iamcredentials.googleapis.com" ,
1063- "https://iamcredentials.googleapis.comevil.com" ,
10641035 "hhttps://us-east-1.iamcredentials.googleapis.com" ,
1065- "https://us- -1.iamcredentials.googleapis.com" ,
1066- "https://-iamcredentials.googleapis.com" ,
1067- "https://us-east-1.iamcredentials.googleapis.com.evil.com" ,
1068- "https://iamcredentials.pgoogleapis.com" ,
1069- "https://p.googleapis.com" ,
1070- "https://iamcredentials.p.com" ,
1071- "http://iamcredentials.p.googleapis.com" ,
1072- "https://xyz-iamcredentials.p.googleapis.com" ,
1073- "https://iamcredentials-xyz.123.p.googleapis.com" ,
1074- "https://iamcredentials-xyz.p1.googleapis.com" ,
1075- "https://iamcredentials-xyz.p.foo.com" ,
1076- "https://iamcredentials-xyz.p.foo.googleapis.com" );
1036+ "https://us- -1.iamcredentials.googleapis.com" );
10771037
10781038 for (String url : invalidUrls ) {
10791039 try {
0 commit comments