Skip to content

Commit 8ad2461

Browse files
committed
Merge pull request #600 from edsantiago/typo_fix_dependent
minor typo fixes
2 parents 42671ec + ea4a2c0 commit 8ad2461

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

subtests/docker_cli/run_attach/run_attach.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ def _init_container(self, tty, cmd, cmd_input='\n'):
6060
result = cmd.cmdresult
6161
return result
6262

63-
def _init_test_depenent(self):
63+
def _init_test_dependent(self):
6464
"""
6565
Override this with your desired test setup.
6666
"""
67-
raise NotImplementedError("Override this methodin your test!")
67+
raise NotImplementedError("Override this method in your test!")
6868

6969
def _populate_expected_results(self):
7070
"""
@@ -138,7 +138,7 @@ def initialize(self):
138138
config.none_if_empty(self.config)
139139
self.sub_stuff['dc'] = DockerContainers(self)
140140
self.sub_stuff['containers'] = []
141-
self._init_test_depenent()
141+
self._init_test_dependent()
142142
# TODO: Test w/ tty=True when some DockerCmd class supports pty
143143
# for tty in (True, False): # generate matrix of tested variants
144144
tty = False
@@ -233,7 +233,7 @@ class none(run_attach_base):
233233
should fail.
234234
"""
235235

236-
def _init_test_depenent(self):
236+
def _init_test_dependent(self):
237237
self.sub_stuff['subargs'] = ['']
238238
self._populate_expected_results()
239239

@@ -245,7 +245,7 @@ class stdin(run_attach_base):
245245
(prints the container's id)
246246
"""
247247

248-
def _init_test_depenent(self):
248+
def _init_test_dependent(self):
249249
self.sub_stuff['subargs'] = ['-a stdin']
250250
self._populate_expected_results()
251251

@@ -256,7 +256,7 @@ class stdout(run_attach_base):
256256
Only stdout is attached, stdin fails and no output in stderr.
257257
"""
258258

259-
def _init_test_depenent(self):
259+
def _init_test_dependent(self):
260260
self.sub_stuff['subargs'] = ['-a stdout']
261261
self._populate_expected_results()
262262

@@ -267,7 +267,7 @@ class stderr(run_attach_base):
267267
Only stderr is attached, stdin fails, no output in stdout.
268268
"""
269269

270-
def _init_test_depenent(self):
270+
def _init_test_dependent(self):
271271
self.sub_stuff['subargs'] = ['-a stderr']
272272
self._populate_expected_results()
273273

@@ -278,7 +278,7 @@ class in_out(run_attach_base):
278278
stdin/stdout are attached, no output in stderr
279279
"""
280280

281-
def _init_test_depenent(self):
281+
def _init_test_dependent(self):
282282
self.sub_stuff['subargs'] = ['-a stdin', '-a stdout']
283283
self._populate_expected_results()
284284

@@ -289,7 +289,7 @@ class in_err(run_attach_base):
289289
stdin/stderr are attached, no output in stdout
290290
"""
291291

292-
def _init_test_depenent(self):
292+
def _init_test_dependent(self):
293293
self.sub_stuff['subargs'] = ['-a stdin', '-a stderr']
294294
self._populate_expected_results()
295295

@@ -300,7 +300,7 @@ class in_out_err(run_attach_base):
300300
All streams attached, output should be found in correct streams.
301301
"""
302302

303-
def _init_test_depenent(self):
303+
def _init_test_dependent(self):
304304
self.sub_stuff['subargs'] = ['-a stdin', '-a stdout', '-a stderr']
305305
self._populate_expected_results()
306306

@@ -313,8 +313,8 @@ class i_stdin(stdin):
313313
:note: uses --interactive
314314
"""
315315

316-
def _init_test_depenent(self):
317-
super(i_stdin, self)._init_test_depenent()
316+
def _init_test_dependent(self):
317+
super(i_stdin, self)._init_test_dependent()
318318
self.sub_stuff['subargs'].append('--interactive')
319319

320320

@@ -325,8 +325,8 @@ class i_in_out(in_out):
325325
:note: uses --interactive
326326
"""
327327

328-
def _init_test_depenent(self):
329-
super(i_in_out, self)._init_test_depenent()
328+
def _init_test_dependent(self):
329+
super(i_in_out, self)._init_test_dependent()
330330
self.sub_stuff['subargs'].append('--interactive')
331331

332332

@@ -337,8 +337,8 @@ class i_in_err(in_err):
337337
:note: uses --interactive
338338
"""
339339

340-
def _init_test_depenent(self):
341-
super(i_in_err, self)._init_test_depenent()
340+
def _init_test_dependent(self):
341+
super(i_in_err, self)._init_test_dependent()
342342
self.sub_stuff['subargs'].append('--interactive')
343343

344344

@@ -349,6 +349,6 @@ class i_in_out_err(in_out_err):
349349
:note: uses --interactive
350350
"""
351351

352-
def _init_test_depenent(self):
353-
super(i_in_out_err, self)._init_test_depenent()
352+
def _init_test_dependent(self):
353+
super(i_in_out_err, self)._init_test_dependent()
354354
self.sub_stuff['subargs'].append('--interactive')

subtests/docker_cli/run_user/run_user.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ def _init_container(self, subargs, cmd):
7676
subargs.append(cmd)
7777
self.sub_stuff['cmd'] = DockerCmd(self, 'run', subargs)
7878

79-
def _init_test_depenent(self):
79+
def _init_test_dependent(self):
8080
"""
8181
Override this with your desired test setup.
8282
"""
8383
self.sub_stuff['execution_failure'] = None
8484
self.sub_stuff['uid_check'] = None
8585
self.sub_stuff['whoami_check'] = None
8686
self.sub_stuff['subargs'] = None
87-
raise NotImplementedError("Override this methodin your test!")
87+
raise NotImplementedError("Override this method in your test!")
8888

8989
def initialize(self):
9090
"""
@@ -94,7 +94,7 @@ def initialize(self):
9494
# Prepare a container
9595
config.none_if_empty(self.config)
9696
self.sub_stuff['dc'] = DockerContainers(self)
97-
self._init_test_depenent()
97+
self._init_test_dependent()
9898
self._init_container(self.sub_stuff['subargs'],
9999
self.config['exec_cmd'])
100100

@@ -161,7 +161,7 @@ class default(run_user_base):
161161
Doesn't use "-u" and expects the default user to be root::0
162162
"""
163163

164-
def _init_test_depenent(self):
164+
def _init_test_dependent(self):
165165
self.sub_stuff['execution_failure'] = False
166166
self.sub_stuff['uid_check'] = "UIDCHECK: 0:"
167167
self.sub_stuff['whoami_check'] = "WHOAMICHECK: root"
@@ -174,7 +174,7 @@ class named_user(run_user_base):
174174
Finds any user but root existing on container and uses it by name
175175
"""
176176

177-
def _init_test_depenent(self):
177+
def _init_test_dependent(self):
178178
user = None
179179
for line in self.parent_subtest.stuff['passwd'].splitlines():
180180
line = line.strip()
@@ -200,7 +200,7 @@ class num_user(run_user_base):
200200
Finds any user but root existing on container and uses it by uid
201201
"""
202202

203-
def _init_test_depenent(self):
203+
def _init_test_dependent(self):
204204
user = None
205205
for line in self.parent_subtest.stuff['passwd'].splitlines():
206206
line = line.strip()
@@ -226,7 +226,7 @@ class bad_user(run_user_base):
226226
Generates user name which doesn't exist in containers passwd
227227
"""
228228

229-
def _init_test_depenent(self):
229+
def _init_test_dependent(self):
230230
users = []
231231
for line in self.parent_subtest.stuff['passwd'].splitlines():
232232
line = line.strip()
@@ -248,7 +248,7 @@ class bad_number(run_user_base):
248248
(it should start, print correct uid, but whoami should fail)
249249
"""
250250

251-
def _init_test_depenent(self):
251+
def _init_test_dependent(self):
252252
uid = False
253253
uids = []
254254
for line in self.parent_subtest.stuff['passwd'].splitlines():
@@ -280,7 +280,7 @@ class too_high_number(run_user_base):
280280
Uses incorrectly large uid number (2147483648)
281281
"""
282282

283-
def _init_test_depenent(self):
283+
def _init_test_dependent(self):
284284
self.sub_stuff['execution_failure'] = ("Uids and gids must be in "
285285
"range 0-2147483647")
286286
self.sub_stuff['subargs'] = ['--rm', '--interactive',

0 commit comments

Comments
 (0)