canonical / httprequest-lego-provider

httprequest-lego-provider - charm repository.
Apache License 2.0
0 stars 3 forks source link

There are a number of top level variables in dns.py that should be moved for easier testing #38

Closed mthaddon closed 8 months ago

mthaddon commented 8 months ago

Enhancement Proposal

Currently we have a number of top level variables in httprequest_lego_provider/dns.py that should be moved for easier testing:

FILENAME_TEMPLATE = "{domain}.domain"
SPLIT_GIT_REPO_URL = GIT_REPO_URL.split("@")
REPOSITORY_BASE_URL = "@".join(SPLIT_GIT_REPO_URL[:2])
REPOSITORY_USER = SPLIT_GIT_REPO_URL[0].split("//")[1]
REPOSITORY_BRANCH = SPLIT_GIT_REPO_URL[2] if len(SPLIT_GIT_REPO_URL) > 2 else None
RECORD_CONTENT = "{record} 600 IN TXT \042{value}\042\n"