From 7deee2b5b88b1b2570e528d03f37d36aeb7bee1d Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Wed, 3 Jan 2024 15:03:03 +0530 Subject: [PATCH] added test setup for netbox v3.7 --- .github/workflows/py3.yml | 2 +- requirements-dev.txt | 7 +++---- tests/conftest.py | 2 +- tests/integration/conftest.py | 2 ++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/py3.yml b/.github/workflows/py3.yml index d9e85020..f3d1215e 100644 --- a/.github/workflows/py3.yml +++ b/.github/workflows/py3.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: python: ["3.8", "3.9", "3.10", "3.11"] - netbox: ["3.3", "3.4", "3.5", "3.6"] + netbox: ["3.3", "3.4", "3.5", "3.6", "3.7"] steps: - uses: actions/checkout@v4 diff --git a/requirements-dev.txt b/requirements-dev.txt index 50604511..ea8f77d2 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,3 @@ -black~=22.10 -pytest==7.1.* -pytest-docker==1.0.* -PyYAML==6.0.1 +black +pytest +pytest-docker diff --git a/tests/conftest.py b/tests/conftest.py index 03f80a51..99e9c3c7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -4,7 +4,7 @@ from packaging import version -DEFAULT_NETBOX_VERSIONS = "3.6" +DEFAULT_NETBOX_VERSIONS = "3.7" def pytest_addoption(parser): diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index d0485f92..b185e981 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -35,6 +35,8 @@ def get_netbox_docker_version_tag(netbox_version): tag = "2.6.1" elif (major, minor) == (3, 6): tag = "2.7.0" + elif (major, minor) == (3, 7): + tag = "2.8.0" else: raise NotImplementedError( "Version %s is not currently supported" % netbox_version