Skip to content

Commit

Permalink
Support shorter 'Given failing s2i build…' (#74)
Browse files Browse the repository at this point in the history
Let the user omit "using {tag}", since tag defaults to master.

Signed-off-by: Jonathan Dowland <[email protected]>
  • Loading branch information
jmtd authored Mar 5, 2025
1 parent 82a551d commit 2a5c755
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions steps/s2i_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def s2i_build(context, application, path='.', env="", incremental=False, tag="ma
raise Exception("S2I build failed, check logs!")


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

0 comments on commit 2a5c755

Please sign in to comment.