Skip to content

Commit 2a5c755

Browse files
authored
Support shorter 'Given failing s2i build…' (#74)
Let the user omit "using {tag}", since tag defaults to master. Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
1 parent 82a551d commit 2a5c755

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

steps/s2i_steps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def s2i_build(context, application, path='.', env="", incremental=False, tag="ma
6868
raise Exception("S2I build failed, check logs!")
6969

7070

71+
@given(u'failing s2i build {application} from {path}')
7172
@given(u'failing s2i build {application} from {path} using {tag}')
7273
def failing_s2i_build(context, application, path='.', env="", incremental=False, tag="master", runtime_image=""):
7374
if not s2i_inner(context, application, path, env, incremental, tag, runtime_image):

0 commit comments

Comments
 (0)