Renewer: restore IConfig.simple_http_port data type.

This commit is contained in:
Jakub Warmuz
2015-10-04 19:50:27 +00:00
parent 4d25cabfe2
commit ed70c948aa
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -70,6 +70,7 @@ def renew(cert, old_version):
# was an int, not a str)
config.rsa_key_size = int(config.rsa_key_size)
config.dvsni_port = int(config.dvsni_port)
config.namespace.simple_http_port = int(config.namespace.simple_http_port)
zope.component.provideUtility(config)
try:
authenticator = plugins[renewalparams["authenticator"]]
+1
View File
@@ -625,6 +625,7 @@ class RenewableCertTests(BaseRenewableCertTest):
self.test_rc.configfile["renewalparams"]["server"] = "acme.example.com"
self.test_rc.configfile["renewalparams"]["authenticator"] = "fake"
self.test_rc.configfile["renewalparams"]["dvsni_port"] = "4430"
self.test_rc.configfile["renewalparams"]["simple_http_port"] = "1234"
self.test_rc.configfile["renewalparams"]["account"] = "abcde"
mock_auth = mock.MagicMock()
mock_pd.PluginsRegistry.find_all.return_value = {"apache": mock_auth}