Add SSL certificate utility and tests

This commit is contained in:
Joseph Schorr 2016-12-09 18:31:02 -05:00
parent f1c9965edf
commit 3a24871422
5 changed files with 205 additions and 46 deletions

View file

@ -79,7 +79,7 @@ class KubernetesConfigProvider(FileConfigProvider):
# as an error, as it seems to be a common issue.
namespace_url = 'namespaces/%s' % (QE_NAMESPACE)
response = self._execute_k8s_api('GET', namespace_url)
if response.status_code / 100 != 2:
if response.status_code // 100 != 2:
msg = 'A Kubernetes namespace with name `%s` must be created to save config' % QE_NAMESPACE
raise CannotWriteConfigException(msg)