Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Commit fb425a3

Browse files
authored
Merge pull request #229 from mthaddon/master
Fix trivial typo in error messages
2 parents 93aa318 + ed98dae commit fb425a3

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

config/incluster_config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ def _load_config(self):
7070
self._environ[SERVICE_PORT_ENV_NAME]))
7171

7272
if not os.path.isfile(self._token_filename):
73-
raise ConfigException("Service token file does not exists.")
73+
raise ConfigException("Service token file does not exist.")
7474

7575
self._read_token_file()
7676

7777
if not os.path.isfile(self._cert_filename):
7878
raise ConfigException(
79-
"Service certification file does not exists.")
79+
"Service certification file does not exist.")
8080

8181
with open(self._cert_filename) as f:
8282
if not f.read():

config/incluster_config_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_empty_host(self):
142142

143143
def test_no_cert_file(self):
144144
loader = self.get_test_loader(cert_filename="not_exists_file_1123")
145-
self._should_fail_load(loader, "cert file does not exists")
145+
self._should_fail_load(loader, "cert file does not exist")
146146

147147
def test_empty_cert_file(self):
148148
loader = self.get_test_loader(
@@ -151,7 +151,7 @@ def test_empty_cert_file(self):
151151

152152
def test_no_token_file(self):
153153
loader = self.get_test_loader(token_filename="not_exists_file_1123")
154-
self._should_fail_load(loader, "token file does not exists")
154+
self._should_fail_load(loader, "token file does not exist")
155155

156156
def test_empty_token_file(self):
157157
loader = self.get_test_loader(

config/kube_config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def as_file(self):
120120
else:
121121
self._file = _create_temp_file_with_content(self._data)
122122
if self._file and not os.path.isfile(self._file):
123-
raise ConfigException("File does not exists: %s" % self._file)
123+
raise ConfigException("File does not exist: %s" % self._file)
124124
return self._file
125125

126126
def as_data(self):

config/kube_config_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_file_given_non_existing_file(self):
178178
temp_filename = NON_EXISTING_FILE
179179
obj = {TEST_FILE_KEY: temp_filename}
180180
t = FileOrData(obj=obj, file_key_name=TEST_FILE_KEY)
181-
self.expect_exception(t.as_file, "does not exists")
181+
self.expect_exception(t.as_file, "does not exist")
182182

183183
def test_file_given_data(self):
184184
obj = {TEST_DATA_KEY: TEST_DATA_BASE64}
@@ -1165,7 +1165,7 @@ def test_ssl_no_cert_files(self):
11651165
active_context="ssl-no_file")
11661166
self.expect_exception(
11671167
loader.load_and_set,
1168-
"does not exists",
1168+
"does not exist",
11691169
FakeConfig())
11701170

11711171
def test_ssl(self):

0 commit comments

Comments
 (0)