Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'certbot-ci/certbot_integration_tests/certbot_tests/context.py')
-rw-r--r--certbot-ci/certbot_integration_tests/certbot_tests/context.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/certbot-ci/certbot_integration_tests/certbot_tests/context.py b/certbot-ci/certbot_integration_tests/certbot_tests/context.py
new file mode 100644
index 000000000..9045cd37d
--- /dev/null
+++ b/certbot-ci/certbot_integration_tests/certbot_tests/context.py
@@ -0,0 +1,16 @@
+class IntegrationTestsContext(object):
+ """General fixture describing a certbot integration tests context"""
+ def __init__(self, request):
+ self.request = request
+ if hasattr(request.config, 'slaveinput'): # Worker node
+ self.worker_id = request.config.slaveinput['slaveid']
+ self.acme_xdist = request.config.slaveinput['acme_xdist']
+ else: # Primary node
+ self.worker_id = 'primary'
+ self.acme_xdist = request.config.acme_xdist
+ self.directory_url = self.acme_xdist['directory_url']
+ self.tls_alpn_01_port = self.acme_xdist['https_port'][self.worker_id]
+ self.http_01_port = self.acme_xdist['http_port'][self.worker_id]
+
+ def cleanup(self):
+ pass