Skip to content

Commit

Permalink
ci(docker): Update error code on e2e tests (#813)
Browse files Browse the repository at this point in the history
* Update error message docker

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* typo

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Update step

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Change exit code

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Error message

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

---------

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
  • Loading branch information
ankatiyar committed Aug 27, 2024
1 parent 5ce4eab commit 1eb2bf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kedro-docker/features/docker.feature
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Feature: Docker commands in new projects

Scenario: Execute docker run target without building image
When I execute the kedro command "docker run"
Then I should get an error exit code
Then I should get a successful exit code
And Standard output should contain a message including "Error: Unable to find image `project-dummy` locally."

Scenario: Execute docker dive target
Expand All @@ -118,5 +118,5 @@ Feature: Docker commands in new projects

Scenario: Execute docker dive without building image
When I execute the kedro command "docker dive"
Then I should get an error exit code
Then I should get a successful exit code
And Standard output should contain a message including "Error: Unable to find image `project-dummy` locally."
2 changes: 1 addition & 1 deletion kedro-docker/features/steps/cli_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def check_status_code(context):
print(context.result.stderr)
assert (
False
), f"Expected exit code {OK_EXIT_CODE} but got {context.result.returncode}"
), f"Expected exit code /= {OK_EXIT_CODE} but got {context.result.returncode}"


@then("I should get an error exit code")
Expand Down

0 comments on commit 1eb2bf7

Please sign in to comment.