nautobot 2.3.3__py3-none-any.whl → 2.3.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of nautobot might be problematic. Click here for more details.
- nautobot/core/celery/schedulers.py +2 -2
- nautobot/core/settings.py +3 -1
- nautobot/core/settings.yaml +40 -23
- nautobot/core/tests/runner.py +13 -6
- nautobot/core/tests/test_settings_schema.py +7 -3
- nautobot/core/tests/test_views.py +40 -1
- nautobot/core/views/generic.py +15 -15
- nautobot/core/views/mixins.py +12 -1
- nautobot/core/views/renderers.py +3 -1
- nautobot/core/views/utils.py +1 -1
- nautobot/dcim/api/serializers.py +1 -0
- nautobot/dcim/api/views.py +2 -0
- nautobot/dcim/forms.py +1 -1
- nautobot/dcim/tables/power.py +1 -1
- nautobot/dcim/templates/dcim/devicefamily_retrieve.html +1 -1
- nautobot/dcim/tests/test_api.py +58 -4
- nautobot/dcim/tests/test_filters.py +1 -1
- nautobot/dcim/tests/test_models.py +0 -2
- nautobot/dcim/views.py +5 -2
- nautobot/extras/api/views.py +9 -0
- nautobot/extras/models/jobs.py +9 -1
- nautobot/extras/querysets.py +10 -1
- nautobot/extras/tables.py +3 -0
- nautobot/extras/tests/test_api.py +36 -0
- nautobot/extras/tests/test_views.py +76 -1
- nautobot/extras/views.py +10 -7
- nautobot/ipam/forms.py +6 -1
- nautobot/ipam/models.py +5 -11
- nautobot/ipam/navigation.py +8 -1
- nautobot/ipam/templates/ipam/prefix.html +1 -1
- nautobot/ipam/tests/test_filters.py +1 -1
- nautobot/ipam/tests/test_views.py +41 -41
- nautobot/ipam/views.py +1 -1
- nautobot/project-static/docs/404.html +60 -148
- nautobot/project-static/docs/additional-features/caching.html +3 -3
- nautobot/project-static/docs/additional-features/healthcheck.html +3 -3
- nautobot/project-static/docs/apps/index.html +60 -148
- nautobot/project-static/docs/apps/nautobot-apps.html +60 -148
- nautobot/project-static/docs/assets/javascripts/workers/{search.07f07601.min.js → search.6ce7567c.min.js} +3 -3
- nautobot/project-static/docs/assets/javascripts/workers/{search.07f07601.min.js.map → search.6ce7567c.min.js.map} +2 -2
- nautobot/project-static/docs/code-reference/nautobot/apps/__init__.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/admin.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/api.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/change_logging.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/choices.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/config.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/constants.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/datasources.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/exceptions.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/factory.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/filters.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/forms.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/graphql.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/jobs.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/models.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/querysets.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/secrets.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/tables.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/testing.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/ui.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/urls.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/utils.html +60 -148
- nautobot/project-static/docs/code-reference/nautobot/apps/views.html +60 -148
- nautobot/project-static/docs/configuration/optional-settings.html +3 -3
- nautobot/project-static/docs/configuration/required-settings.html +3 -3
- nautobot/project-static/docs/development/apps/api/configuration-view.html +60 -148
- nautobot/project-static/docs/development/apps/api/database-backend-config.html +60 -148
- nautobot/project-static/docs/development/apps/api/models/django-admin.html +60 -148
- nautobot/project-static/docs/development/apps/api/models/global-search.html +60 -148
- nautobot/project-static/docs/development/apps/api/models/graphql.html +60 -148
- nautobot/project-static/docs/development/apps/api/models/index.html +60 -148
- nautobot/project-static/docs/development/apps/api/nautobot-app-config.html +60 -148
- nautobot/project-static/docs/development/apps/api/platform-features/custom-validators.html +60 -148
- nautobot/project-static/docs/development/apps/api/platform-features/filter-extensions.html +60 -148
- nautobot/project-static/docs/development/apps/api/platform-features/git-repository-content.html +60 -148
- nautobot/project-static/docs/development/apps/api/platform-features/index.html +60 -148
- nautobot/project-static/docs/development/apps/api/platform-features/jinja2-filters.html +60 -148
- nautobot/project-static/docs/development/apps/api/platform-features/jobs.html +60 -148
- nautobot/project-static/docs/development/apps/api/platform-features/populating-extensibility-features.html +60 -148
- nautobot/project-static/docs/development/apps/api/platform-features/secrets-providers.html +60 -148
- nautobot/project-static/docs/development/apps/api/platform-features/uniquely-identify-objects.html +62 -150
- nautobot/project-static/docs/development/apps/api/prometheus.html +60 -148
- nautobot/project-static/docs/development/apps/api/setup.html +60 -148
- nautobot/project-static/docs/development/apps/api/testing.html +61 -149
- nautobot/project-static/docs/development/apps/api/ui-extensions/banners.html +60 -148
- nautobot/project-static/docs/development/apps/api/ui-extensions/home-page.html +60 -148
- nautobot/project-static/docs/development/apps/api/ui-extensions/index.html +60 -148
- nautobot/project-static/docs/development/apps/api/ui-extensions/navigation.html +60 -148
- nautobot/project-static/docs/development/apps/api/ui-extensions/object-views.html +60 -148
- nautobot/project-static/docs/development/apps/api/views/base-template.html +60 -148
- nautobot/project-static/docs/development/apps/api/views/core-view-overrides.html +60 -148
- nautobot/project-static/docs/development/apps/api/views/django-generic-views.html +60 -148
- nautobot/project-static/docs/development/apps/api/views/help-documentation.html +60 -148
- nautobot/project-static/docs/development/apps/api/views/index.html +60 -148
- nautobot/project-static/docs/development/apps/api/views/nautobot-generic-views.html +60 -148
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewset.html +60 -148
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewsetrouter.html +60 -148
- nautobot/project-static/docs/development/apps/api/views/notes.html +60 -148
- nautobot/project-static/docs/development/apps/api/views/rest-api.html +60 -148
- nautobot/project-static/docs/development/apps/api/views/urls.html +60 -148
- nautobot/project-static/docs/development/apps/index.html +61 -149
- nautobot/project-static/docs/development/apps/migration/code-updates.html +60 -148
- nautobot/project-static/docs/development/apps/migration/dependency-updates.html +60 -148
- nautobot/project-static/docs/development/apps/migration/from-v1.html +60 -148
- nautobot/project-static/docs/development/apps/migration/model-updates/dcim.html +60 -148
- nautobot/project-static/docs/development/apps/migration/model-updates/extras.html +60 -148
- nautobot/project-static/docs/development/apps/migration/model-updates/global.html +60 -148
- nautobot/project-static/docs/development/apps/migration/model-updates/ipam.html +60 -148
- nautobot/project-static/docs/development/apps/porting-from-netbox.html +60 -148
- nautobot/project-static/docs/development/core/application-registry.html +60 -148
- nautobot/project-static/docs/development/core/best-practices.html +60 -148
- nautobot/project-static/docs/development/core/bootstrap-ui.html +60 -148
- nautobot/project-static/docs/development/core/caching.html +60 -148
- nautobot/project-static/docs/development/core/controllers.html +60 -148
- nautobot/project-static/docs/development/core/docker-compose-advanced-use-cases.html +60 -148
- nautobot/project-static/docs/development/core/generic-views.html +60 -148
- nautobot/project-static/docs/development/core/getting-started.html +85 -169
- nautobot/project-static/docs/development/core/homepage.html +60 -148
- nautobot/project-static/docs/development/core/index.html +60 -148
- nautobot/project-static/docs/development/core/model-checklist.html +60 -148
- nautobot/project-static/docs/development/core/model-features.html +60 -148
- nautobot/project-static/docs/development/core/natural-keys.html +60 -148
- nautobot/project-static/docs/development/core/navigation-menu.html +60 -148
- nautobot/project-static/docs/development/core/release-checklist.html +60 -148
- nautobot/project-static/docs/development/core/role-internals.html +60 -148
- nautobot/project-static/docs/development/core/settings.html +60 -148
- nautobot/project-static/docs/development/core/style-guide.html +60 -148
- nautobot/project-static/docs/development/core/templates.html +60 -148
- nautobot/project-static/docs/development/core/testing.html +72 -152
- nautobot/project-static/docs/development/core/user-preferences.html +60 -148
- nautobot/project-static/docs/development/index.html +60 -148
- nautobot/project-static/docs/development/jobs/index.html +68 -156
- nautobot/project-static/docs/development/jobs/migration/from-v1.html +61 -149
- nautobot/project-static/docs/docker/index.html +3 -3
- nautobot/project-static/docs/index.html +60 -148
- nautobot/project-static/docs/installation/selinux-troubleshooting.html +3 -3
- nautobot/project-static/docs/overview/application_stack.html +60 -148
- nautobot/project-static/docs/overview/design_philosophy.html +60 -148
- nautobot/project-static/docs/release-notes/index.html +60 -148
- nautobot/project-static/docs/release-notes/version-1.0.html +60 -148
- nautobot/project-static/docs/release-notes/version-1.1.html +61 -149
- nautobot/project-static/docs/release-notes/version-1.2.html +63 -151
- nautobot/project-static/docs/release-notes/version-1.3.html +61 -149
- nautobot/project-static/docs/release-notes/version-1.4.html +62 -150
- nautobot/project-static/docs/release-notes/version-1.5.html +62 -150
- nautobot/project-static/docs/release-notes/version-1.6.html +64 -152
- nautobot/project-static/docs/release-notes/version-2.0.html +61 -149
- nautobot/project-static/docs/release-notes/version-2.1.html +62 -150
- nautobot/project-static/docs/release-notes/version-2.2.html +60 -148
- nautobot/project-static/docs/release-notes/version-2.3.html +475 -236
- nautobot/project-static/docs/search/search_index.json +1 -1
- nautobot/project-static/docs/sitemap.xml +277 -285
- nautobot/project-static/docs/sitemap.xml.gz +0 -0
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/ldap.html +62 -150
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/remote.html +61 -149
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/sso.html +62 -150
- nautobot/project-static/docs/user-guide/administration/configuration/index.html +71 -169
- nautobot/project-static/docs/user-guide/administration/configuration/optional-settings.html +13 -12524
- nautobot/project-static/docs/user-guide/administration/configuration/redis.html +8966 -0
- nautobot/project-static/docs/user-guide/administration/configuration/required-settings.html +13 -9218
- nautobot/project-static/docs/user-guide/administration/configuration/settings.html +12734 -0
- nautobot/project-static/docs/user-guide/administration/configuration/time-zones.html +64 -152
- nautobot/project-static/docs/user-guide/administration/guides/caching.html +13 -9108
- nautobot/project-static/docs/user-guide/administration/guides/celery-queues.html +61 -149
- nautobot/project-static/docs/user-guide/administration/guides/docker.html +9491 -0
- nautobot/project-static/docs/user-guide/administration/guides/health-checks.html +9478 -0
- nautobot/project-static/docs/user-guide/administration/guides/healthcheck.html +13 -8833
- nautobot/project-static/docs/user-guide/administration/guides/permissions.html +64 -152
- nautobot/project-static/docs/user-guide/administration/guides/prometheus-metrics.html +61 -149
- nautobot/project-static/docs/user-guide/administration/guides/replicating-nautobot.html +61 -149
- nautobot/project-static/docs/user-guide/administration/guides/request-profiling.html +60 -148
- nautobot/project-static/docs/user-guide/administration/guides/s3-django-storage.html +60 -148
- nautobot/project-static/docs/user-guide/administration/guides/selinux-troubleshooting.html +8978 -0
- nautobot/project-static/docs/user-guide/administration/installation/app-install.html +60 -148
- nautobot/project-static/docs/user-guide/administration/installation/docker.html +3 -3
- nautobot/project-static/docs/user-guide/administration/installation/external-authentication.html +63 -151
- nautobot/project-static/docs/user-guide/administration/installation/health-checks.html +3 -3
- nautobot/project-static/docs/user-guide/administration/installation/http-server.html +61 -151
- nautobot/project-static/docs/user-guide/administration/installation/index.html +62 -150
- nautobot/project-static/docs/user-guide/administration/installation/install_system.html +60 -148
- nautobot/project-static/docs/user-guide/administration/installation/nautobot.html +76 -161
- nautobot/project-static/docs/user-guide/administration/installation/selinux-troubleshooting.html +3 -3
- nautobot/project-static/docs/user-guide/administration/installation/services.html +62 -150
- nautobot/project-static/docs/user-guide/administration/installation-extras/docker.html +13 -9577
- nautobot/project-static/docs/user-guide/administration/installation-extras/health-checks.html +13 -9560
- nautobot/project-static/docs/user-guide/administration/installation-extras/selinux-troubleshooting.html +13 -9064
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-netbox.html +62 -150
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-postgresql.html +60 -148
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-server.html +66 -154
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-shell.html +63 -151
- nautobot/project-static/docs/user-guide/administration/upgrading/database-backup.html +66 -154
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/after-you-upgrade.html +63 -151
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/before-you-upgrade.html +63 -151
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/for-developers.html +63 -151
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/index.html +63 -151
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/whats-changed.html +63 -151
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/region-and-site-data-migration-guide.html +63 -151
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/upgrading-from-nautobot-v1.html +65 -153
- nautobot/project-static/docs/user-guide/administration/upgrading/upgrading.html +63 -151
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuit.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittermination.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittype.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/circuits/provider.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/circuits/providernetwork.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloud.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudaccount.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetwork.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetworkprefixassignment.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudresourcetype.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservice.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservicenetworkassignment.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/cable.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleport.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleporttemplate.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverport.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverporttemplate.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controller.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controllermanageddevicegroup.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/device.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebay.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebaytemplate.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicefamily.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/deviceredundancygroup.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicetype.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontport.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontporttemplate.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interface.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfaceredundancygroup.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfacetemplate.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/inventoryitem.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/location.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/locationtype.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/manufacturer.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/module.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebay.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebaytemplate.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/moduletype.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/platform.html +61 -149
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerfeed.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlet.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlettemplate.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerpanel.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerport.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerporttemplate.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rack.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackgroup.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackreservation.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearport.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearporttemplate.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareimagefile.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareversion.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualchassis.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontext.html +61 -149
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontextschema.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/extras/contact.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/extras/team.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/ipam/ipaddress.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/ipam/namespace.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/ipam/prefix.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/ipam/rir.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/ipam/routetarget.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/ipam/service.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlan.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlangroup.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vrf.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/overview/introduction.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenant.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenantgroup.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/cluster.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustergroup.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustertype.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/virtualmachine.html +60 -148
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/vminterface.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/contacts-and-teams.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/custom-fields.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-devices.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-location-types-and-locations.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/index.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/interfaces.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/ipam.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/platforms.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/search-bar.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/tenants.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/vlans-and-vlan-groups.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/git-data-source.html +61 -149
- nautobot/project-static/docs/user-guide/feature-guides/graphql.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/ip-address-merge-tool.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/relationships.html +60 -148
- nautobot/project-static/docs/user-guide/feature-guides/software-image-files-and-versions.html +60 -148
- nautobot/project-static/docs/user-guide/index.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/change-logging.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/computedfield.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/customfield.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/customlink.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/dynamicgroup.html +61 -149
- nautobot/project-static/docs/user-guide/platform-functionality/exporttemplate.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/externalintegration.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/gitrepository.html +61 -149
- nautobot/project-static/docs/user-guide/platform-functionality/graphql.html +62 -150
- nautobot/project-static/docs/user-guide/platform-functionality/graphqlquery.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/imageattachment.html +61 -149
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/index.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/job-scheduling-and-approvals.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobbutton.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobhook.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/models.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/napalm.html +61 -149
- nautobot/project-static/docs/user-guide/platform-functionality/note.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/objectmetadata.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/relationship.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/authentication.html +61 -149
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/filtering.html +61 -149
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/overview.html +62 -150
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/ui-related-endpoints.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/role.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/savedview.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/secret.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/staticgroupassociation.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/status.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/tag.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/template-filters.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/users/objectpermission.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/users/token.html +60 -148
- nautobot/project-static/docs/user-guide/platform-functionality/webhook.html +60 -148
- nautobot/virtualization/filters.py +6 -1
- nautobot/virtualization/tables.py +2 -2
- {nautobot-2.3.3.dist-info → nautobot-2.3.5.dist-info}/METADATA +2 -2
- {nautobot-2.3.3.dist-info → nautobot-2.3.5.dist-info}/RECORD +332 -328
- nautobot/project-static/docs/user-guide/administration/configuration/render-settings-fragment.j2 +0 -76
- {nautobot-2.3.3.dist-info → nautobot-2.3.5.dist-info}/LICENSE.txt +0 -0
- {nautobot-2.3.3.dist-info → nautobot-2.3.5.dist-info}/NOTICE +0 -0
- {nautobot-2.3.3.dist-info → nautobot-2.3.5.dist-info}/WHEEL +0 -0
- {nautobot-2.3.3.dist-info → nautobot-2.3.5.dist-info}/entry_points.txt +0 -0
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
<link rel="icon" href="../../assets/favicon.ico">
|
|
21
|
-
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.
|
|
21
|
+
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.35">
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -783,7 +783,7 @@
|
|
|
783
783
|
|
|
784
784
|
|
|
785
785
|
<span class="md-ellipsis">
|
|
786
|
-
|
|
786
|
+
Upgrading
|
|
787
787
|
</span>
|
|
788
788
|
|
|
789
789
|
|
|
@@ -792,115 +792,6 @@
|
|
|
792
792
|
|
|
793
793
|
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_2_1_2_label" aria-expanded="false">
|
|
794
794
|
<label class="md-nav__title" for="__nav_2_1_2">
|
|
795
|
-
<span class="md-nav__icon md-icon"></span>
|
|
796
|
-
Installation Extras
|
|
797
|
-
</label>
|
|
798
|
-
<ul class="md-nav__list" data-md-scrollfix>
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
<li class="md-nav__item">
|
|
807
|
-
<a href="../../user-guide/administration/installation-extras/docker.html" class="md-nav__link">
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
<span class="md-ellipsis">
|
|
811
|
-
Nautobot Docker Images
|
|
812
|
-
</span>
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
</a>
|
|
816
|
-
</li>
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
<li class="md-nav__item">
|
|
828
|
-
<a href="../../user-guide/administration/installation-extras/health-checks.html" class="md-nav__link">
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
<span class="md-ellipsis">
|
|
832
|
-
Health Checks
|
|
833
|
-
</span>
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
</a>
|
|
837
|
-
</li>
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
<li class="md-nav__item">
|
|
849
|
-
<a href="../../user-guide/administration/installation-extras/selinux-troubleshooting.html" class="md-nav__link">
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
<span class="md-ellipsis">
|
|
853
|
-
SELinux Troubleshooting
|
|
854
|
-
</span>
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
</a>
|
|
858
|
-
</li>
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
</ul>
|
|
864
|
-
</nav>
|
|
865
|
-
|
|
866
|
-
</li>
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
<li class="md-nav__item md-nav__item--nested">
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2_1_3" >
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
<label class="md-nav__link" for="__nav_2_1_3" id="__nav_2_1_3_label" tabindex="0">
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
<span class="md-ellipsis">
|
|
895
|
-
Upgrading
|
|
896
|
-
</span>
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
<span class="md-nav__icon md-icon"></span>
|
|
900
|
-
</label>
|
|
901
|
-
|
|
902
|
-
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_2_1_3_label" aria-expanded="false">
|
|
903
|
-
<label class="md-nav__title" for="__nav_2_1_3">
|
|
904
795
|
<span class="md-nav__icon md-icon"></span>
|
|
905
796
|
Upgrading
|
|
906
797
|
</label>
|
|
@@ -965,7 +856,7 @@
|
|
|
965
856
|
|
|
966
857
|
|
|
967
858
|
|
|
968
|
-
<input class="md-nav__toggle md-toggle " type="checkbox" id="
|
|
859
|
+
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2_1_2_3" >
|
|
969
860
|
|
|
970
861
|
|
|
971
862
|
|
|
@@ -981,14 +872,14 @@
|
|
|
981
872
|
</a>
|
|
982
873
|
|
|
983
874
|
|
|
984
|
-
<label class="md-nav__link " for="
|
|
875
|
+
<label class="md-nav__link " for="__nav_2_1_2_3" id="__nav_2_1_2_3_label" tabindex="0">
|
|
985
876
|
<span class="md-nav__icon md-icon"></span>
|
|
986
877
|
</label>
|
|
987
878
|
|
|
988
879
|
</div>
|
|
989
880
|
|
|
990
|
-
<nav class="md-nav" data-md-level="4" aria-labelledby="
|
|
991
|
-
<label class="md-nav__title" for="
|
|
881
|
+
<nav class="md-nav" data-md-level="4" aria-labelledby="__nav_2_1_2_3_label" aria-expanded="false">
|
|
882
|
+
<label class="md-nav__title" for="__nav_2_1_2_3">
|
|
992
883
|
<span class="md-nav__icon md-icon"></span>
|
|
993
884
|
Upgrading Nautobot from v1.X to v2.0
|
|
994
885
|
</label>
|
|
@@ -1032,7 +923,7 @@
|
|
|
1032
923
|
|
|
1033
924
|
|
|
1034
925
|
|
|
1035
|
-
<input class="md-nav__toggle md-toggle " type="checkbox" id="
|
|
926
|
+
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2_1_2_3_2" >
|
|
1036
927
|
|
|
1037
928
|
|
|
1038
929
|
|
|
@@ -1048,14 +939,14 @@
|
|
|
1048
939
|
</a>
|
|
1049
940
|
|
|
1050
941
|
|
|
1051
|
-
<label class="md-nav__link " for="
|
|
942
|
+
<label class="md-nav__link " for="__nav_2_1_2_3_2" id="__nav_2_1_2_3_2_label" tabindex="0">
|
|
1052
943
|
<span class="md-nav__icon md-icon"></span>
|
|
1053
944
|
</label>
|
|
1054
945
|
|
|
1055
946
|
</div>
|
|
1056
947
|
|
|
1057
|
-
<nav class="md-nav" data-md-level="5" aria-labelledby="
|
|
1058
|
-
<label class="md-nav__title" for="
|
|
948
|
+
<nav class="md-nav" data-md-level="5" aria-labelledby="__nav_2_1_2_3_2_label" aria-expanded="false">
|
|
949
|
+
<label class="md-nav__title" for="__nav_2_1_2_3_2">
|
|
1059
950
|
<span class="md-nav__icon md-icon"></span>
|
|
1060
951
|
IPAM Migration Guide
|
|
1061
952
|
</label>
|
|
@@ -1186,10 +1077,10 @@
|
|
|
1186
1077
|
|
|
1187
1078
|
|
|
1188
1079
|
|
|
1189
|
-
<input class="md-nav__toggle md-toggle " type="checkbox" id="
|
|
1080
|
+
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2_1_3" >
|
|
1190
1081
|
|
|
1191
1082
|
|
|
1192
|
-
<label class="md-nav__link" for="
|
|
1083
|
+
<label class="md-nav__link" for="__nav_2_1_3" id="__nav_2_1_3_label" tabindex="0">
|
|
1193
1084
|
|
|
1194
1085
|
|
|
1195
1086
|
<span class="md-ellipsis">
|
|
@@ -1200,8 +1091,8 @@
|
|
|
1200
1091
|
<span class="md-nav__icon md-icon"></span>
|
|
1201
1092
|
</label>
|
|
1202
1093
|
|
|
1203
|
-
<nav class="md-nav" data-md-level="3" aria-labelledby="
|
|
1204
|
-
<label class="md-nav__title" for="
|
|
1094
|
+
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_2_1_3_label" aria-expanded="false">
|
|
1095
|
+
<label class="md-nav__title" for="__nav_2_1_3">
|
|
1205
1096
|
<span class="md-nav__icon md-icon"></span>
|
|
1206
1097
|
Migration
|
|
1207
1098
|
</label>
|
|
@@ -1274,7 +1165,7 @@
|
|
|
1274
1165
|
|
|
1275
1166
|
|
|
1276
1167
|
|
|
1277
|
-
<input class="md-nav__toggle md-toggle " type="checkbox" id="
|
|
1168
|
+
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2_1_4" >
|
|
1278
1169
|
|
|
1279
1170
|
|
|
1280
1171
|
|
|
@@ -1290,14 +1181,14 @@
|
|
|
1290
1181
|
</a>
|
|
1291
1182
|
|
|
1292
1183
|
|
|
1293
|
-
<label class="md-nav__link " for="
|
|
1184
|
+
<label class="md-nav__link " for="__nav_2_1_4" id="__nav_2_1_4_label" tabindex="0">
|
|
1294
1185
|
<span class="md-nav__icon md-icon"></span>
|
|
1295
1186
|
</label>
|
|
1296
1187
|
|
|
1297
1188
|
</div>
|
|
1298
1189
|
|
|
1299
|
-
<nav class="md-nav" data-md-level="3" aria-labelledby="
|
|
1300
|
-
<label class="md-nav__title" for="
|
|
1190
|
+
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_2_1_4_label" aria-expanded="false">
|
|
1191
|
+
<label class="md-nav__title" for="__nav_2_1_4">
|
|
1301
1192
|
<span class="md-nav__icon md-icon"></span>
|
|
1302
1193
|
Configuration
|
|
1303
1194
|
</label>
|
|
@@ -1310,11 +1201,11 @@
|
|
|
1310
1201
|
|
|
1311
1202
|
|
|
1312
1203
|
<li class="md-nav__item">
|
|
1313
|
-
<a href="../../user-guide/administration/configuration/
|
|
1204
|
+
<a href="../../user-guide/administration/configuration/settings.html" class="md-nav__link">
|
|
1314
1205
|
|
|
1315
1206
|
|
|
1316
1207
|
<span class="md-ellipsis">
|
|
1317
|
-
|
|
1208
|
+
Settings
|
|
1318
1209
|
</span>
|
|
1319
1210
|
|
|
1320
1211
|
|
|
@@ -1331,11 +1222,11 @@
|
|
|
1331
1222
|
|
|
1332
1223
|
|
|
1333
1224
|
<li class="md-nav__item">
|
|
1334
|
-
<a href="../../user-guide/administration/configuration/
|
|
1225
|
+
<a href="../../user-guide/administration/configuration/redis.html" class="md-nav__link">
|
|
1335
1226
|
|
|
1336
1227
|
|
|
1337
1228
|
<span class="md-ellipsis">
|
|
1338
|
-
|
|
1229
|
+
Redis
|
|
1339
1230
|
</span>
|
|
1340
1231
|
|
|
1341
1232
|
|
|
@@ -1383,10 +1274,10 @@
|
|
|
1383
1274
|
|
|
1384
1275
|
|
|
1385
1276
|
|
|
1386
|
-
<input class="md-nav__toggle md-toggle " type="checkbox" id="
|
|
1277
|
+
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2_1_4_4" >
|
|
1387
1278
|
|
|
1388
1279
|
|
|
1389
|
-
<label class="md-nav__link" for="
|
|
1280
|
+
<label class="md-nav__link" for="__nav_2_1_4_4" id="__nav_2_1_4_4_label" tabindex="0">
|
|
1390
1281
|
|
|
1391
1282
|
|
|
1392
1283
|
<span class="md-ellipsis">
|
|
@@ -1397,8 +1288,8 @@
|
|
|
1397
1288
|
<span class="md-nav__icon md-icon"></span>
|
|
1398
1289
|
</label>
|
|
1399
1290
|
|
|
1400
|
-
<nav class="md-nav" data-md-level="4" aria-labelledby="
|
|
1401
|
-
<label class="md-nav__title" for="
|
|
1291
|
+
<nav class="md-nav" data-md-level="4" aria-labelledby="__nav_2_1_4_4_label" aria-expanded="false">
|
|
1292
|
+
<label class="md-nav__title" for="__nav_2_1_4_4">
|
|
1402
1293
|
<span class="md-nav__icon md-icon"></span>
|
|
1403
1294
|
External Authentication
|
|
1404
1295
|
</label>
|
|
@@ -1500,10 +1391,10 @@
|
|
|
1500
1391
|
|
|
1501
1392
|
|
|
1502
1393
|
|
|
1503
|
-
<input class="md-nav__toggle md-toggle " type="checkbox" id="
|
|
1394
|
+
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2_1_5" >
|
|
1504
1395
|
|
|
1505
1396
|
|
|
1506
|
-
<label class="md-nav__link" for="
|
|
1397
|
+
<label class="md-nav__link" for="__nav_2_1_5" id="__nav_2_1_5_label" tabindex="0">
|
|
1507
1398
|
|
|
1508
1399
|
|
|
1509
1400
|
<span class="md-ellipsis">
|
|
@@ -1514,8 +1405,8 @@
|
|
|
1514
1405
|
<span class="md-nav__icon md-icon"></span>
|
|
1515
1406
|
</label>
|
|
1516
1407
|
|
|
1517
|
-
<nav class="md-nav" data-md-level="3" aria-labelledby="
|
|
1518
|
-
<label class="md-nav__title" for="
|
|
1408
|
+
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_2_1_5_label" aria-expanded="false">
|
|
1409
|
+
<label class="md-nav__title" for="__nav_2_1_5">
|
|
1519
1410
|
<span class="md-nav__icon md-icon"></span>
|
|
1520
1411
|
Tools
|
|
1521
1412
|
</label>
|
|
@@ -1588,10 +1479,10 @@
|
|
|
1588
1479
|
|
|
1589
1480
|
|
|
1590
1481
|
|
|
1591
|
-
<input class="md-nav__toggle md-toggle " type="checkbox" id="
|
|
1482
|
+
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2_1_6" >
|
|
1592
1483
|
|
|
1593
1484
|
|
|
1594
|
-
<label class="md-nav__link" for="
|
|
1485
|
+
<label class="md-nav__link" for="__nav_2_1_6" id="__nav_2_1_6_label" tabindex="0">
|
|
1595
1486
|
|
|
1596
1487
|
|
|
1597
1488
|
<span class="md-ellipsis">
|
|
@@ -1602,8 +1493,8 @@
|
|
|
1602
1493
|
<span class="md-nav__icon md-icon"></span>
|
|
1603
1494
|
</label>
|
|
1604
1495
|
|
|
1605
|
-
<nav class="md-nav" data-md-level="3" aria-labelledby="
|
|
1606
|
-
<label class="md-nav__title" for="
|
|
1496
|
+
<nav class="md-nav" data-md-level="3" aria-labelledby="__nav_2_1_6_label" aria-expanded="false">
|
|
1497
|
+
<label class="md-nav__title" for="__nav_2_1_6">
|
|
1607
1498
|
<span class="md-nav__icon md-icon"></span>
|
|
1608
1499
|
Guides
|
|
1609
1500
|
</label>
|
|
@@ -1616,11 +1507,11 @@
|
|
|
1616
1507
|
|
|
1617
1508
|
|
|
1618
1509
|
<li class="md-nav__item">
|
|
1619
|
-
<a href="../../user-guide/administration/guides/
|
|
1510
|
+
<a href="../../user-guide/administration/guides/docker.html" class="md-nav__link">
|
|
1620
1511
|
|
|
1621
1512
|
|
|
1622
1513
|
<span class="md-ellipsis">
|
|
1623
|
-
|
|
1514
|
+
Nautobot Docker Images
|
|
1624
1515
|
</span>
|
|
1625
1516
|
|
|
1626
1517
|
|
|
@@ -1637,11 +1528,32 @@
|
|
|
1637
1528
|
|
|
1638
1529
|
|
|
1639
1530
|
<li class="md-nav__item">
|
|
1640
|
-
<a href="../../user-guide/administration/guides/
|
|
1531
|
+
<a href="../../user-guide/administration/guides/selinux-troubleshooting.html" class="md-nav__link">
|
|
1641
1532
|
|
|
1642
1533
|
|
|
1643
1534
|
<span class="md-ellipsis">
|
|
1644
|
-
|
|
1535
|
+
SELinux Troubleshooting
|
|
1536
|
+
</span>
|
|
1537
|
+
|
|
1538
|
+
|
|
1539
|
+
</a>
|
|
1540
|
+
</li>
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
|
|
1546
|
+
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
<li class="md-nav__item">
|
|
1552
|
+
<a href="../../user-guide/administration/guides/health-checks.html" class="md-nav__link">
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
<span class="md-ellipsis">
|
|
1556
|
+
Health Checks
|
|
1645
1557
|
</span>
|
|
1646
1558
|
|
|
1647
1559
|
|
|
@@ -9120,18 +9032,26 @@
|
|
|
9120
9032
|
<p>Nautobot's custom <a href="https://docs.djangoproject.com/en/3.2/topics/testing/advanced/#defining-a-test-runner">test runner</a> class (<code>nautobot.core.tests.runner.NautobotTestRunner</code>) makes use of the various factories to pre-populate the test database with data before running any tests. This reduces the need for individual tests to define their own baseline data sets.</p>
|
|
9121
9033
|
<div class="admonition info">
|
|
9122
9034
|
<p class="admonition-title">Info</p>
|
|
9123
|
-
<p>Because Apps also commonly use Nautobot's test runner, the base Nautobot <code>settings.py</code> currently defaults <a href="../../user-guide/administration/configuration/
|
|
9035
|
+
<p>Because Apps also commonly use Nautobot's test runner, the base Nautobot <code>settings.py</code> currently defaults <a href="../../user-guide/administration/configuration/settings.html#test_use_factories"><code>TEST_USE_FACTORIES</code></a> to <code>False</code> so as to not negatively impact App tests that may not be designed to account for the presence of pre-populated test data in the database. This configuration is overridden to <code>True</code> in <code>nautobot/core/tests/nautobot_config.py</code> for Nautobot's own tests.</p>
|
|
9036
|
+
</div>
|
|
9037
|
+
<div class="admonition warning">
|
|
9038
|
+
<p class="admonition-title">Warning</p>
|
|
9039
|
+
<p>Factories should generally <strong>not</strong> be called within test code, i.e. in a <code>setUp()</code> or <code>setUpTestData()</code> method. This is because factory output is <em>stateful</em>, that is to say the output of any given factory call will depend on the history of <em>all previous factory calls</em> since the process was started. This means that a call to a factory within a test case will depend on which other test cases have also called factories, and what order they were called in, as well as whether the initial test database population was done via factories or whether they were bypassed by reuse of cached test data (see below).</p>
|
|
9040
|
+
<p>In short, we should only have one place in our tests where factories are called, and that's the <code>generate_test_data</code> management command. Individual tests should use standard <code>create()</code> or <code>save()</code> model methods, never factories.</p>
|
|
9124
9041
|
</div>
|
|
9125
9042
|
<h3 id="factory-caching">Factory Caching<a class="headerlink" href="#factory-caching" title="Permanent link">¶</a></h3>
|
|
9126
9043
|
<details class="version-added">
|
|
9127
9044
|
<summary>Added in version 1.5.11</summary>
|
|
9128
9045
|
</details>
|
|
9129
|
-
<p>To reduce the time taken between multiple test runs, a new argument has been added to the <code>nautobot-server test</code
|
|
9130
|
-
<p>Factory caching is disabled by default. When using the <code>invoke</code> commands to run tests, caching can be enabled by default for your development environment by setting the <code>cache_test_fixtures</code> key to <code>True</code> in the <code>invoke.yml</code> file.</p>
|
|
9046
|
+
<p>To reduce the time taken between multiple test runs, a new argument has been added to the <code>nautobot-server test</code> command: <code>--cache-test-fixtures</code>. When running tests with <code>--cache-test-fixtures</code> for the first time, after the factory data has been generated it will be saved to a <code>factory_dump.json</code> file in the <code>development</code> directory. On subsequent runs of unit or integration tests, if <code>--cache-test-fixtures</code> is again specified (hint: it is included by default when running <code>invoke unittest</code> or <code>invoke integration-test</code>), the factory data will be loaded from the file instead of being generated again. This can significantly reduce the time taken to run tests.</p>
|
|
9131
9047
|
<details class="version-changed">
|
|
9132
9048
|
<summary>Changed in version 2.2.7 — Hashing of migrations in the factory dump</summary>
|
|
9133
9049
|
<p>The test runner now calculates a hash of applied database migrations and uses that as a key when creating/locating the factory data file. This serves as a way to avoid inadvertently using cached test data from the wrong branch or wrong set of migrations, and reduces the frequency with which you might need to manually delete the fixture file. For example, the set of migrations present in <code>develop</code> might result in a <code>factory_dump.966e2e1ed4ae5f924d54.json</code>, while those in <code>next</code> might result in <code>factory_dump.72b71317c5f5c047493e.json</code> - both files can coexist, and when you switch between branches during development, the correct one will automatically be selected.</p>
|
|
9134
9050
|
</details>
|
|
9051
|
+
<details class="version-changed">
|
|
9052
|
+
<summary>Changed in version 2.3.4 — Factory caching is enabled by default in invoke tasks</summary>
|
|
9053
|
+
<p>Factory caching is now enabled by default with the <code>invoke unittest</code> and <code>invoke integration-test</code> commands. To bypass it, either use the <code>--no-cache-test-fixtures</code> argument to <code>invoke unittest</code> or <code>invoke integration-test</code>, or manually remove the <code>development/factory_dump.*.json</code> cache file(s).</p>
|
|
9054
|
+
</details>
|
|
9135
9055
|
<div class="admonition tip">
|
|
9136
9056
|
<p class="admonition-title">Tip</p>
|
|
9137
9057
|
<p>Although changes to the set of migrations defined will automatically invalidate an existing factory dump, there are two other cases where you will currently need to manually remove the file in order to force regeneration of the factory data:</p>
|
|
@@ -9187,7 +9107,7 @@ If performance baselines for tests are not available:</p>
|
|
|
9187
9107
|
</code></pre></div>
|
|
9188
9108
|
<div class="admonition info">
|
|
9189
9109
|
<p class="admonition-title">Info</p>
|
|
9190
|
-
<p>To output the performance evaluation to a file for later use, i.e. as performance baselines for future test runs, do <code>invoke performance-test --performance-snapshot</code>. This command will collect the <code>names</code> of the test and their <code>execution_time</code> and store them in a .yml file default to <code>report.yml</code>. Subsequently, the data in that file will have to be manually added to the baseline file set at <a href="../../user-guide/administration/configuration/
|
|
9110
|
+
<p>To output the performance evaluation to a file for later use, i.e. as performance baselines for future test runs, do <code>invoke performance-test --performance-snapshot</code>. This command will collect the <code>names</code> of the test and their <code>execution_time</code> and store them in a .yml file default to <code>report.yml</code>. Subsequently, the data in that file will have to be manually added to the baseline file set at <a href="../../user-guide/administration/configuration/settings.html#test_performance_baseline_file"><code>TEST_PERFORMANCE_BASELINE_FILE</code></a> to be used as baselines in performance tests.</p>
|
|
9191
9111
|
</div>
|
|
9192
9112
|
<p>Example output of <code>invoke performance-test --performance-snapshot</code>:</p>
|
|
9193
9113
|
<div class="highlight"><pre><span></span><code><a id="__codelineno-4-1" name="__codelineno-4-1" href="#__codelineno-4-1"></a><span class="p p-Indicator">-</span><span class="w"> </span><span class="nt">tests</span><span class="p">:</span>
|
|
@@ -9398,7 +9318,7 @@ If performance baselines for tests are not available:</p>
|
|
|
9398
9318
|
</div>
|
|
9399
9319
|
|
|
9400
9320
|
|
|
9401
|
-
<script id="__config" type="application/json">{"base": "../..", "features": ["content.code.copy", "content.tabs.link", "navigation.footer", "navigation.tabs", "navigation.tabs.sticky", "navigation.tracking", "search.highlight", "search.share", "search.suggest"], "search": "../../assets/javascripts/workers/search.
|
|
9321
|
+
<script id="__config" type="application/json">{"base": "../..", "features": ["content.code.copy", "content.tabs.link", "navigation.footer", "navigation.tabs", "navigation.tabs.sticky", "navigation.tracking", "search.highlight", "search.share", "search.suggest"], "search": "../../assets/javascripts/workers/search.6ce7567c.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
|
|
9402
9322
|
|
|
9403
9323
|
|
|
9404
9324
|
<script src="../../assets/javascripts/bundle.56dfad97.min.js"></script>
|