Added more test cases with port numbers for URLValidator.

This commit is contained in:
Wu Haotian 2021-07-22 16:10:58 +08:00 committed by Mariusz Felisiak
parent 83022d279c
commit b96cc7f85e
2 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,10 @@ foo
http://
http://example
http://example.
http://example.com:-1
http://example.com:-1/
http://example.com:000000080
http://example.com:000000080/
http://.com
http://invalid-.com
http://-invalid.com

View File

@ -2,6 +2,8 @@ http://www.djangoproject.com/
HTTP://WWW.DJANGOPROJECT.COM/
http://localhost/
http://example.com/
http://example.com:65535
http://example.com:65535/
http://example.com./
http://www.example.com/
http://www.example.com:8000/test
@ -27,6 +29,8 @@ http://userid@example.com
http://userid@example.com/
http://userid@example.com:8080
http://userid@example.com:8080/
http://userid@example.com:65535
http://userid@example.com:65535/
http://userid:@example.com
http://userid:@example.com/
http://userid:@example.com:8080
@ -35,6 +39,8 @@ http://userid:password@example.com
http://userid:password@example.com/
http://userid:password@example.com:8080
http://userid:password@example.com:8080/
http://userid:password@example.com:65535
http://userid:password@example.com:65535/
https://userid:paaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassword@example.com
https://userid:paaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaassword@example.com:8080
https://useridddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd:password@example.com