Skip to content

Commit

Permalink
test: fix/skip integration test failures (linode#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykim-akamai authored Sep 27, 2023
1 parent 91e0d9b commit bcb3ba0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/integration/events/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def test_filter_events_by_entity_id():
)


@pytest.mark.skip(reason="https://github.com/linode/linode-cli/issues/500")
def test_create_domain_and_filter_domain_events(events_setup):
domain_id = events_setup
result = exec_test_command(
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/image/test_plugin_image_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ def test_file_upload(
assert process.returncode == 0

# Assertions now using keywords due to some chars getting cut off from lack of terminal space
assert re.search("cli-test", output)
assert re.search("[0-9][0-9]+.[0-9]%", output)
assert re.search("test", output)
assert re.search("pending", output)

# Get the new image from the API
process = exec_test_command(
Expand Down
4 changes: 4 additions & 0 deletions tests/integration/tags/test_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pytest

from tests.integration.helpers import (
delete_target_id,
exec_failing_test_command,
exec_test_command,
)
Expand All @@ -20,8 +21,11 @@ def test_create_tag():
exec_test_command(
BASE_CMD + ["create", "--label", unique_tag, "--text", "--no-headers"]
).stdout.decode()

yield unique_tag

delete_target_id("tags", unique_tag)


@pytest.mark.smoke
def test_view_unique_tag(test_create_tag):
Expand Down

0 comments on commit bcb3ba0

Please sign in to comment.