Skip to content

Commit

Permalink
refact(tests): remove hosts from testing framework
Browse files Browse the repository at this point in the history
  • Loading branch information
n-dusan committed Jul 26, 2023
1 parent c97e894 commit 79f4169
Show file tree
Hide file tree
Showing 23 changed files with 387 additions and 3,641 deletions.
18 changes: 0 additions & 18 deletions taf/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@
UPDATE_TYPES_VALID_INPUT_DIR = UPDATE_TYPES_DIR / "valid"
UPDATE_TYPES_INVALID_INPUT_DIR = UPDATE_TYPES_DIR / "invalid"
REPO_HANDLERS_DATA_VALID_INPUT_IDR = HANDLERS_DATA_INPUT_DIR / "valid" / "repo"
HOST_HANDLERS_DATA_VALID_INPUT_IDR = HANDLERS_DATA_INPUT_DIR / "valid" / "host"
UPDATE_HANDLERS_DATA_VALID_INPUT_IDR = HANDLERS_DATA_INPUT_DIR / "valid" / "update"
REPO_HANDLERS_DATA_INVALID_INPUT_IDR = HANDLERS_DATA_INPUT_DIR / "invalid" / "repo"
HOST_HANDLERS_DATA_INVALID_INPUT_IDR = HANDLERS_DATA_INPUT_DIR / "invalid" / "host"
UPDATE_HANDLERS_DATA_INVALID_INPUT_IDR = HANDLERS_DATA_INPUT_DIR / "invalid" / "update"

original_tuf_trusted_metadata_set = trusted_metadata_set.TrustedMetadataSet
Expand Down Expand Up @@ -195,14 +193,6 @@ def repo_handlers_valid_inputs():
]


@fixture
def host_handlers_valid_inputs():
"""Paths to the host handler's input json files"""
return [
input_path for input_path in HOST_HANDLERS_DATA_VALID_INPUT_IDR.glob("*.json")
]


@fixture
def update_handlers_valid_inputs():
"""Paths to the update handler's input json files"""
Expand All @@ -219,14 +209,6 @@ def repo_handlers_invalid_inputs():
]


@fixture
def host_handlers_invalid_inputs():
"""Paths to the host handler's input json files"""
return [
input_path for input_path in HOST_HANDLERS_DATA_INVALID_INPUT_IDR.glob("*.json")
]


@fixture
def update_handlers_invalid_inputs():
"""Paths to the update handler's input json files"""
Expand Down
222 changes: 0 additions & 222 deletions taf/tests/data/handler_inputs/invalid/host/missing_required.json

This file was deleted.

Loading

0 comments on commit 79f4169

Please sign in to comment.