From 1a2e437b33d090d2ae1dbc46bcc3eae403a16250 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Wed, 8 Jul 2015 16:40:46 -0700 Subject: [PATCH] Factoring out 'dry' run. This doesn't really make sense to have as we don't have a concept of a pre-flight request. Plugin tests should mock out their particular dependencies. --- lemur/plugins/lemur_cloudca/plugin.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lemur/plugins/lemur_cloudca/plugin.py b/lemur/plugins/lemur_cloudca/plugin.py index f1ca11bc..8d42cb3b 100644 --- a/lemur/plugins/lemur_cloudca/plugin.py +++ b/lemur/plugins/lemur_cloudca/plugin.py @@ -306,9 +306,6 @@ class CloudCAPlugin(IssuerPlugin): :param data: :return: """ - if self.dry_run: - endpoint += '?dry_run=1' - data = dumps(dict(data.items() + get_auth_data(data['caName']).items())) # we set a low timeout, if cloudca is down it shouldn't bring down @@ -323,9 +320,6 @@ class CloudCAPlugin(IssuerPlugin): :param endpoint: :return: """ - if self.dry_run: - endpoint += '?dry_run=1' - response = self.session.get(self.url + endpoint, timeout=10, verify=self.ca_bundle) return process_response(response)