Include epplibwrapper module

This commit is contained in:
Seamus Johnston 2023-04-21 09:08:47 -05:00
parent d3cc3853c1
commit ce7cfc1a53
No known key found for this signature in database
GPG key ID: 2F21225985069105
14 changed files with 325 additions and 49 deletions

View file

@ -7,7 +7,8 @@ from django.db import models
from django_fsm import FSMField, transition # type: ignore
from api.views import in_domains
from epp.mock_epp import domain_info, domain_check
# from epplibwrapper import CLIENT as registry, commands
from registrar.utility import errors
from .utility.time_stamped_model import TimeStampedModel
@ -129,7 +130,7 @@ class Domain(TimeStampedModel):
"""Check if a domain is available.
Not implemented. Returns a dummy value for testing."""
return domain_check(domain)
return False # domain_check(domain)
def transfer(self):
"""Going somewhere. Not implemented."""
@ -146,7 +147,7 @@ class Domain(TimeStampedModel):
if not hasattr(self, "info"):
try:
# get info from registry
self.info = domain_info(self.name)
self.info = {} # domain_info(self.name)
except Exception as e:
logger.error(e)
# TODO: back off error handling