Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ jobs:
failed=()
[[ "${{ steps.unit.outcome }}" == "failure" ]] && failed+=("unit")
[[ "${{ steps.integration.outcome }}" == "failure" ]] && failed+=("integration")
[[ "${{ steps.e2e.outcome }}" == "failure" ]] && failed+=("e2e")
[[ "${{ steps.long_running.outcome }}" == "failure" ]] && failed+=("long-running")
[[ "${{ steps.very_long_running.outcome }}" == "failure" ]] && failed+=("very-long-running")
[[ "${{ steps.e2e.outcome }}" == "failure" ]] && failed+=("e2e-regular")
[[ "${{ steps.long_running.outcome }}" == "failure" ]] && failed+=("e2e-long-running")
[[ "${{ steps.very_long_running.outcome }}" == "failure" ]] && failed+=("e2e-very-long-running")
if [[ ${#failed[@]} -gt 0 ]]; then
echo "The following test suites failed: ${failed[*]}"
exit 1
Expand Down
23 changes: 23 additions & 0 deletions tests/aignostics/application/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from aignostics.application import Service as ApplicationService
from aignostics.cli import cli
from aignostics.platform import LIST_APPLICATION_RUNS_MAX_PAGE_SIZE
from aignostics.utils import Health, sanitize_path
from tests.conftest import normalize_output, print_directory_structure
from tests.constants_test import (
Expand Down Expand Up @@ -516,6 +517,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
"list",
"--query",
"note_of_this_complex_test",
"--limit",
str(LIST_APPLICATION_RUNS_MAX_PAGE_SIZE),
],
)
assert list_result.exit_code == 0
Expand All @@ -531,6 +534,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
"list",
"--query",
"test_cli_run_submit_and_describe_and_cancel_and_download_and_delete",
"--limit",
str(LIST_APPLICATION_RUNS_MAX_PAGE_SIZE),
],
)
assert list_result.exit_code == 0
Expand All @@ -546,6 +551,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
"list",
"--query",
"another_tag",
"--limit",
str(LIST_APPLICATION_RUNS_MAX_PAGE_SIZE),
],
)
assert list_result.exit_code == 0
Expand All @@ -561,6 +568,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
"list",
"--note-regex",
"note_of_this_complex_test",
"--limit",
str(LIST_APPLICATION_RUNS_MAX_PAGE_SIZE),
],
)
assert list_result.exit_code == 0
Expand All @@ -576,6 +585,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
"list",
"--note-regex",
"other_note",
"--limit",
str(LIST_APPLICATION_RUNS_MAX_PAGE_SIZE),
],
)
assert list_result.exit_code == 0
Expand All @@ -591,6 +602,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
"list",
"--tags",
"test_cli_run_submit_and_describe_and_cancel_and_download_and_delete",
"--limit",
str(LIST_APPLICATION_RUNS_MAX_PAGE_SIZE),
],
)
assert list_result.exit_code == 0
Expand All @@ -606,6 +619,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
"list",
"--tags",
"other-tag",
"--limit",
str(LIST_APPLICATION_RUNS_MAX_PAGE_SIZE),
],
)
assert list_result.exit_code == 0
Expand All @@ -621,6 +636,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
"list",
"--tags",
"cli-test,test_cli_run_submit_and_describe_and_cancel_and_download_and_delete",
"--limit",
str(LIST_APPLICATION_RUNS_MAX_PAGE_SIZE),
],
)
assert list_result.exit_code == 0
Expand All @@ -636,6 +653,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
"list",
"--tags",
"cli-test,test_cli_run_submit_and_describe_and_cancel_and_download_and_delete,further-tag",
"--limit",
str(LIST_APPLICATION_RUNS_MAX_PAGE_SIZE),
],
)
assert list_result.exit_code == 0
Expand All @@ -651,6 +670,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
"list",
"--tags",
"cli-test,test_cli_run_submit_and_describe_and_cancel_and_download_and_delete,further-tag,non-existing-tag",
"--limit",
str(LIST_APPLICATION_RUNS_MAX_PAGE_SIZE),
],
)
assert list_result.exit_code == 0
Expand All @@ -668,6 +689,8 @@ def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa
"note_of_this_complex_test",
"--tags",
"cli-test,test_cli_run_submit_and_describe_and_cancel_and_download_and_delete,further-tag",
"--limit",
str(LIST_APPLICATION_RUNS_MAX_PAGE_SIZE),
],
)
assert list_result.exit_code == 0
Expand Down
Loading