diff options
-rw-r--r-- | .pre-commit-config.yaml | 1 | ||||
-rw-r--r-- | changelogs/fragments/integration_test_fix.yml | 3 | ||||
-rw-r--r-- | tests/integration/targets/vyos_prefix_lists/tests/cli/deleted.yaml | 1 | ||||
-rw-r--r-- | tests/sanity/ignore-2.17.txt | 1 | ||||
-rw-r--r-- | tests/unit/mock/loader.py | 2 |
5 files changed, 6 insertions, 2 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 32c6311..a9ef17e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,6 @@ repos: - repo: https://github.com/ansible-network/collection_prep rev: 1.1.1 hooks: - - id: autoversion - id: update-docs - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/changelogs/fragments/integration_test_fix.yml b/changelogs/fragments/integration_test_fix.yml new file mode 100644 index 0000000..d792424 --- /dev/null +++ b/changelogs/fragments/integration_test_fix.yml @@ -0,0 +1,3 @@ +--- +trivial: + - vyos_prefix_lists - fix vyos_prefix_lists in integration tests to resolve issues related to deletion. diff --git a/tests/integration/targets/vyos_prefix_lists/tests/cli/deleted.yaml b/tests/integration/targets/vyos_prefix_lists/tests/cli/deleted.yaml index 9209fad..efcb14c 100644 --- a/tests/integration/targets/vyos_prefix_lists/tests/cli/deleted.yaml +++ b/tests/integration/targets/vyos_prefix_lists/tests/cli/deleted.yaml @@ -9,6 +9,7 @@ - block: # Delete all prefix-lists - name: Delete all prefix-lists + ignore_errors: true register: result vyos.vyos.vyos_prefix_lists: &id006 config: diff --git a/tests/sanity/ignore-2.17.txt b/tests/sanity/ignore-2.17.txt new file mode 100644 index 0000000..c835eef --- /dev/null +++ b/tests/sanity/ignore-2.17.txt @@ -0,0 +1 @@ +plugins/action/vyos.py action-plugin-docs # base class for deprecated network platform modules using `connection: local` diff --git a/tests/unit/mock/loader.py b/tests/unit/mock/loader.py index 258dccd..2828f38 100644 --- a/tests/unit/mock/loader.py +++ b/tests/unit/mock/loader.py @@ -30,7 +30,7 @@ from ansible.parsing.dataloader import DataLoader class DictDataLoader(DataLoader): def __init__(self, file_mapping=None): file_mapping = {} if file_mapping is None else file_mapping - assert type(file_mapping) == dict + assert isinstance(file_mapping, dict) super(DictDataLoader, self).__init__() |