[PR #4446] [MERGED] Plugin testing #12847

Closed
opened 2025-12-29 22:23:56 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4446
Author: @jeremystretch
Created: 4/2/2020
Status: Merged
Merged: 4/3/2020
Merged by: @jeremystretch

Base: develop-2.8Head: plugin-testing


📝 Commits (7)

  • f316958 Establish a separate configuration file for testing
  • 093181c Correct path to test configuration file
  • 30e330c Initial implementation of tests for plugins framework
  • 92fc28a Remove errant references to external plugin
  • ee4c5ef Fix CI tests
  • 9e0aa0d Naming tweaks
  • 6413d47 Skip PluginTest if dummy_plugin not in PLUGINS list

📊 Changes

17 files changed (+280 additions, -9 deletions)

View changed files

📝 netbox/extras/plugins/urls.py (+5 -4)
netbox/extras/tests/dummy_plugin/__init__.py (+15 -0)
netbox/extras/tests/dummy_plugin/admin.py (+9 -0)
netbox/extras/tests/dummy_plugin/api/serializers.py (+9 -0)
netbox/extras/tests/dummy_plugin/api/urls.py (+6 -0)
netbox/extras/tests/dummy_plugin/api/views.py (+8 -0)
netbox/extras/tests/dummy_plugin/middleware.py (+7 -0)
netbox/extras/tests/dummy_plugin/migrations/0001_initial.py (+23 -0)
netbox/extras/tests/dummy_plugin/migrations/__init__.py (+0 -0)
netbox/extras/tests/dummy_plugin/models.py (+13 -0)
netbox/extras/tests/dummy_plugin/navigation.py (+25 -0)
netbox/extras/tests/dummy_plugin/template_content.py (+20 -0)
netbox/extras/tests/dummy_plugin/urls.py (+8 -0)
netbox/extras/tests/dummy_plugin/views.py (+11 -0)
netbox/extras/tests/test_plugins.py (+79 -0)
netbox/netbox/configuration.testing.py (+40 -0)
📝 scripts/cibuild.sh (+2 -5)

📄 Description

Add tests for the plugins framework


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/4446 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 4/2/2020 **Status:** ✅ Merged **Merged:** 4/3/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.8` ← **Head:** `plugin-testing` --- ### 📝 Commits (7) - [`f316958`](https://github.com/netbox-community/netbox/commit/f3169589435e753a00f34473941ac609c0d7ab38) Establish a separate configuration file for testing - [`093181c`](https://github.com/netbox-community/netbox/commit/093181c1867b4266e6dc18a214d0ea2c8fad6e1f) Correct path to test configuration file - [`30e330c`](https://github.com/netbox-community/netbox/commit/30e330c88758581b661b1f75da07f1eb5ca7d057) Initial implementation of tests for plugins framework - [`92fc28a`](https://github.com/netbox-community/netbox/commit/92fc28aa09b4030aa8535f4590eb4b635158fbd7) Remove errant references to external plugin - [`ee4c5ef`](https://github.com/netbox-community/netbox/commit/ee4c5ef64a8d84f6d7b5a2ef63674d1364c4ea01) Fix CI tests - [`9e0aa0d`](https://github.com/netbox-community/netbox/commit/9e0aa0d11ea16e324b8121051c6a1a42f3aaee85) Naming tweaks - [`6413d47`](https://github.com/netbox-community/netbox/commit/6413d47fb2924a404ca9ee0bf95b9f5e2a01173b) Skip PluginTest if dummy_plugin not in PLUGINS list ### 📊 Changes **17 files changed** (+280 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/plugins/urls.py` (+5 -4) ➕ `netbox/extras/tests/dummy_plugin/__init__.py` (+15 -0) ➕ `netbox/extras/tests/dummy_plugin/admin.py` (+9 -0) ➕ `netbox/extras/tests/dummy_plugin/api/serializers.py` (+9 -0) ➕ `netbox/extras/tests/dummy_plugin/api/urls.py` (+6 -0) ➕ `netbox/extras/tests/dummy_plugin/api/views.py` (+8 -0) ➕ `netbox/extras/tests/dummy_plugin/middleware.py` (+7 -0) ➕ `netbox/extras/tests/dummy_plugin/migrations/0001_initial.py` (+23 -0) ➕ `netbox/extras/tests/dummy_plugin/migrations/__init__.py` (+0 -0) ➕ `netbox/extras/tests/dummy_plugin/models.py` (+13 -0) ➕ `netbox/extras/tests/dummy_plugin/navigation.py` (+25 -0) ➕ `netbox/extras/tests/dummy_plugin/template_content.py` (+20 -0) ➕ `netbox/extras/tests/dummy_plugin/urls.py` (+8 -0) ➕ `netbox/extras/tests/dummy_plugin/views.py` (+11 -0) ➕ `netbox/extras/tests/test_plugins.py` (+79 -0) ➕ `netbox/netbox/configuration.testing.py` (+40 -0) 📝 `scripts/cibuild.sh` (+2 -5) </details> ### 📄 Description Add tests for the plugins framework --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:23:56 +01:00
adam closed this issue 2025-12-29 22:23:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12847