Current test "#normalize_hostname sets a domain based on name that contains its name if it's nil and such domain exists" is not testing anything because Domain.all does not return any domains to match (as .create was substituted on merge by .build). (cherry picked from commit 6ee8b1c279468601dc2399448f70244f24f58d37)
Related issues
Bug #9500: Wrong domain assigned when they have intersection in the middle of name
Refs #9500 - revert normalize_name tests
Current test "#normalize_hostname sets a domain based on name that contains its name if it's nil and such domain exists" is not testing anything because Domain.all does not return any domains to match (as .create was substituted on merge by .build).
(cherry picked from commit 6ee8b1c279468601dc2399448f70244f24f58d37)