Skip to content

Commit 55b63c2

Browse files
committed
Improved testing system
1 parent b2c7071 commit 55b63c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+59
-875
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,9 @@ cython_debug/
178178

179179
# Built Visual Studio Code Extensions
180180
*.vsix
181+
182+
#############################################
183+
## netbox-initializer
184+
#############################################
185+
test/initializer-data
186+

Release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Please follow these steps to produce a release
44

55
## Checkout correct branch
66

7-
Checkout the branch for which the release is to be build. If no branch exists for the new release one must be created. The name must correspond to the Netbox version in the format "MAJOR.MINOR".
7+
Checkout the branch for which the release is to be build. If no branch exists for the new release one must be created. The name must correspond to the Netbox version in the format "netbox/MAJOR.MINOR".
88

99
## Set version number
1010

11-
The version number in `README.md`, `setup.py` and the `NetBoxInitializersConfig` need to be updated.
11+
For patch releases the version number in `setup.py` and the `NetBoxInitializersConfig` needs to be updated. If the release is for a new Netbox version additional changes need to be made in `README.md` and `Dockerfile` (for tests).
1212

1313
## Build the packages
1414

test/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM netboxcommunity/netbox:v3.2
22

3-
COPY ../src /opt/netbox-initializers/
3+
COPY ../ /opt/netbox-initializers/
44
COPY ./test/config/plugins.py /etc/netbox/config/
5-
WORKDIR /opt/netbox-initializers/
6-
RUN ls -l && /opt/netbox/venv/bin/pip install -e .
5+
WORKDIR /opt/netbox-initializers/src/
6+
RUN /opt/netbox/venv/bin/pip install -e .
77
WORKDIR /opt/netbox/netbox

test/initializer-data/aggregates.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/initializer-data/asns.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/initializer-data/cables.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

test/initializer-data/circuit_types.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

test/initializer-data/circuits.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/initializer-data/cluster_groups.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

test/initializer-data/cluster_types.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)