diff --git a/pkg/domain/app_website_test.go b/pkg/domain/app_website_test.go index b85e8e1fb..9bcf82277 100644 --- a/pkg/domain/app_website_test.go +++ b/pkg/domain/app_website_test.go @@ -20,6 +20,7 @@ func TestValidateDomain(t *testing.T) { {"ok 4", "underscore_allowed.example.com", false}, {"invalid characters 1", "admin@example.com", true}, {"invalid characters 2", "space not allowed.example.com", true}, + {"invalid characters 3", "UPPERCASE.example.com", true}, {"wildcard ng", "*.trap.show", true}, {"multi wildcard ng", "*.*.trap.show", true}, {"wildcard in middle", "trap.*.show", true}, @@ -157,6 +158,7 @@ func TestWebsite_Validate(t *testing.T) { {"invalid fqdn3", Website{FQDN: "google.*.com", PathPrefix: "/", HTTPPort: 80}, true}, {"invalid fqdn4", Website{FQDN: "goo gle.com", PathPrefix: "/", HTTPPort: 80}, true}, {"invalid fqdn5", Website{FQDN: "no space", PathPrefix: "/", HTTPPort: 80}, true}, + {"invalid fqdn6", Website{FQDN: "UPPERCASE.example.com", PathPrefix: "/", HTTPPort: 80}, true}, {"invalid path1", Website{FQDN: "google.com", PathPrefix: "", HTTPPort: 80}, true}, {"invalid path2", Website{FQDN: "google.com", PathPrefix: "../test", HTTPPort: 80}, true}, {"invalid path3", Website{FQDN: "google.com", PathPrefix: "/test/", HTTPPort: 80}, true},