Commit Graph

440 Commits

Author SHA1 Message Date
TheNetworkGuy
e7de68c7c3 Fixes #152 2026-02-25 09:08:08 +00:00
TheNetworkGuy
0a37ff491c Changed order of printing Netbox version. It makes sense to print it when a succesfull session with authentication is present. This fixes a bug where the version is printed even though the token might be invalid which might cause confusion. 2026-02-25 09:05:21 +01:00
TheNetworkGuy
9ec8bb3c2c Fixed some Ruff linting and modified the error message for start function without a proper netbox / zabbix connection. 2026-02-23 13:49:11 +00:00
TheNetworkGuy
7b83d768d0 Modified error message for sync function that does not have a valid netbox or zabbix connection. 2026-02-23 13:46:35 +00:00
TheNetworkGuy
ed63c3e33b Added missing function to testing suite which was deleted in a previous commit. 2026-02-23 13:17:32 +00:00
TheNetworkGuy
b7b399444c Replaced raise with return False statement and added return True at the end of the function. 2026-02-23 14:04:56 +01:00
TheNetworkGuy
0b92586057 Removed unused code for testing UserMacroSync logic that contained a raise exception. 2026-02-23 14:00:13 +01:00
TheNetworkGuy
dc0a1f9122 Modified logging messages which contain device / VM and renamed this for consistent logging to "Host".
Moved logging function from global to main() for CLI
2026-02-23 13:47:21 +01:00
TheNetworkGuy
e3487378c1 Fixed check for future Zabbix versions. 2026-02-23 13:28:43 +01:00
TheNetworkGuy
449704156c Added debug line for showing Zabbix version and modified check for Zabbix versions above 6.x.x for proxy configuration 2026-02-23 13:23:27 +01:00
TheNetworkGuy
489a70b703 Modified API call to sites.all for testing the API connection to devices.count. 2026-02-23 13:15:15 +01:00
TheNetworkGuy
4185aaba24 Made the token checks more consistent with function variables and updated the tests to better reflect the use of a proper V2 token. 2026-02-23 11:59:13 +00:00
TheNetworkGuy
a29f51f314 Updated and simplified Netbox token testing 2026-02-23 11:39:25 +00:00
TheNetworkGuy
08519c7433 Added Netbox token check to support #159 2026-02-23 11:33:15 +00:00
TheNetworkGuy
7cfed2ec76 Added warning message for Token v2 with Netbox 4.5 or higher. This is according to Netbox recommendations and to warn our users. 2026-02-23 10:35:41 +00:00
TheNetworkGuy
d5e3199e92 Implemented central configuration and config path that is configurable as path. Updated tests to use self.config instead on re-initializing config. 2026-02-19 16:17:58 +00:00
TheNetworkGuy
f7d0989320 Added check for when a non-primary cluster member is synced 2026-02-19 13:04:32 +00:00
TheNetworkGuy
3be3cdc8ef Fixed Ruff linting 2026-02-19 12:40:50 +00:00
TheNetworkGuy
a4d5fda5e3 Added VM tests and tag tests 2026-02-19 12:38:29 +00:00
TheNetworkGuy
02a5617bc8 Fixed some hostgroup tests and added 4 new tests 2026-02-19 12:08:01 +00:00
TheNetworkGuy
434f0c9e68 Added new core tests dedicated towards status conflicts / changes and Template sourcing 2026-02-19 11:47:50 +00:00
TheNetworkGuy
c00ec4de31 Fixed several ruff and ty checks. 2026-02-18 14:10:59 +00:00
TheNetworkGuy
dfba6f4714 Renamed NB API import, removed unused sys import, added error when ZBX token and password are both used, revamped the core testing file and added useful tests such as device clustering and a base for future device testing. 2026-02-18 13:57:37 +00:00
TheNetworkGuy
223a27f47c Changed sync function to class 2026-02-17 15:45:43 +00:00
TheNetworkGuy
d55fc0a4e7 Fixed ruff formatting 2026-02-16 13:29:48 +00:00
TheNetworkGuy
39f3c57cca Renamed module/config.py file to settings.py to avoid confusion with the main config.py file 2026-02-16 13:28:18 +00:00
Wouter de Bruijn
79396242fe 👷 Fixed CI publish 3.4.0-beta.1 2026-02-13 15:42:45 +01:00
TheNetworkGuy
2028b7b8aa Reformatted file for ruff check 2026-02-12 22:27:22 +00:00
TheNetworkGuy
ebbebfa17f Adds tests for new core module 2026-02-12 22:24:06 +00:00
TheNetworkGuy
de02d257f7 Fixed file for linting issues. 2026-02-12 16:27:18 +00:00
TheNetworkGuy
b3f02dc028 Renamed run_sync function to sync and imported it at package level for easier imports. 2026-02-12 17:22:41 +01:00
Wouter de Bruijn
2b251b8f68 👷 Changed build to only run once for Python 3.12 2026-02-12 16:30:54 +01:00
Wouter de Bruijn
37257074bc 🔧 Updated lockfile 2026-02-12 16:25:20 +01:00
Wouter de Bruijn
0aa019e104 🔧 Added pypi publishing step 2026-02-12 16:25:11 +01:00
Wouter de Bruijn
6d0b031016 🔧 Adjusted build to use dynamic git tag version 2026-02-12 15:42:13 +01:00
Wouter de Bruijn
ce7ad878a2 🔧 Added cli command on package install 2026-02-12 15:41:59 +01:00
Wouter de Bruijn
e2b5c853a4 🙈 Ignored _version.py file 2026-02-12 15:41:19 +01:00
Wouter de Bruijn
3209e7077c 🔥 Removed saving of None return value 2026-02-12 15:25:35 +01:00
Wouter de Bruijn
14c0b9a479 Updated patch targets for new module structure 2026-02-12 15:22:39 +01:00
Wouter de Bruijn
22ebeaec1b 🐛 Fixed exclusion of all config.py files instead of only root file 2026-02-12 15:20:47 +01:00
Wouter de Bruijn
b2d021e849 👷 Added python packaging build step in GitHub actions 2026-02-12 15:17:50 +01:00
Wouter de Bruijn
f302cef05c ♻️ Importing cli parser from netbox_zabbix_sync module 2026-02-12 15:17:50 +01:00
Wouter de Bruijn
414f272d75 🙈 Ignored build files 2026-02-12 15:17:35 +01:00
Wouter de Bruijn
a8146b1e05 ♻️ Moved sourcecode into netbox_zabbix_sync module 2026-02-12 15:17:34 +01:00
TheNetworkGuy
6697311f8d Splitted core code from calling the script directly 2026-02-12 15:17:34 +01:00
Wouter de Bruijn
811e1eaa69 🔀 Merge pull request #165 from TheNetworkGuy/remove-pylint-annotations
💡 Removed old pylint annotations
2026-02-12 10:31:07 +01:00
Twan Kamans
e15919cfdd Merge pull request #164 from TheNetworkGuy/test-linting-exceptions
🔧 Specifically ignore assertion in tests instead of entire codebase
2026-02-12 10:26:10 +01:00
Wouter de Bruijn
6d715e6835 💡 Removed old pylint annotations 2026-02-12 10:25:35 +01:00
Twan Kamans
ab761f6b07 Merge pull request #163 from TheNetworkGuy/devcontainer-uv-environment
🔧 Updated post create command to fully use uv environment
2026-02-12 10:24:51 +01:00
Wouter de Bruijn
a151771002 🔒️ Switched to installation of locked dependencies 2026-02-12 10:02:45 +01:00