Skip to content

Commit

Permalink
tests: fix ambiguous step name
Browse files Browse the repository at this point in the history
Signed-off-by: Renan Rodrigo <[email protected]>
  • Loading branch information
renanrodrigo authored and orndorffgrant committed Jan 5, 2024
1 parent e315434 commit 3ac358b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions features/apt_messages.feature
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Feature: APT Messages
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
"""
When I attach `contract_token` with sudo
When I dry run apt upgrade
When I apt upgrade on a dry run
Then stdout matches regexp:
"""
Reading package lists...
Expand Down Expand Up @@ -178,7 +178,7 @@ Feature: APT Messages
0 upgraded, 0 newly installed, 0 to remove and \d+ not upgraded.
"""
When I attach `contract_token` with sudo
When I dry run apt upgrade
When I apt upgrade on a dry run
Then stdout matches regexp:
"""
Reading package lists...
Expand Down Expand Up @@ -679,7 +679,7 @@ Feature: APT Messages
When I apt install `ansible`
# Update after installing to make sure messages are there
When I apt update
When I dry run apt upgrade
When I apt upgrade on a dry run
Then stdout contains substring:
"""
<msg>
Expand Down Expand Up @@ -720,7 +720,7 @@ Feature: APT Messages
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
"""
When I attach `contract_token` with sudo
When I dry run apt upgrade
When I apt upgrade on a dry run
Then stdout matches regexp:
"""
Reading package lists...
Expand Down
2 changes: 1 addition & 1 deletion features/steps/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def when_i_apt_update(context, machine_name=SUT):
)


@when("I {dry} run {command} upgrade")
@when("I {command} upgrade")
@when("I {command} upgrade including {phased} updates")
@when("I {command} upgrade on a {dry} run")
def when_i_apt_upgrade(context, command="apt", dry="", phased=""):
cmd_list = [
command,
Expand Down

0 comments on commit 3ac358b

Please sign in to comment.