Update expected messages.

This commit is contained in:
Philippe PITTOLI 2024-04-28 16:17:47 +02:00
parent ebd9bd75a5
commit 723c1a83a0

View File

@ -51,7 +51,11 @@ class DNSManager::Client < IPC
def user_domain_add(domain : String)
request = Request::NewDomain.new domain
send_now request
parse_message [ Response::Success ], read
parse_message [ Response::DomainAdded,
Response::DomainAlreadyExists,
Response::InvalidDomainName,
Response::UnacceptableDomain
], read
end
# Remove a domain.