nautobot 2.4.0__py3-none-any.whl → 2.4.0b1__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/apps/__init__.py +1 -1
- nautobot/apps/api.py +8 -8
- nautobot/apps/change_logging.py +2 -2
- nautobot/apps/choices.py +4 -4
- nautobot/apps/events.py +3 -3
- nautobot/apps/factory.py +2 -2
- nautobot/apps/filters.py +1 -1
- nautobot/apps/forms.py +20 -20
- nautobot/apps/graphql.py +2 -2
- nautobot/apps/jobs.py +8 -8
- nautobot/apps/models.py +19 -19
- nautobot/apps/tables.py +1 -1
- nautobot/apps/testing.py +10 -10
- nautobot/apps/ui.py +2 -2
- nautobot/apps/utils.py +7 -7
- nautobot/apps/views.py +7 -7
- nautobot/circuits/api/serializers.py +0 -1
- nautobot/circuits/api/views.py +8 -4
- nautobot/circuits/tables.py +1 -2
- nautobot/circuits/templates/circuits/circuit_create.html +7 -1
- nautobot/circuits/views.py +3 -3
- nautobot/cloud/api/views.py +10 -6
- nautobot/cloud/models.py +1 -1
- nautobot/cloud/views.py +16 -0
- nautobot/core/api/fields.py +5 -5
- nautobot/core/api/filter_backends.py +9 -3
- nautobot/core/api/schema.py +2 -13
- nautobot/core/api/serializers.py +34 -40
- nautobot/core/api/views.py +4 -56
- nautobot/core/celery/log.py +4 -4
- nautobot/core/celery/schedulers.py +1 -1
- nautobot/core/choices.py +2 -2
- nautobot/core/events/__init__.py +3 -3
- nautobot/core/filters.py +16 -21
- nautobot/core/fixtures/user-data.json +59 -0
- nautobot/core/forms/__init__.py +19 -19
- nautobot/core/forms/fields.py +11 -14
- nautobot/core/forms/forms.py +2 -33
- nautobot/core/graphql/types.py +1 -1
- nautobot/core/jobs/__init__.py +7 -28
- nautobot/core/jobs/cleanup.py +12 -48
- nautobot/core/jobs/groups.py +1 -1
- nautobot/core/management/commands/validate_models.py +1 -1
- nautobot/core/models/__init__.py +1 -1
- nautobot/core/models/query_functions.py +2 -2
- nautobot/core/models/tree_queries.py +3 -6
- nautobot/core/settings.py +2 -29
- nautobot/core/settings.yaml +0 -21
- nautobot/core/tables.py +60 -74
- nautobot/core/templates/inc/media.html +0 -3
- nautobot/core/templates/inc/nav_menu.html +0 -1
- nautobot/core/templates/nautobot_config.py.j2 +0 -13
- nautobot/core/templates/search.html +0 -7
- nautobot/core/templates/utilities/render_jinja2.html +1 -1
- nautobot/core/templates/utilities/templatetags/tag.html +1 -1
- nautobot/core/templates/utilities/theme_preview.html +0 -7
- nautobot/core/templatetags/helpers.py +2 -11
- nautobot/core/testing/__init__.py +8 -8
- nautobot/core/testing/api.py +15 -170
- nautobot/core/testing/filters.py +2 -25
- nautobot/core/testing/forms.py +0 -2
- nautobot/core/testing/mixins.py +2 -7
- nautobot/core/testing/views.py +29 -44
- nautobot/core/tests/integration/test_app_home.py +1 -0
- nautobot/core/tests/integration/test_app_navbar.py +1 -0
- nautobot/core/tests/integration/test_filters.py +2 -0
- nautobot/core/tests/integration/test_home.py +1 -0
- nautobot/core/tests/integration/test_navbar.py +1 -0
- nautobot/core/tests/integration/test_view_authentication.py +0 -1
- nautobot/core/tests/runner.py +1 -1
- nautobot/core/tests/test_api.py +1 -98
- nautobot/core/tests/test_csv.py +3 -25
- nautobot/core/tests/test_forms.py +0 -1
- nautobot/core/tests/test_jobs.py +1 -303
- nautobot/core/tests/test_settings_schema.py +0 -7
- nautobot/core/tests/test_tables.py +0 -100
- nautobot/core/tests/test_utils.py +1 -63
- nautobot/core/tests/test_views.py +3 -30
- nautobot/core/ui/nav.py +0 -1
- nautobot/core/ui/object_detail.py +1 -15
- nautobot/core/urls.py +0 -11
- nautobot/core/utils/lookup.py +8 -11
- nautobot/core/utils/requests.py +9 -24
- nautobot/core/views/__init__.py +0 -42
- nautobot/core/views/generic.py +176 -78
- nautobot/core/views/mixins.py +34 -94
- nautobot/core/views/renderers.py +6 -6
- nautobot/dcim/api/serializers.py +62 -54
- nautobot/dcim/api/views.py +113 -47
- nautobot/dcim/filters/__init__.py +2 -31
- nautobot/dcim/forms.py +17 -36
- nautobot/dcim/graphql/types.py +2 -2
- nautobot/dcim/models/__init__.py +1 -1
- nautobot/dcim/models/device_component_templates.py +2 -2
- nautobot/dcim/models/device_components.py +20 -22
- nautobot/dcim/models/devices.py +1 -10
- nautobot/dcim/models/locations.py +3 -3
- nautobot/dcim/models/power.py +5 -6
- nautobot/dcim/models/racks.py +4 -4
- nautobot/dcim/tables/__init__.py +3 -3
- nautobot/dcim/tables/devices.py +5 -7
- nautobot/dcim/tables/devicetypes.py +2 -2
- nautobot/dcim/tables/racks.py +1 -1
- nautobot/dcim/templates/dcim/controller_create.html +7 -1
- nautobot/dcim/templates/dcim/controller_retrieve.html +9 -1
- nautobot/dcim/templates/dcim/controllermanageddevicegroup_create.html +0 -2
- nautobot/dcim/templates/dcim/controllermanageddevicegroup_retrieve.html +0 -5
- nautobot/dcim/templates/dcim/device.html +9 -1
- nautobot/dcim/templates/dcim/device_edit.html +37 -36
- nautobot/dcim/templates/dcim/location.html +9 -1
- nautobot/dcim/templates/dcim/location_edit.html +7 -1
- nautobot/dcim/templates/dcim/rack.html +9 -1
- nautobot/dcim/templates/dcim/rack_edit.html +7 -1
- nautobot/dcim/templates/dcim/rackreservation.html +9 -1
- nautobot/dcim/templates/dcim/virtualdevicecontext_retrieve.html +9 -1
- nautobot/dcim/templates/dcim/virtualdevicecontext_update.html +7 -1
- nautobot/dcim/tests/test_api.py +3 -16
- nautobot/dcim/tests/test_filters.py +0 -33
- nautobot/dcim/tests/test_forms.py +2 -51
- nautobot/dcim/tests/test_graphql.py +0 -52
- nautobot/dcim/tests/test_models.py +5 -34
- nautobot/dcim/tests/test_views.py +83 -21
- nautobot/dcim/views.py +13 -1
- nautobot/extras/api/customfields.py +2 -2
- nautobot/extras/api/serializers.py +85 -90
- nautobot/extras/api/views.py +27 -22
- nautobot/extras/constants.py +0 -2
- nautobot/extras/filters/__init__.py +6 -8
- nautobot/extras/forms/base.py +2 -2
- nautobot/extras/forms/forms.py +31 -139
- nautobot/extras/forms/mixins.py +5 -13
- nautobot/extras/group_sync.py +3 -3
- nautobot/extras/health_checks.py +2 -1
- nautobot/extras/jobs.py +12 -70
- nautobot/extras/managers.py +1 -3
- nautobot/extras/migrations/0018_joblog_data_migration.py +9 -7
- nautobot/extras/models/__init__.py +1 -1
- nautobot/extras/models/contacts.py +1 -1
- nautobot/extras/models/customfields.py +11 -12
- nautobot/extras/models/groups.py +9 -11
- nautobot/extras/models/jobs.py +4 -23
- nautobot/extras/models/models.py +2 -2
- nautobot/extras/plugins/__init__.py +2 -13
- nautobot/extras/plugins/marketplace_manifest.yml +79 -84
- nautobot/extras/plugins/tables.py +14 -16
- nautobot/extras/plugins/views.py +69 -65
- nautobot/extras/registry.py +1 -1
- nautobot/extras/secrets/__init__.py +2 -2
- nautobot/extras/tables.py +5 -7
- nautobot/extras/templates/extras/dynamicgroup.html +9 -1
- nautobot/extras/templates/extras/job_detail.html +0 -16
- nautobot/extras/templates/extras/job_edit.html +0 -1
- nautobot/extras/templates/extras/jobqueue_retrieve.html +9 -1
- nautobot/extras/templates/extras/marketplace.html +11 -29
- nautobot/extras/templates/extras/plugin_detail.html +15 -32
- nautobot/extras/templates/extras/plugins_tiles.html +10 -21
- nautobot/extras/test_jobs/api_test_job.py +1 -1
- nautobot/extras/test_jobs/atomic_transaction.py +2 -2
- nautobot/extras/test_jobs/dry_run.py +1 -1
- nautobot/extras/test_jobs/fail.py +5 -5
- nautobot/extras/test_jobs/file_output.py +1 -1
- nautobot/extras/test_jobs/file_upload_fail.py +1 -1
- nautobot/extras/test_jobs/file_upload_pass.py +1 -1
- nautobot/extras/test_jobs/ipaddress_vars.py +1 -3
- nautobot/extras/test_jobs/jobs_module/jobs_submodule/jobs.py +1 -1
- nautobot/extras/test_jobs/location_with_custom_field.py +1 -1
- nautobot/extras/test_jobs/log_redaction.py +1 -1
- nautobot/extras/test_jobs/log_skip_db_logging.py +1 -1
- nautobot/extras/test_jobs/modify_db.py +1 -1
- nautobot/extras/test_jobs/object_var_optional.py +1 -1
- nautobot/extras/test_jobs/object_var_required.py +1 -1
- nautobot/extras/test_jobs/object_vars.py +1 -1
- nautobot/extras/test_jobs/pass.py +3 -3
- nautobot/extras/test_jobs/profiling.py +1 -1
- nautobot/extras/test_jobs/relative_import.py +3 -3
- nautobot/extras/test_jobs/soft_time_limit_greater_than_time_limit.py +1 -1
- nautobot/extras/test_jobs/task_queues.py +1 -1
- nautobot/extras/tests/integration/test_plugin_banner.py +2 -0
- nautobot/extras/tests/test_api.py +13 -13
- nautobot/extras/tests/test_customfields.py +1 -1
- nautobot/extras/tests/test_datasources.py +1 -2
- nautobot/extras/tests/test_dynamicgroups.py +1 -1
- nautobot/extras/tests/test_filters.py +6 -6
- nautobot/extras/tests/test_forms.py +1 -20
- nautobot/extras/tests/test_jobs.py +19 -160
- nautobot/extras/tests/test_models.py +10 -10
- nautobot/extras/tests/test_plugins.py +9 -62
- nautobot/extras/tests/test_relationships.py +9 -120
- nautobot/extras/tests/test_views.py +191 -52
- nautobot/extras/utils.py +2 -3
- nautobot/extras/views.py +98 -30
- nautobot/ipam/api/fields.py +3 -3
- nautobot/ipam/api/serializers.py +33 -41
- nautobot/ipam/api/views.py +117 -68
- nautobot/ipam/factory.py +1 -1
- nautobot/ipam/filters.py +2 -3
- nautobot/ipam/lookups.py +62 -101
- nautobot/ipam/models.py +16 -66
- nautobot/ipam/querysets.py +2 -2
- nautobot/ipam/tables.py +7 -23
- nautobot/ipam/templates/ipam/ipaddress.html +9 -1
- nautobot/ipam/templates/ipam/ipaddress_bulk_add.html +7 -1
- nautobot/ipam/templates/ipam/ipaddress_edit.html +7 -1
- nautobot/ipam/templates/ipam/prefix.html +9 -1
- nautobot/ipam/templates/ipam/prefix_edit.html +7 -1
- nautobot/ipam/templates/ipam/vlan.html +9 -1
- nautobot/ipam/templates/ipam/vlan_edit.html +7 -1
- nautobot/ipam/templates/ipam/vrf_edit.html +7 -1
- nautobot/ipam/tests/test_api.py +3 -416
- nautobot/ipam/tests/test_forms.py +47 -49
- nautobot/ipam/tests/test_migrations.py +30 -30
- nautobot/ipam/tests/test_models.py +34 -95
- nautobot/ipam/tests/test_querysets.py +1 -63
- nautobot/ipam/tests/test_views.py +0 -3
- nautobot/ipam/utils/__init__.py +6 -36
- nautobot/ipam/views.py +87 -61
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.css.map +1 -1
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap-theme.min.css.map +1 -1
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.css +2 -40
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.css.map +1 -1
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.min.css +1 -1
- nautobot/project-static/bootstrap-3.4.1-dist/css/bootstrap.min.css.map +1 -1
- nautobot/project-static/docs/404.html +4 -46
- nautobot/project-static/docs/apps/index.html +4 -46
- nautobot/project-static/docs/apps/nautobot-apps.html +6 -47
- nautobot/project-static/docs/assets/_mkdocstrings.css +1 -25
- nautobot/project-static/docs/assets/javascripts/{bundle.88dd0f4e.min.js → bundle.83f73b43.min.js} +2 -2
- nautobot/project-static/docs/assets/javascripts/{bundle.88dd0f4e.min.js.map → bundle.83f73b43.min.js.map} +2 -2
- nautobot/project-static/docs/code-reference/nautobot/apps/__init__.html +10 -62
- nautobot/project-static/docs/code-reference/nautobot/apps/admin.html +7 -59
- nautobot/project-static/docs/code-reference/nautobot/apps/api.html +122 -374
- nautobot/project-static/docs/code-reference/nautobot/apps/change_logging.html +18 -90
- nautobot/project-static/docs/code-reference/nautobot/apps/choices.html +21 -95
- nautobot/project-static/docs/code-reference/nautobot/apps/config.html +6 -53
- nautobot/project-static/docs/code-reference/nautobot/apps/constants.html +5 -52
- nautobot/project-static/docs/code-reference/nautobot/apps/datasources.html +17 -79
- nautobot/project-static/docs/code-reference/nautobot/apps/events.html +28 -102
- nautobot/project-static/docs/code-reference/nautobot/apps/exceptions.html +21 -108
- nautobot/project-static/docs/code-reference/nautobot/apps/factory.html +38 -131
- nautobot/project-static/docs/code-reference/nautobot/apps/filters.html +65 -239
- nautobot/project-static/docs/code-reference/nautobot/apps/forms.html +165 -581
- nautobot/project-static/docs/code-reference/nautobot/apps/graphql.html +36 -109
- nautobot/project-static/docs/code-reference/nautobot/apps/jobs.html +167 -453
- nautobot/project-static/docs/code-reference/nautobot/apps/models.html +211 -493
- nautobot/project-static/docs/code-reference/nautobot/apps/querysets.html +8 -60
- nautobot/project-static/docs/code-reference/nautobot/apps/secrets.html +15 -71
- nautobot/project-static/docs/code-reference/nautobot/apps/tables.html +55 -407
- nautobot/project-static/docs/code-reference/nautobot/apps/testing.html +205 -585
- nautobot/project-static/docs/code-reference/nautobot/apps/ui.html +412 -858
- nautobot/project-static/docs/code-reference/nautobot/apps/urls.html +7 -59
- nautobot/project-static/docs/code-reference/nautobot/apps/utils.html +186 -448
- nautobot/project-static/docs/code-reference/nautobot/apps/views.html +147 -365
- nautobot/project-static/docs/development/apps/api/configuration-view.html +4 -46
- nautobot/project-static/docs/development/apps/api/database-backend-config.html +4 -46
- nautobot/project-static/docs/development/apps/api/models/django-admin.html +4 -46
- nautobot/project-static/docs/development/apps/api/models/global-search.html +4 -46
- nautobot/project-static/docs/development/apps/api/models/graphql.html +4 -46
- nautobot/project-static/docs/development/apps/api/models/index.html +4 -46
- nautobot/project-static/docs/development/apps/api/nautobot-app-config.html +4 -46
- nautobot/project-static/docs/development/apps/api/platform-features/custom-validators.html +4 -46
- nautobot/project-static/docs/development/apps/api/platform-features/filter-extensions.html +4 -46
- nautobot/project-static/docs/development/apps/api/platform-features/git-repository-content.html +4 -46
- nautobot/project-static/docs/development/apps/api/platform-features/index.html +4 -46
- nautobot/project-static/docs/development/apps/api/platform-features/jinja2-filters.html +4 -46
- nautobot/project-static/docs/development/apps/api/platform-features/jobs.html +4 -46
- nautobot/project-static/docs/development/apps/api/platform-features/populating-extensibility-features.html +4 -46
- nautobot/project-static/docs/development/apps/api/platform-features/secrets-providers.html +4 -46
- nautobot/project-static/docs/development/apps/api/platform-features/table-extensions.html +7 -68
- nautobot/project-static/docs/development/apps/api/platform-features/uniquely-identify-objects.html +4 -46
- nautobot/project-static/docs/development/apps/api/prometheus.html +4 -46
- nautobot/project-static/docs/development/apps/api/setup.html +4 -46
- nautobot/project-static/docs/development/apps/api/testing.html +4 -46
- nautobot/project-static/docs/development/apps/api/ui-extensions/banners.html +4 -46
- nautobot/project-static/docs/development/apps/api/ui-extensions/home-page.html +4 -46
- nautobot/project-static/docs/development/apps/api/ui-extensions/index.html +4 -46
- nautobot/project-static/docs/development/apps/api/ui-extensions/navigation.html +4 -46
- nautobot/project-static/docs/development/apps/api/ui-extensions/object-views.html +4 -46
- nautobot/project-static/docs/development/apps/api/views/base-template.html +4 -46
- nautobot/project-static/docs/development/apps/api/views/core-view-overrides.html +4 -46
- nautobot/project-static/docs/development/apps/api/views/django-generic-views.html +4 -46
- nautobot/project-static/docs/development/apps/api/views/help-documentation.html +4 -46
- nautobot/project-static/docs/development/apps/api/views/index.html +4 -46
- nautobot/project-static/docs/development/apps/api/views/nautobot-generic-views.html +4 -46
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewset.html +4 -46
- nautobot/project-static/docs/development/apps/api/views/nautobotuiviewsetrouter.html +4 -46
- nautobot/project-static/docs/development/apps/api/views/notes.html +4 -46
- nautobot/project-static/docs/development/apps/api/views/rest-api.html +6 -52
- nautobot/project-static/docs/development/apps/api/views/urls.html +4 -46
- nautobot/project-static/docs/development/apps/index.html +4 -46
- nautobot/project-static/docs/development/apps/migration/code-updates.html +4 -46
- nautobot/project-static/docs/development/apps/migration/dependency-updates.html +4 -46
- nautobot/project-static/docs/development/apps/migration/from-v1.html +4 -46
- nautobot/project-static/docs/development/apps/migration/model-updates/dcim.html +4 -46
- nautobot/project-static/docs/development/apps/migration/model-updates/extras.html +4 -46
- nautobot/project-static/docs/development/apps/migration/model-updates/global.html +4 -46
- nautobot/project-static/docs/development/apps/migration/model-updates/ipam.html +4 -46
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/best-practices.html +8 -50
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/custom-content.html +4 -46
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/index.html +14 -211
- nautobot/project-static/docs/development/apps/migration/ui-component-framework/migration-steps.html +4 -46
- nautobot/project-static/docs/development/apps/porting-from-netbox.html +4 -46
- nautobot/project-static/docs/development/core/application-registry.html +4 -46
- nautobot/project-static/docs/development/core/best-practices.html +4 -46
- nautobot/project-static/docs/development/core/bootstrap-ui.html +4 -46
- nautobot/project-static/docs/development/core/caching.html +4 -46
- nautobot/project-static/docs/development/core/controllers.html +4 -46
- nautobot/project-static/docs/development/core/docker-compose-advanced-use-cases.html +74 -73
- nautobot/project-static/docs/development/core/generic-views.html +4 -46
- nautobot/project-static/docs/development/core/getting-started.html +224 -249
- nautobot/project-static/docs/development/core/homepage.html +7 -49
- nautobot/project-static/docs/development/core/index.html +4 -46
- nautobot/project-static/docs/development/core/{minikube-dev-environment-for-k8s-jobs.html → local-k8s.html} +168 -469
- nautobot/project-static/docs/development/core/model-checklist.html +12 -56
- nautobot/project-static/docs/development/core/model-features.html +4 -46
- nautobot/project-static/docs/development/core/natural-keys.html +4 -46
- nautobot/project-static/docs/development/core/navigation-menu.html +4 -46
- nautobot/project-static/docs/development/core/release-checklist.html +7 -49
- nautobot/project-static/docs/development/core/role-internals.html +4 -46
- nautobot/project-static/docs/development/core/settings.html +4 -46
- nautobot/project-static/docs/development/core/style-guide.html +7 -49
- nautobot/project-static/docs/development/core/templates.html +4 -46
- nautobot/project-static/docs/development/core/testing.html +4 -46
- nautobot/project-static/docs/development/core/ui-component-framework.html +273 -369
- nautobot/project-static/docs/development/core/user-preferences.html +4 -46
- nautobot/project-static/docs/development/index.html +4 -46
- nautobot/project-static/docs/development/jobs/index.html +122 -216
- nautobot/project-static/docs/development/jobs/migration/from-v1.html +4 -46
- nautobot/project-static/docs/index.html +23 -54
- nautobot/project-static/docs/objects.inv +0 -0
- nautobot/project-static/docs/overview/application_stack.html +7 -47
- nautobot/project-static/docs/overview/design_philosophy.html +4 -46
- nautobot/project-static/docs/release-notes/index.html +12 -52
- nautobot/project-static/docs/release-notes/version-1.0.html +193 -234
- nautobot/project-static/docs/release-notes/version-1.1.html +190 -231
- nautobot/project-static/docs/release-notes/version-1.2.html +265 -306
- nautobot/project-static/docs/release-notes/version-1.3.html +291 -332
- nautobot/project-static/docs/release-notes/version-1.4.html +377 -417
- nautobot/project-static/docs/release-notes/version-1.5.html +566 -605
- nautobot/project-static/docs/release-notes/version-1.6.html +447 -904
- nautobot/project-static/docs/release-notes/version-2.0.html +489 -528
- nautobot/project-static/docs/release-notes/version-2.1.html +324 -363
- nautobot/project-static/docs/release-notes/version-2.2.html +317 -356
- nautobot/project-static/docs/release-notes/version-2.3.html +352 -997
- nautobot/project-static/docs/release-notes/version-2.4.html +101 -417
- nautobot/project-static/docs/requirements.txt +2 -2
- nautobot/project-static/docs/search/search_index.json +1 -1
- nautobot/project-static/docs/sitemap.xml +287 -295
- nautobot/project-static/docs/sitemap.xml.gz +0 -0
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/ldap.html +4 -46
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/remote.html +4 -46
- nautobot/project-static/docs/user-guide/administration/configuration/authentication/sso.html +6 -48
- nautobot/project-static/docs/user-guide/administration/configuration/index.html +4 -46
- nautobot/project-static/docs/user-guide/administration/configuration/redis.html +4 -46
- nautobot/project-static/docs/user-guide/administration/configuration/settings.html +8 -110
- nautobot/project-static/docs/user-guide/administration/configuration/time-zones.html +4 -46
- nautobot/project-static/docs/user-guide/administration/guides/celery-queues.html +4 -46
- nautobot/project-static/docs/user-guide/administration/guides/docker.html +4 -46
- nautobot/project-static/docs/user-guide/administration/guides/health-checks.html +4 -46
- nautobot/project-static/docs/user-guide/administration/guides/permissions.html +4 -46
- nautobot/project-static/docs/user-guide/administration/guides/prometheus-metrics.html +4 -46
- nautobot/project-static/docs/user-guide/administration/guides/replicating-nautobot.html +4 -46
- nautobot/project-static/docs/user-guide/administration/guides/request-profiling.html +4 -46
- nautobot/project-static/docs/user-guide/administration/guides/s3-django-storage.html +6 -48
- nautobot/project-static/docs/user-guide/administration/guides/selinux-troubleshooting.html +4 -46
- nautobot/project-static/docs/user-guide/administration/installation/app-install.html +4 -46
- nautobot/project-static/docs/user-guide/administration/installation/external-authentication.html +4 -46
- nautobot/project-static/docs/user-guide/administration/installation/http-server.html +8 -66
- nautobot/project-static/docs/user-guide/administration/installation/index.html +4 -46
- nautobot/project-static/docs/user-guide/administration/installation/install_system.html +5 -47
- nautobot/project-static/docs/user-guide/administration/installation/nautobot.html +4 -46
- nautobot/project-static/docs/user-guide/administration/installation/services.html +4 -46
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-netbox.html +4 -46
- nautobot/project-static/docs/user-guide/administration/migration/migrating-from-postgresql.html +4 -46
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-server.html +4 -46
- nautobot/project-static/docs/user-guide/administration/tools/nautobot-shell.html +4 -46
- nautobot/project-static/docs/user-guide/administration/upgrading/database-backup.html +4 -46
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/after-you-upgrade.html +4 -46
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/before-you-upgrade.html +4 -46
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/for-developers.html +4 -46
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/index.html +4 -46
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/ipam/whats-changed.html +8 -49
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/region-and-site-data-migration-guide.html +4 -46
- nautobot/project-static/docs/user-guide/administration/upgrading/from-v1/upgrading-from-nautobot-v1.html +4 -46
- nautobot/project-static/docs/user-guide/administration/upgrading/upgrading.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuit.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittermination.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/circuits/circuittype.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/circuits/provider.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/circuits/providernetwork.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloud.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudaccount.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetwork.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudnetworkprefixassignment.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudresourcetype.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservice.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/cloud/cloudservicenetworkassignment.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/cable.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleport.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleporttemplate.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverport.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/consoleserverporttemplate.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controller.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/controllermanageddevicegroup.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/device.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebay.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicebaytemplate.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicefamily.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/deviceredundancygroup.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/devicetype.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontport.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/frontporttemplate.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interface.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfaceredundancygroup.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/interfacetemplate.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/inventoryitem.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/location.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/locationtype.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/manufacturer.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/module.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebay.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/modulebaytemplate.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/moduletype.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/platform.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerfeed.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlet.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/poweroutlettemplate.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerpanel.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerport.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/powerporttemplate.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rack.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackgroup.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rackreservation.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearport.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/rearporttemplate.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareimagefile.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/softwareversion.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualchassis.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/dcim/virtualdevicecontext.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontext.html +12 -50
- nautobot/project-static/docs/user-guide/core-data-model/extras/configcontextschema.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/extras/contact.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/extras/team.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/ipam/ipaddress.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/ipam/namespace.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/ipam/prefix.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/ipam/rir.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/ipam/routetarget.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/ipam/service.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlan.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vlangroup.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/ipam/vrf.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/overview/introduction.html +7 -49
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenant.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/tenancy/tenantgroup.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/cluster.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustergroup.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/clustertype.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/virtualmachine.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/virtualization/vminterface.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/wireless/index.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/wireless/radioprofile.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/wireless/supporteddatarate.html +4 -46
- nautobot/project-static/docs/user-guide/core-data-model/wireless/wirelessnetwork.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/contacts-and-teams.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/custom-fields.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-devices.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/creating-location-types-and-locations.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/index.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/interfaces.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/ipam.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/platforms.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/search-bar.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/tenants.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/getting-started/vlans-and-vlan-groups.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/git-data-source.html +7 -51
- nautobot/project-static/docs/user-guide/feature-guides/graphql.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/ip-address-merge-tool.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/relationships.html +4 -46
- nautobot/project-static/docs/user-guide/feature-guides/software-image-files-and-versions.html +7 -49
- nautobot/project-static/docs/user-guide/index.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/change-logging.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/computedfield.html +8 -50
- nautobot/project-static/docs/user-guide/platform-functionality/customfield.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/customlink.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/dynamicgroup.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/events.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/exporttemplate.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/externalintegration.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/gitrepository.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/graphql.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/graphqlquery.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/imageattachment.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/index.html +7 -50
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/job-scheduling-and-approvals.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobbutton.html +7 -49
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobhook.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/jobqueue.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/models.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/napalm.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/note.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/objectmetadata.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/relationship.html +5 -47
- nautobot/project-static/docs/user-guide/platform-functionality/rendering-jinja-templates.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/authentication.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/filtering.html +25 -94
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/overview.html +5 -74
- nautobot/project-static/docs/user-guide/platform-functionality/rest-api/ui-related-endpoints.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/role.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/savedview.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/secret.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/staticgroupassociation.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/status.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/tag.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/template-filters.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/users/objectpermission.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/users/token.html +4 -46
- nautobot/project-static/docs/user-guide/platform-functionality/webhook.html +4 -46
- nautobot/project-static/js/forms.js +1 -1
- nautobot/tenancy/api/views.py +13 -9
- nautobot/tenancy/views.py +2 -4
- nautobot/users/admin.py +1 -1
- nautobot/users/api/serializers.py +4 -5
- nautobot/users/api/views.py +3 -3
- nautobot/virtualization/api/serializers.py +4 -4
- nautobot/virtualization/api/views.py +24 -5
- nautobot/virtualization/filters.py +3 -20
- nautobot/virtualization/models.py +1 -1
- nautobot/virtualization/tables.py +2 -2
- nautobot/virtualization/templates/virtualization/cluster_edit.html +7 -1
- nautobot/virtualization/templates/virtualization/virtualmachine.html +9 -1
- nautobot/virtualization/templates/virtualization/virtualmachine_edit.html +8 -2
- nautobot/virtualization/tests/test_filters.py +0 -17
- nautobot/wireless/filters.py +2 -2
- nautobot/wireless/forms.py +1 -1
- nautobot/wireless/templates/wireless/wirelessnetwork_retrieve.html +9 -1
- nautobot/wireless/tests/test_filters.py +1 -29
- nautobot/wireless/views.py +10 -0
- {nautobot-2.4.0.dist-info → nautobot-2.4.0b1.dist-info}/METADATA +6 -6
- {nautobot-2.4.0.dist-info → nautobot-2.4.0b1.dist-info}/RECORD +543 -591
- {nautobot-2.4.0.dist-info → nautobot-2.4.0b1.dist-info}/WHEEL +1 -1
- nautobot/core/api/constants.py +0 -11
- nautobot/core/jobs/bulk_actions.py +0 -248
- nautobot/core/templates/about.html +0 -67
- nautobot/core/templates/inc/tenancy_form_panel.html +0 -9
- nautobot/core/templates/inc/tenant_table_row.html +0 -11
- nautobot/core/utils/querysets.py +0 -64
- nautobot/dcim/migrations/0067_controllermanageddevicegroup_tenant.py +0 -25
- nautobot/dcim/tests/integration/test_controller.py +0 -62
- nautobot/dcim/tests/integration/test_controller_managed_device_group.py +0 -71
- nautobot/dcim/tests/test_jobs.py +0 -118
- nautobot/extras/migrations/0120_job_is_singleton_job_is_singleton_override.py +0 -22
- nautobot/extras/migrations/0121_alter_team_contacts.py +0 -17
- nautobot/extras/test_jobs/singleton.py +0 -16
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_job_edit.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_job_edit_button.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_job_list_nav.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_job_list_view.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_job_queue.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_job_queue_add.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_job_queue_config.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_job_result_completed.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_job_result_nav.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_job_result_pending.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_job_run_form.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_nautobot_login.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_run_job.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_run_scheduled_job_form.png +0 -0
- nautobot/project-static/docs/media/development/core/kubernetes/k8s_scheduled_job_result.png +0 -0
- nautobot/project-static/docs/media/development/core/ui-component-framework/buttons-example.png +0 -0
- nautobot/project-static/docs/media/development/core/ui-component-framework/cluster-type-before-after-example.png +0 -0
- nautobot/project-static/docs/media/development/core/ui-component-framework/object-fields-panel-example_2.png +0 -0
- nautobot/project-static/docs/media/development/core/ui-component-framework/stats-panel-example-code.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/central-mode.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/device-group-add.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/device-group-create-1.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/device-group-create-2.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/radio-profile-add.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/radio-profile-create.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/supported-data-rate-add.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/supported-data-rate-create.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/wireless-controller-add.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/wireless-controller-create-1.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/wireless-controller-create-2.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/wireless-network-add.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/images/wireless/wireless-network-create.png +0 -0
- nautobot/project-static/docs/user-guide/feature-guides/wireless-networks-and-controllers.html +0 -9444
- nautobot/project-static/docs/user-guide/platform-functionality/jobs/kubernetes-job-support.html +0 -9722
- nautobot/wireless/tests/integration/__init__.py +0 -0
- nautobot/wireless/tests/integration/test_radio_profile.py +0 -42
- {nautobot-2.4.0.dist-info → nautobot-2.4.0b1.dist-info}/LICENSE.txt +0 -0
- {nautobot-2.4.0.dist-info → nautobot-2.4.0b1.dist-info}/NOTICE +0 -0
- {nautobot-2.4.0.dist-info → nautobot-2.4.0b1.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.46">
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -2112,27 +2112,6 @@
|
|
|
2112
2112
|
|
|
2113
2113
|
|
|
2114
2114
|
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
<li class="md-nav__item">
|
|
2122
|
-
<a href="../../../user-guide/feature-guides/wireless-networks-and-controllers.html" class="md-nav__link">
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
<span class="md-ellipsis">
|
|
2126
|
-
Wireless Networks and Controllers
|
|
2127
|
-
</span>
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
</a>
|
|
2131
|
-
</li>
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
2115
|
</ul>
|
|
2137
2116
|
</nav>
|
|
2138
2117
|
|
|
@@ -5152,27 +5131,6 @@
|
|
|
5152
5131
|
|
|
5153
5132
|
|
|
5154
5133
|
|
|
5155
|
-
<li class="md-nav__item">
|
|
5156
|
-
<a href="../../../user-guide/platform-functionality/jobs/kubernetes-job-support.html" class="md-nav__link">
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
<span class="md-ellipsis">
|
|
5160
|
-
Kubernetes Job Support
|
|
5161
|
-
</span>
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
</a>
|
|
5165
|
-
</li>
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
5134
|
<li class="md-nav__item">
|
|
5177
5135
|
<a href="../../../user-guide/platform-functionality/jobs/jobbutton.html" class="md-nav__link">
|
|
5178
5136
|
|
|
@@ -7368,15 +7326,6 @@
|
|
|
7368
7326
|
</span>
|
|
7369
7327
|
</a>
|
|
7370
7328
|
|
|
7371
|
-
</li>
|
|
7372
|
-
|
|
7373
|
-
<li class="md-nav__item">
|
|
7374
|
-
<a href="#nautobot.apps.testing.APITestCase.get_m2m_fields" class="md-nav__link">
|
|
7375
|
-
<span class="md-ellipsis">
|
|
7376
|
-
get_m2m_fields
|
|
7377
|
-
</span>
|
|
7378
|
-
</a>
|
|
7379
|
-
|
|
7380
7329
|
</li>
|
|
7381
7330
|
|
|
7382
7331
|
<li class="md-nav__item">
|
|
@@ -7879,15 +7828,6 @@
|
|
|
7879
7828
|
</span>
|
|
7880
7829
|
</a>
|
|
7881
7830
|
|
|
7882
|
-
</li>
|
|
7883
|
-
|
|
7884
|
-
<li class="md-nav__item">
|
|
7885
|
-
<a href="#nautobot.apps.testing.FilterTestCases.FilterTestCase.test_id" class="md-nav__link">
|
|
7886
|
-
<span class="md-ellipsis">
|
|
7887
|
-
test_id
|
|
7888
|
-
</span>
|
|
7889
|
-
</a>
|
|
7890
|
-
|
|
7891
7831
|
</li>
|
|
7892
7832
|
|
|
7893
7833
|
<li class="md-nav__item">
|
|
@@ -9607,11 +9547,11 @@
|
|
|
9607
9547
|
|
|
9608
9548
|
|
|
9609
9549
|
<li class="md-nav__item">
|
|
9610
|
-
<a href="../../../development/core/
|
|
9550
|
+
<a href="../../../development/core/local-k8s.html" class="md-nav__link">
|
|
9611
9551
|
|
|
9612
9552
|
|
|
9613
9553
|
<span class="md-ellipsis">
|
|
9614
|
-
|
|
9554
|
+
Local Kubernetes Cluster
|
|
9615
9555
|
</span>
|
|
9616
9556
|
|
|
9617
9557
|
|
|
@@ -10544,15 +10484,6 @@
|
|
|
10544
10484
|
</span>
|
|
10545
10485
|
</a>
|
|
10546
10486
|
|
|
10547
|
-
</li>
|
|
10548
|
-
|
|
10549
|
-
<li class="md-nav__item">
|
|
10550
|
-
<a href="#nautobot.apps.testing.APITestCase.get_m2m_fields" class="md-nav__link">
|
|
10551
|
-
<span class="md-ellipsis">
|
|
10552
|
-
get_m2m_fields
|
|
10553
|
-
</span>
|
|
10554
|
-
</a>
|
|
10555
|
-
|
|
10556
10487
|
</li>
|
|
10557
10488
|
|
|
10558
10489
|
<li class="md-nav__item">
|
|
@@ -11055,15 +10986,6 @@
|
|
|
11055
10986
|
</span>
|
|
11056
10987
|
</a>
|
|
11057
10988
|
|
|
11058
|
-
</li>
|
|
11059
|
-
|
|
11060
|
-
<li class="md-nav__item">
|
|
11061
|
-
<a href="#nautobot.apps.testing.FilterTestCases.FilterTestCase.test_id" class="md-nav__link">
|
|
11062
|
-
<span class="md-ellipsis">
|
|
11063
|
-
test_id
|
|
11064
|
-
</span>
|
|
11065
|
-
</a>
|
|
11066
|
-
|
|
11067
10989
|
</li>
|
|
11068
10990
|
|
|
11069
10991
|
<li class="md-nav__item">
|
|
@@ -12018,12 +11940,7 @@
|
|
|
12018
11940
|
|
|
12019
11941
|
<div class="doc doc-contents first">
|
|
12020
11942
|
|
|
12021
|
-
|
|
12022
|
-
|
|
12023
|
-
|
|
12024
|
-
|
|
12025
|
-
|
|
12026
|
-
|
|
11943
|
+
<p>Utilities for apps to implement test automation.</p>
|
|
12027
11944
|
|
|
12028
11945
|
|
|
12029
11946
|
|
|
@@ -12049,20 +11966,15 @@
|
|
|
12049
11966
|
|
|
12050
11967
|
<div class="doc doc-contents ">
|
|
12051
11968
|
<p class="doc doc-class-bases">
|
|
12052
|
-
Bases: <code><
|
|
11969
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelTestCase" optional hover>ModelTestCase</autoref></code></p>
|
|
12053
11970
|
|
|
12054
11971
|
|
|
12055
|
-
|
|
11972
|
+
<p>Base test case for API requests.</p>
|
|
12056
11973
|
<p>api_version: Specific API version to test. Leave unset to test the default behavior. Override with set_api_version()</p>
|
|
12057
11974
|
|
|
12058
11975
|
|
|
12059
11976
|
|
|
12060
11977
|
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
11978
|
<div class="doc doc-children">
|
|
12067
11979
|
|
|
12068
11980
|
|
|
@@ -12084,7 +11996,7 @@
|
|
|
12084
11996
|
|
|
12085
11997
|
<div class="doc doc-contents ">
|
|
12086
11998
|
|
|
12087
|
-
|
|
11999
|
+
<p>Check an API response for content that should not be exposed in the API.</p>
|
|
12088
12000
|
<p>If a specific API has a false failure here (maybe it has security-related strings as model flags or something?),
|
|
12089
12001
|
its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
12090
12002
|
|
|
@@ -12095,23 +12007,6 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12095
12007
|
<div class="doc doc-object doc-function">
|
|
12096
12008
|
|
|
12097
12009
|
|
|
12098
|
-
<h3 id="nautobot.apps.testing.APITestCase.get_m2m_fields" class="doc doc-heading">
|
|
12099
|
-
<code class="highlight language-python"><span class="n">get_m2m_fields</span><span class="p">()</span></code>
|
|
12100
|
-
|
|
12101
|
-
<a href="#nautobot.apps.testing.APITestCase.get_m2m_fields" class="headerlink" title="Permanent link">¶</a></h3>
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
<div class="doc doc-contents ">
|
|
12105
|
-
|
|
12106
|
-
<p>Get serializer field names that are many-to-many or one-to-many and thus affected by ?exclude_m2m=true.</p>
|
|
12107
|
-
|
|
12108
|
-
</div>
|
|
12109
|
-
|
|
12110
|
-
</div>
|
|
12111
|
-
|
|
12112
|
-
<div class="doc doc-object doc-function">
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
12010
|
<h3 id="nautobot.apps.testing.APITestCase.setUp" class="doc doc-heading">
|
|
12116
12011
|
<code class="highlight language-python"><span class="n">setUp</span><span class="p">()</span></code>
|
|
12117
12012
|
|
|
@@ -12120,7 +12015,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12120
12015
|
|
|
12121
12016
|
<div class="doc doc-contents ">
|
|
12122
12017
|
|
|
12123
|
-
|
|
12018
|
+
<p>Create a token for API calls.</p>
|
|
12124
12019
|
|
|
12125
12020
|
</div>
|
|
12126
12021
|
|
|
@@ -12137,7 +12032,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12137
12032
|
|
|
12138
12033
|
<div class="doc doc-contents ">
|
|
12139
12034
|
|
|
12140
|
-
|
|
12035
|
+
<p>Set or unset a specific API version for requests in this test case.</p>
|
|
12141
12036
|
|
|
12142
12037
|
</div>
|
|
12143
12038
|
|
|
@@ -12164,12 +12059,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12164
12059
|
|
|
12165
12060
|
<div class="doc doc-contents ">
|
|
12166
12061
|
<p class="doc doc-class-bases">
|
|
12167
|
-
Bases: <code><
|
|
12168
|
-
|
|
12169
|
-
|
|
12170
|
-
|
|
12171
|
-
|
|
12172
|
-
|
|
12062
|
+
Bases: <code><autoref identifier="rest_framework.test.APITransactionTestCase" optional hover>APITransactionTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.mixins.NautobotTestCaseMixin" optional hover>NautobotTestCaseMixin</autoref></code></p>
|
|
12173
12063
|
|
|
12174
12064
|
|
|
12175
12065
|
|
|
@@ -12196,7 +12086,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12196
12086
|
|
|
12197
12087
|
<div class="doc doc-contents ">
|
|
12198
12088
|
|
|
12199
|
-
|
|
12089
|
+
<p>Create a superuser and token for API calls.</p>
|
|
12200
12090
|
|
|
12201
12091
|
</div>
|
|
12202
12092
|
|
|
@@ -12227,11 +12117,6 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12227
12117
|
|
|
12228
12118
|
|
|
12229
12119
|
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
|
|
12234
|
-
|
|
12235
12120
|
<div class="doc doc-children">
|
|
12236
12121
|
|
|
12237
12122
|
|
|
@@ -12254,12 +12139,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12254
12139
|
|
|
12255
12140
|
<div class="doc doc-contents ">
|
|
12256
12141
|
<p class="doc doc-class-bases">
|
|
12257
|
-
Bases: <code><
|
|
12258
|
-
|
|
12259
|
-
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12142
|
+
Bases: <code><autoref identifier="nautobot.core.testing.api.APITestCase" optional hover>APITestCase</autoref></code></p>
|
|
12263
12143
|
|
|
12264
12144
|
|
|
12265
12145
|
|
|
@@ -12286,7 +12166,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12286
12166
|
|
|
12287
12167
|
<div class="doc doc-contents ">
|
|
12288
12168
|
|
|
12289
|
-
|
|
12169
|
+
<p>POST a set of objects in a single request.</p>
|
|
12290
12170
|
|
|
12291
12171
|
</div>
|
|
12292
12172
|
|
|
@@ -12303,7 +12183,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12303
12183
|
|
|
12304
12184
|
<div class="doc doc-contents ">
|
|
12305
12185
|
|
|
12306
|
-
|
|
12186
|
+
<p>POST a single object with permission.</p>
|
|
12307
12187
|
|
|
12308
12188
|
</div>
|
|
12309
12189
|
|
|
@@ -12320,7 +12200,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12320
12200
|
|
|
12321
12201
|
<div class="doc doc-contents ">
|
|
12322
12202
|
|
|
12323
|
-
|
|
12203
|
+
<p>POST a single object without permission.</p>
|
|
12324
12204
|
|
|
12325
12205
|
</div>
|
|
12326
12206
|
|
|
@@ -12337,7 +12217,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12337
12217
|
|
|
12338
12218
|
<div class="doc doc-contents ">
|
|
12339
12219
|
|
|
12340
|
-
|
|
12220
|
+
<p>CSV export an object, delete it, and recreate it via CSV import.</p>
|
|
12341
12221
|
|
|
12342
12222
|
</div>
|
|
12343
12223
|
|
|
@@ -12364,12 +12244,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12364
12244
|
|
|
12365
12245
|
<div class="doc doc-contents ">
|
|
12366
12246
|
<p class="doc doc-class-bases">
|
|
12367
|
-
Bases: <code><
|
|
12368
|
-
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
|
|
12247
|
+
Bases: <code><autoref identifier="nautobot.core.testing.api.APITestCase" optional hover>APITestCase</autoref></code></p>
|
|
12373
12248
|
|
|
12374
12249
|
|
|
12375
12250
|
|
|
@@ -12396,7 +12271,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12396
12271
|
|
|
12397
12272
|
<div class="doc doc-contents ">
|
|
12398
12273
|
|
|
12399
|
-
|
|
12274
|
+
<p>Get an instance that can be deleted.</p>
|
|
12400
12275
|
<p>For some models this may just be any random object, but when we have FKs with <code>on_delete=models.PROTECT</code>
|
|
12401
12276
|
(as is often the case) we need to find or create an instance that doesn't have such entanglements.</p>
|
|
12402
12277
|
|
|
@@ -12415,7 +12290,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12415
12290
|
|
|
12416
12291
|
<div class="doc doc-contents ">
|
|
12417
12292
|
|
|
12418
|
-
|
|
12293
|
+
<p>Get a list of PKs corresponding to objects that can be safely bulk-deleted.</p>
|
|
12419
12294
|
<p>For some models this may just be any random objects, but when we have FKs with <code>on_delete=models.PROTECT</code>
|
|
12420
12295
|
(as is often the case) we need to find or create an instance that doesn't have such entanglements.</p>
|
|
12421
12296
|
|
|
@@ -12434,7 +12309,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12434
12309
|
|
|
12435
12310
|
<div class="doc doc-contents ">
|
|
12436
12311
|
|
|
12437
|
-
|
|
12312
|
+
<p>DELETE a set of objects in a single request.</p>
|
|
12438
12313
|
|
|
12439
12314
|
</div>
|
|
12440
12315
|
|
|
@@ -12451,7 +12326,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12451
12326
|
|
|
12452
12327
|
<div class="doc doc-contents ">
|
|
12453
12328
|
|
|
12454
|
-
|
|
12329
|
+
<p>DELETE a single object identified by its primary key.</p>
|
|
12455
12330
|
|
|
12456
12331
|
</div>
|
|
12457
12332
|
|
|
@@ -12468,7 +12343,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12468
12343
|
|
|
12469
12344
|
<div class="doc doc-contents ">
|
|
12470
12345
|
|
|
12471
|
-
|
|
12346
|
+
<p>DELETE a single object without permission.</p>
|
|
12472
12347
|
|
|
12473
12348
|
</div>
|
|
12474
12349
|
|
|
@@ -12495,12 +12370,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12495
12370
|
|
|
12496
12371
|
<div class="doc doc-contents ">
|
|
12497
12372
|
<p class="doc doc-class-bases">
|
|
12498
|
-
Bases: <code><
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12373
|
+
Bases: <code><autoref identifier="nautobot.core.testing.api.APITestCase" optional hover>APITestCase</autoref></code></p>
|
|
12504
12374
|
|
|
12505
12375
|
|
|
12506
12376
|
|
|
@@ -12527,7 +12397,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12527
12397
|
|
|
12528
12398
|
<div class="doc doc-contents ">
|
|
12529
12399
|
|
|
12530
|
-
|
|
12400
|
+
<p>GET a single object as an authenticated user with permission to view the object.</p>
|
|
12531
12401
|
|
|
12532
12402
|
</div>
|
|
12533
12403
|
|
|
@@ -12544,7 +12414,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12544
12414
|
|
|
12545
12415
|
<div class="doc doc-contents ">
|
|
12546
12416
|
|
|
12547
|
-
|
|
12417
|
+
<p>GET a single object as an unauthenticated user.</p>
|
|
12548
12418
|
|
|
12549
12419
|
</div>
|
|
12550
12420
|
|
|
@@ -12561,7 +12431,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12561
12431
|
|
|
12562
12432
|
<div class="doc doc-contents ">
|
|
12563
12433
|
|
|
12564
|
-
|
|
12434
|
+
<p>GET a single object as an authenticated user without the required permission.</p>
|
|
12565
12435
|
|
|
12566
12436
|
</div>
|
|
12567
12437
|
|
|
@@ -12578,7 +12448,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12578
12448
|
|
|
12579
12449
|
<div class="doc doc-contents ">
|
|
12580
12450
|
|
|
12581
|
-
|
|
12451
|
+
<p>Make an OPTIONS request for a single object.</p>
|
|
12582
12452
|
|
|
12583
12453
|
</div>
|
|
12584
12454
|
|
|
@@ -12605,12 +12475,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12605
12475
|
|
|
12606
12476
|
<div class="doc doc-contents ">
|
|
12607
12477
|
<p class="doc doc-class-bases">
|
|
12608
|
-
Bases: <code><
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
|
|
12613
|
-
|
|
12478
|
+
Bases: <code><autoref identifier="nautobot.core.testing.api.APITestCase" optional hover>APITestCase</autoref></code></p>
|
|
12614
12479
|
|
|
12615
12480
|
|
|
12616
12481
|
|
|
@@ -12637,7 +12502,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12637
12502
|
|
|
12638
12503
|
<div class="doc doc-contents ">
|
|
12639
12504
|
|
|
12640
|
-
|
|
12505
|
+
<p>Get a list of model fields that could be tested with the ?depth query parameter</p>
|
|
12641
12506
|
|
|
12642
12507
|
</div>
|
|
12643
12508
|
|
|
@@ -12654,7 +12519,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12654
12519
|
|
|
12655
12520
|
<div class="doc doc-contents ">
|
|
12656
12521
|
|
|
12657
|
-
|
|
12522
|
+
<p>GET a list of objects as an authenticated user with permission to view the objects.</p>
|
|
12658
12523
|
|
|
12659
12524
|
</div>
|
|
12660
12525
|
|
|
@@ -12671,7 +12536,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12671
12536
|
|
|
12672
12537
|
<div class="doc doc-contents ">
|
|
12673
12538
|
|
|
12674
|
-
|
|
12539
|
+
<p>GET a list of objects as an unauthenticated user.</p>
|
|
12675
12540
|
|
|
12676
12541
|
</div>
|
|
12677
12542
|
|
|
@@ -12688,7 +12553,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12688
12553
|
|
|
12689
12554
|
<div class="doc doc-contents ">
|
|
12690
12555
|
|
|
12691
|
-
|
|
12556
|
+
<p>GET a list of objects in CSV format as an authenticated user with permission to view some objects.</p>
|
|
12692
12557
|
|
|
12693
12558
|
</div>
|
|
12694
12559
|
|
|
@@ -12705,7 +12570,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12705
12570
|
|
|
12706
12571
|
<div class="doc doc-contents ">
|
|
12707
12572
|
|
|
12708
|
-
|
|
12573
|
+
<p>GET a list of objects using the "?depth=0" parameter.</p>
|
|
12709
12574
|
|
|
12710
12575
|
</div>
|
|
12711
12576
|
|
|
@@ -12722,7 +12587,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12722
12587
|
|
|
12723
12588
|
<div class="doc doc-contents ">
|
|
12724
12589
|
|
|
12725
|
-
|
|
12590
|
+
<p>GET a list of objects using the "?depth=1" parameter.</p>
|
|
12726
12591
|
|
|
12727
12592
|
</div>
|
|
12728
12593
|
|
|
@@ -12739,7 +12604,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12739
12604
|
|
|
12740
12605
|
<div class="doc doc-contents ">
|
|
12741
12606
|
|
|
12742
|
-
|
|
12607
|
+
<p>GET a list of objects filtered by ID.</p>
|
|
12743
12608
|
|
|
12744
12609
|
</div>
|
|
12745
12610
|
|
|
@@ -12756,7 +12621,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12756
12621
|
|
|
12757
12622
|
<div class="doc doc-contents ">
|
|
12758
12623
|
|
|
12759
|
-
|
|
12624
|
+
<p>GET a list of objects with an unknown filter parameter and no strict filtering, expect it to be ignored.</p>
|
|
12760
12625
|
|
|
12761
12626
|
</div>
|
|
12762
12627
|
|
|
@@ -12773,7 +12638,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12773
12638
|
|
|
12774
12639
|
<div class="doc doc-contents ">
|
|
12775
12640
|
|
|
12776
|
-
|
|
12641
|
+
<p>GET a list of objects with an unknown filter parameter and strict filtering, expect a 400 response.</p>
|
|
12777
12642
|
|
|
12778
12643
|
</div>
|
|
12779
12644
|
|
|
@@ -12790,7 +12655,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12790
12655
|
|
|
12791
12656
|
<div class="doc doc-contents ">
|
|
12792
12657
|
|
|
12793
|
-
|
|
12658
|
+
<p>GET a list of objects as an authenticated user without the required permission.</p>
|
|
12794
12659
|
|
|
12795
12660
|
</div>
|
|
12796
12661
|
|
|
@@ -12807,7 +12672,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12807
12672
|
|
|
12808
12673
|
<div class="doc doc-contents ">
|
|
12809
12674
|
|
|
12810
|
-
|
|
12675
|
+
<p>Make an OPTIONS request for a list endpoint.</p>
|
|
12811
12676
|
|
|
12812
12677
|
</div>
|
|
12813
12678
|
|
|
@@ -12834,15 +12699,10 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12834
12699
|
|
|
12835
12700
|
<div class="doc doc-contents ">
|
|
12836
12701
|
<p class="doc doc-class-bases">
|
|
12837
|
-
Bases: <code><
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
<p>Validate Notes URL on objects that have the Note model Mixin.</p>
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12702
|
+
Bases: <code><autoref identifier="nautobot.core.testing.api.APITestCase" optional hover>APITestCase</autoref></code></p>
|
|
12844
12703
|
|
|
12845
12704
|
|
|
12705
|
+
<p>Validate Notes URL on objects that have the Note model Mixin.</p>
|
|
12846
12706
|
|
|
12847
12707
|
|
|
12848
12708
|
|
|
@@ -12879,12 +12739,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12879
12739
|
<div class="doc doc-contents ">
|
|
12880
12740
|
|
|
12881
12741
|
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12742
|
+
<p>Test <code>?depth=2</code> query parameter for TreeModel</p>
|
|
12888
12743
|
|
|
12889
12744
|
|
|
12890
12745
|
|
|
@@ -12910,7 +12765,7 @@ its test case should overload self.VERBOTEN_STRINGS appropriately.</p>
|
|
|
12910
12765
|
|
|
12911
12766
|
<div class="doc doc-contents ">
|
|
12912
12767
|
|
|
12913
|
-
|
|
12768
|
+
<p>GET a list of objects using the "?depth=2" parameter.
|
|
12914
12769
|
TreeModel Only</p>
|
|
12915
12770
|
|
|
12916
12771
|
</div>
|
|
@@ -12938,12 +12793,7 @@ TreeModel Only</p>
|
|
|
12938
12793
|
|
|
12939
12794
|
<div class="doc doc-contents ">
|
|
12940
12795
|
<p class="doc doc-class-bases">
|
|
12941
|
-
Bases: <code><
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12796
|
+
Bases: <code><autoref identifier="nautobot.core.testing.api.APITestCase" optional hover>APITestCase</autoref></code></p>
|
|
12947
12797
|
|
|
12948
12798
|
|
|
12949
12799
|
|
|
@@ -12970,7 +12820,7 @@ TreeModel Only</p>
|
|
|
12970
12820
|
|
|
12971
12821
|
<div class="doc doc-contents ">
|
|
12972
12822
|
|
|
12973
|
-
|
|
12823
|
+
<p>PATCH a set of objects in a single request.</p>
|
|
12974
12824
|
|
|
12975
12825
|
</div>
|
|
12976
12826
|
|
|
@@ -12987,7 +12837,7 @@ TreeModel Only</p>
|
|
|
12987
12837
|
|
|
12988
12838
|
<div class="doc doc-contents ">
|
|
12989
12839
|
|
|
12990
|
-
|
|
12840
|
+
<p>GET and then PUT an object and verify that it's accepted and unchanged.</p>
|
|
12991
12841
|
|
|
12992
12842
|
</div>
|
|
12993
12843
|
|
|
@@ -13004,7 +12854,7 @@ TreeModel Only</p>
|
|
|
13004
12854
|
|
|
13005
12855
|
<div class="doc doc-contents ">
|
|
13006
12856
|
|
|
13007
|
-
|
|
12857
|
+
<p>Make an OPTIONS request for a list endpoint and validate choices match expected choices for serializer.</p>
|
|
13008
12858
|
|
|
13009
12859
|
</div>
|
|
13010
12860
|
|
|
@@ -13021,7 +12871,7 @@ TreeModel Only</p>
|
|
|
13021
12871
|
|
|
13022
12872
|
<div class="doc doc-contents ">
|
|
13023
12873
|
|
|
13024
|
-
|
|
12874
|
+
<p>PATCH a single object identified by its ID.</p>
|
|
13025
12875
|
|
|
13026
12876
|
</div>
|
|
13027
12877
|
|
|
@@ -13038,7 +12888,7 @@ TreeModel Only</p>
|
|
|
13038
12888
|
|
|
13039
12889
|
<div class="doc doc-contents ">
|
|
13040
12890
|
|
|
13041
|
-
|
|
12891
|
+
<p>PATCH a single object without permission.</p>
|
|
13042
12892
|
|
|
13043
12893
|
</div>
|
|
13044
12894
|
|
|
@@ -13078,11 +12928,6 @@ TreeModel Only</p>
|
|
|
13078
12928
|
|
|
13079
12929
|
|
|
13080
12930
|
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
12931
|
<div class="doc doc-children">
|
|
13087
12932
|
|
|
13088
12933
|
|
|
@@ -13105,15 +12950,10 @@ TreeModel Only</p>
|
|
|
13105
12950
|
|
|
13106
12951
|
<div class="doc doc-contents ">
|
|
13107
12952
|
<p class="doc doc-class-bases">
|
|
13108
|
-
Bases: <code><
|
|
13109
|
-
|
|
13110
|
-
|
|
13111
|
-
<p>Base class for testing of FilterSets.</p>
|
|
13112
|
-
|
|
13113
|
-
|
|
13114
|
-
|
|
12953
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.TestCase" optional hover>TestCase</autoref></code></p>
|
|
13115
12954
|
|
|
13116
12955
|
|
|
12956
|
+
<p>Base class for testing of FilterSets.</p>
|
|
13117
12957
|
|
|
13118
12958
|
|
|
13119
12959
|
|
|
@@ -13139,7 +12979,7 @@ TreeModel Only</p>
|
|
|
13139
12979
|
|
|
13140
12980
|
<div class="doc doc-contents ">
|
|
13141
12981
|
|
|
13142
|
-
|
|
12982
|
+
<p>Returns a list of distinct values from the requested queryset field to use in filterset tests.</p>
|
|
13143
12983
|
<p>Returns a list for use in testing multiple choice filters. The size of the returned list is random
|
|
13144
12984
|
but will contain at minimum 2 unique values. The list of values will match at least 2 instances when
|
|
13145
12985
|
passed to the queryset's filter(field_name__in=[]) method but will fail to match at least one instance.</p>
|
|
@@ -13157,11 +12997,9 @@ passed to the queryset's filter(field_name__in=[]) method but will fail to match
|
|
|
13157
12997
|
</thead>
|
|
13158
12998
|
<tbody>
|
|
13159
12999
|
<tr class="doc-section-item">
|
|
13000
|
+
<td><code>field_name</code></td>
|
|
13160
13001
|
<td>
|
|
13161
|
-
|
|
13162
|
-
</td>
|
|
13163
|
-
<td>
|
|
13164
|
-
<code>str</code>
|
|
13002
|
+
<code><autoref identifier="str" optional>str</autoref></code>
|
|
13165
13003
|
</td>
|
|
13166
13004
|
<td>
|
|
13167
13005
|
<div class="doc-md-description">
|
|
@@ -13173,11 +13011,9 @@ passed to the queryset's filter(field_name__in=[]) method but will fail to match
|
|
|
13173
13011
|
</td>
|
|
13174
13012
|
</tr>
|
|
13175
13013
|
<tr class="doc-section-item">
|
|
13014
|
+
<td><code>queryset</code></td>
|
|
13176
13015
|
<td>
|
|
13177
|
-
|
|
13178
|
-
</td>
|
|
13179
|
-
<td>
|
|
13180
|
-
<code><span title="django.db.models.QuerySet">QuerySet</span></code>
|
|
13016
|
+
<code><autoref identifier="django.db.models.QuerySet" optional hover>QuerySet</autoref></code>
|
|
13181
13017
|
</td>
|
|
13182
13018
|
<td>
|
|
13183
13019
|
<div class="doc-md-description">
|
|
@@ -13203,7 +13039,7 @@ passed to the queryset's filter(field_name__in=[]) method but will fail to match
|
|
|
13203
13039
|
<tbody>
|
|
13204
13040
|
<tr class="doc-section-item">
|
|
13205
13041
|
<td>
|
|
13206
|
-
<code>list</code>
|
|
13042
|
+
<code><autoref identifier="list" optional>list</autoref></code>
|
|
13207
13043
|
</td>
|
|
13208
13044
|
<td>
|
|
13209
13045
|
<div class="doc-md-description">
|
|
@@ -13226,7 +13062,7 @@ passed to the queryset's filter(field_name__in=[]) method but will fail to match
|
|
|
13226
13062
|
<tbody>
|
|
13227
13063
|
<tr class="doc-section-item">
|
|
13228
13064
|
<td>
|
|
13229
|
-
<code>ValueError</code>
|
|
13065
|
+
<code><autoref identifier="ValueError" optional>ValueError</autoref></code>
|
|
13230
13066
|
</td>
|
|
13231
13067
|
<td>
|
|
13232
13068
|
<div class="doc-md-description">
|
|
@@ -13263,15 +13099,10 @@ to filter the queryset to a subset of the total instances.</p>
|
|
|
13263
13099
|
|
|
13264
13100
|
<div class="doc doc-contents ">
|
|
13265
13101
|
<p class="doc doc-class-bases">
|
|
13266
|
-
Bases: <code><
|
|
13267
|
-
|
|
13268
|
-
|
|
13269
|
-
<p>Add common tests for all FilterSets.</p>
|
|
13270
|
-
|
|
13271
|
-
|
|
13272
|
-
|
|
13102
|
+
Bases: <code><autoref identifier="nautobot.core.testing.filters.FilterTestCases.BaseFilterTestCase" optional hover>BaseFilterTestCase</autoref></code></p>
|
|
13273
13103
|
|
|
13274
13104
|
|
|
13105
|
+
<p>Add common tests for all FilterSets.</p>
|
|
13275
13106
|
|
|
13276
13107
|
|
|
13277
13108
|
|
|
@@ -13297,7 +13128,7 @@ to filter the queryset to a subset of the total instances.</p>
|
|
|
13297
13128
|
|
|
13298
13129
|
<div class="doc doc-contents ">
|
|
13299
13130
|
|
|
13300
|
-
|
|
13131
|
+
<p>Helper method to return q filter.</p>
|
|
13301
13132
|
|
|
13302
13133
|
</div>
|
|
13303
13134
|
|
|
@@ -13314,7 +13145,7 @@ to filter the queryset to a subset of the total instances.</p>
|
|
|
13314
13145
|
|
|
13315
13146
|
<div class="doc doc-contents ">
|
|
13316
13147
|
|
|
13317
|
-
|
|
13148
|
+
<p>Test all <code>RelatedMembershipBooleanFilter</code> filters found in <code>self.filterset.get_filters()</code>
|
|
13318
13149
|
except for the ones with custom filter logic defined in its <code>method</code> attribute.</p>
|
|
13319
13150
|
<p>This test asserts that <code>filter=True</code> matches <code>self.queryset.filter(field__isnull=False)</code> and
|
|
13320
13151
|
that <code>filter=False</code> matches <code>self.queryset.filter(field__isnull=True)</code>.</p>
|
|
@@ -13334,7 +13165,7 @@ that <code>filter=False</code> matches <code>self.queryset.filter(field__isnull=
|
|
|
13334
13165
|
|
|
13335
13166
|
<div class="doc doc-contents ">
|
|
13336
13167
|
|
|
13337
|
-
|
|
13168
|
+
<p>Test all multiple choice filters declared in <code>self.generic_filter_tests</code>.</p>
|
|
13338
13169
|
<p>This test uses <code>get_filterset_test_values()</code> to retrieve a valid set of test data and asserts
|
|
13339
13170
|
that the filterset filter output matches the corresponding queryset filter.
|
|
13340
13171
|
The majority of Nautobot filters use conjoined=False, so the extra logic to support conjoined=True has not
|
|
@@ -13362,23 +13193,6 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13362
13193
|
<div class="doc doc-object doc-function">
|
|
13363
13194
|
|
|
13364
13195
|
|
|
13365
|
-
<h4 id="nautobot.apps.testing.FilterTestCases.FilterTestCase.test_id" class="doc doc-heading">
|
|
13366
|
-
<code class="highlight language-python"><span class="n">test_id</span><span class="p">()</span></code>
|
|
13367
|
-
|
|
13368
|
-
<a href="#nautobot.apps.testing.FilterTestCases.FilterTestCase.test_id" class="headerlink" title="Permanent link">¶</a></h4>
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
<div class="doc doc-contents ">
|
|
13372
|
-
|
|
13373
|
-
<p>Verify that the filterset supports filtering by id with only lookup <code>__n</code>.</p>
|
|
13374
|
-
|
|
13375
|
-
</div>
|
|
13376
|
-
|
|
13377
|
-
</div>
|
|
13378
|
-
|
|
13379
|
-
<div class="doc doc-object doc-function">
|
|
13380
|
-
|
|
13381
|
-
|
|
13382
13196
|
<h4 id="nautobot.apps.testing.FilterTestCases.FilterTestCase.test_invalid_filter" class="doc doc-heading">
|
|
13383
13197
|
<code class="highlight language-python"><span class="n">test_invalid_filter</span><span class="p">()</span></code>
|
|
13384
13198
|
|
|
@@ -13387,7 +13201,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13387
13201
|
|
|
13388
13202
|
<div class="doc doc-contents ">
|
|
13389
13203
|
|
|
13390
|
-
|
|
13204
|
+
<p>Verify that the filterset reports as invalid when initialized with an unsupported filter parameter.</p>
|
|
13391
13205
|
|
|
13392
13206
|
</div>
|
|
13393
13207
|
|
|
@@ -13404,7 +13218,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13404
13218
|
|
|
13405
13219
|
<div class="doc doc-contents ">
|
|
13406
13220
|
|
|
13407
|
-
|
|
13221
|
+
<p>Test the <code>q</code> filter based on attributes in <code>filter_predicates</code>.</p>
|
|
13408
13222
|
|
|
13409
13223
|
</div>
|
|
13410
13224
|
|
|
@@ -13421,7 +13235,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13421
13235
|
|
|
13422
13236
|
<div class="doc doc-contents ">
|
|
13423
13237
|
|
|
13424
|
-
|
|
13238
|
+
<p>Test the <code>tags</code> filter which should be present on all PrimaryModel filtersets.</p>
|
|
13425
13239
|
|
|
13426
13240
|
</div>
|
|
13427
13241
|
|
|
@@ -13448,15 +13262,10 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13448
13262
|
|
|
13449
13263
|
<div class="doc doc-contents ">
|
|
13450
13264
|
<p class="doc doc-class-bases">
|
|
13451
|
-
Bases: <code><
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
<p>Add simple tests for filtering by name.</p>
|
|
13455
|
-
|
|
13456
|
-
|
|
13457
|
-
|
|
13265
|
+
Bases: <code><autoref identifier="nautobot.core.testing.filters.FilterTestCases.FilterTestCase" optional hover>FilterTestCase</autoref></code></p>
|
|
13458
13266
|
|
|
13459
13267
|
|
|
13268
|
+
<p>Add simple tests for filtering by name.</p>
|
|
13460
13269
|
|
|
13461
13270
|
|
|
13462
13271
|
|
|
@@ -13492,15 +13301,10 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13492
13301
|
|
|
13493
13302
|
<div class="doc doc-contents ">
|
|
13494
13303
|
<p class="doc doc-class-bases">
|
|
13495
|
-
Bases: <code><
|
|
13496
|
-
|
|
13497
|
-
|
|
13498
|
-
<p>Add simple tests for filtering by name and by slug.</p>
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13304
|
+
Bases: <code><autoref identifier="nautobot.core.testing.filters.FilterTestCases.FilterTestCase" optional hover>FilterTestCase</autoref></code></p>
|
|
13502
13305
|
|
|
13503
13306
|
|
|
13307
|
+
<p>Add simple tests for filtering by name and by slug.</p>
|
|
13504
13308
|
|
|
13505
13309
|
|
|
13506
13310
|
|
|
@@ -13536,15 +13340,10 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13536
13340
|
|
|
13537
13341
|
<div class="doc doc-contents ">
|
|
13538
13342
|
<p class="doc doc-class-bases">
|
|
13539
|
-
Bases: <code><
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
<p>Add test cases for tenant and tenant-group filters.</p>
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
|
|
13343
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.TestCase" optional hover>TestCase</autoref></code></p>
|
|
13546
13344
|
|
|
13547
13345
|
|
|
13346
|
+
<p>Add test cases for tenant and tenant-group filters.</p>
|
|
13548
13347
|
|
|
13549
13348
|
|
|
13550
13349
|
|
|
@@ -13593,11 +13392,6 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13593
13392
|
|
|
13594
13393
|
|
|
13595
13394
|
|
|
13596
|
-
|
|
13597
|
-
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
13601
13395
|
<div class="doc doc-children">
|
|
13602
13396
|
|
|
13603
13397
|
|
|
@@ -13620,15 +13414,10 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13620
13414
|
|
|
13621
13415
|
<div class="doc doc-contents ">
|
|
13622
13416
|
<p class="doc doc-class-bases">
|
|
13623
|
-
Bases: <code><
|
|
13624
|
-
|
|
13625
|
-
|
|
13626
|
-
<p>Base class for generic form tests.</p>
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13417
|
+
Bases: <code><autoref identifier="django.test.TestCase" optional hover>TestCase</autoref></code></p>
|
|
13630
13418
|
|
|
13631
13419
|
|
|
13420
|
+
<p>Base class for generic form tests.</p>
|
|
13632
13421
|
|
|
13633
13422
|
|
|
13634
13423
|
|
|
@@ -13673,15 +13462,10 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13673
13462
|
|
|
13674
13463
|
<div class="doc doc-contents ">
|
|
13675
13464
|
<p class="doc doc-class-bases">
|
|
13676
|
-
Bases: <code><
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
<p>Parent class for TestCases which deal with models.</p>
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13465
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.TestCase" optional hover>TestCase</autoref></code></p>
|
|
13683
13466
|
|
|
13684
13467
|
|
|
13468
|
+
<p>Parent class for TestCases which deal with models.</p>
|
|
13685
13469
|
|
|
13686
13470
|
|
|
13687
13471
|
|
|
@@ -13721,11 +13505,6 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13721
13505
|
|
|
13722
13506
|
|
|
13723
13507
|
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
13508
|
<div class="doc doc-children">
|
|
13730
13509
|
|
|
13731
13510
|
|
|
@@ -13748,15 +13527,10 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13748
13527
|
|
|
13749
13528
|
<div class="doc doc-contents ">
|
|
13750
13529
|
<p class="doc doc-class-bases">
|
|
13751
|
-
Bases: <code><
|
|
13752
|
-
|
|
13753
|
-
|
|
13754
|
-
<p>Base class for generic model tests.</p>
|
|
13755
|
-
|
|
13756
|
-
|
|
13757
|
-
|
|
13530
|
+
Bases: <code><autoref identifier="nautobot.core.testing.mixins.NautobotTestCaseMixin" optional hover>NautobotTestCaseMixin</autoref></code>, <code><autoref identifier="django.test.TestCase" optional hover>TestCase</autoref></code></p>
|
|
13758
13531
|
|
|
13759
13532
|
|
|
13533
|
+
<p>Base class for generic model tests.</p>
|
|
13760
13534
|
|
|
13761
13535
|
|
|
13762
13536
|
|
|
@@ -13782,7 +13556,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13782
13556
|
|
|
13783
13557
|
<div class="doc doc-contents ">
|
|
13784
13558
|
|
|
13785
|
-
|
|
13559
|
+
<p>Check that <code>composite_key</code> and filtering by <code>composite_key</code> both work.</p>
|
|
13786
13560
|
|
|
13787
13561
|
</div>
|
|
13788
13562
|
|
|
@@ -13799,7 +13573,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13799
13573
|
|
|
13800
13574
|
<div class="doc doc-contents ">
|
|
13801
13575
|
|
|
13802
|
-
|
|
13576
|
+
<p>For dynamic-group capable models, check that they work as intended.</p>
|
|
13803
13577
|
|
|
13804
13578
|
</div>
|
|
13805
13579
|
|
|
@@ -13816,7 +13590,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13816
13590
|
|
|
13817
13591
|
<div class="doc doc-contents ">
|
|
13818
13592
|
|
|
13819
|
-
|
|
13593
|
+
<p>Check that <code>get_docs_url()</code> returns a valid static file path for this model.</p>
|
|
13820
13594
|
|
|
13821
13595
|
</div>
|
|
13822
13596
|
|
|
@@ -13833,7 +13607,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13833
13607
|
|
|
13834
13608
|
<div class="doc doc-contents ">
|
|
13835
13609
|
|
|
13836
|
-
|
|
13610
|
+
<p>Check that <code>natural_key()</code> and <code>get_by_natural_key()</code> work reciprocally.</p>
|
|
13837
13611
|
|
|
13838
13612
|
</div>
|
|
13839
13613
|
|
|
@@ -13869,15 +13643,10 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13869
13643
|
|
|
13870
13644
|
<div class="doc doc-contents ">
|
|
13871
13645
|
<p class="doc doc-class-bases">
|
|
13872
|
-
Bases: <code><
|
|
13873
|
-
|
|
13874
|
-
|
|
13875
|
-
<p>Base TestCase for model views. Subclass to test individual views.</p>
|
|
13876
|
-
|
|
13877
|
-
|
|
13878
|
-
|
|
13646
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelTestCase" optional hover>ModelTestCase</autoref></code></p>
|
|
13879
13647
|
|
|
13880
13648
|
|
|
13649
|
+
<p>Base TestCase for model views. Subclass to test individual views.</p>
|
|
13881
13650
|
|
|
13882
13651
|
|
|
13883
13652
|
|
|
@@ -13907,7 +13676,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13907
13676
|
|
|
13908
13677
|
<div class="doc doc-contents ">
|
|
13909
13678
|
|
|
13910
|
-
|
|
13679
|
+
<p>Name of instance field to pass as a kwarg when looking up URLs for creating/editing/deleting a model instance.</p>
|
|
13911
13680
|
<p>If unspecified, "pk" and "slug" will be tried, in that order.</p>
|
|
13912
13681
|
</div>
|
|
13913
13682
|
|
|
@@ -13936,12 +13705,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13936
13705
|
|
|
13937
13706
|
<div class="doc doc-contents ">
|
|
13938
13707
|
<p class="doc doc-class-bases">
|
|
13939
|
-
Bases: <code><
|
|
13940
|
-
|
|
13941
|
-
|
|
13942
|
-
|
|
13943
|
-
|
|
13944
|
-
|
|
13708
|
+
Bases: <code><autoref identifier="django.test.TestCase" optional hover>TestCase</autoref></code></p>
|
|
13945
13709
|
|
|
13946
13710
|
|
|
13947
13711
|
|
|
@@ -13968,7 +13732,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13968
13732
|
|
|
13969
13733
|
<div class="doc doc-contents ">
|
|
13970
13734
|
|
|
13971
|
-
|
|
13735
|
+
<p>Populate your Nautobot data before migrating from the first migration to the second</p>
|
|
13972
13736
|
|
|
13973
13737
|
</div>
|
|
13974
13738
|
|
|
@@ -13996,12 +13760,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
13996
13760
|
<div class="doc doc-contents ">
|
|
13997
13761
|
|
|
13998
13762
|
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
13763
|
+
<p>Base class for all Nautobot-specific unit tests.</p>
|
|
14005
13764
|
|
|
14006
13765
|
|
|
14007
13766
|
|
|
@@ -14027,7 +13786,7 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
14027
13786
|
|
|
14028
13787
|
<div class="doc doc-contents ">
|
|
14029
13788
|
|
|
14030
|
-
|
|
13789
|
+
<p>Get the absolute API URL ("http://nautobot.example.com/api/...") for a given object.</p>
|
|
14031
13790
|
|
|
14032
13791
|
</div>
|
|
14033
13792
|
|
|
@@ -14037,21 +13796,14 @@ This expects a field named <code>devices</code> on the model and a filter named
|
|
|
14037
13796
|
|
|
14038
13797
|
|
|
14039
13798
|
<h3 id="nautobot.apps.testing.NautobotTestCaseMixin.add_permissions" class="doc doc-heading">
|
|
14040
|
-
<code class="highlight language-python"><span class="n">add_permissions</span><span class="p">(</span><span class="o">*</span><span class="n">names</span><span class="p"
|
|
13799
|
+
<code class="highlight language-python"><span class="n">add_permissions</span><span class="p">(</span><span class="o">*</span><span class="n">names</span><span class="p">)</span></code>
|
|
14041
13800
|
|
|
14042
13801
|
<a href="#nautobot.apps.testing.NautobotTestCaseMixin.add_permissions" class="headerlink" title="Permanent link">¶</a></h3>
|
|
14043
13802
|
|
|
14044
13803
|
|
|
14045
13804
|
<div class="doc doc-contents ">
|
|
14046
13805
|
|
|
14047
|
-
|
|
14048
|
-
Additional keyword arguments will be passed to the ObjectPermission constructor to allow creating more detailed permissions.</p>
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
<p><span class="doc-section-title">Examples:</span></p>
|
|
14052
|
-
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="gp">>>> </span><span class="n">add_permissions</span><span class="p">(</span><span class="s2">"ipam.add_vlangroup"</span><span class="p">,</span> <span class="s2">"ipam.view_vlangroup"</span><span class="p">)</span>
|
|
14053
|
-
<a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="gp">>>> </span><span class="n">add_permissions</span><span class="p">(</span><span class="s2">"ipam.add_vlangroup"</span><span class="p">,</span> <span class="s2">"ipam.view_vlangroup"</span><span class="p">,</span> <span class="n">constraints</span><span class="o">=</span><span class="p">{</span><span class="s2">"pk"</span><span class="p">:</span> <span class="s2">"uuid-1234"</span><span class="p">})</span>
|
|
14054
|
-
</code></pre></div>
|
|
13806
|
+
<p>Assign a set of permissions to the test user. Accepts permission names in the form <app>.<action>_<model>.</p>
|
|
14055
13807
|
|
|
14056
13808
|
</div>
|
|
14057
13809
|
|
|
@@ -14068,7 +13820,7 @@ Additional keyword arguments will be passed to the ObjectPermission constructor
|
|
|
14068
13820
|
|
|
14069
13821
|
<div class="doc doc-contents ">
|
|
14070
13822
|
|
|
14071
|
-
|
|
13823
|
+
<p>Like assertNumQueries, but fuzzier. Assert that the number of queries falls within an acceptable range.</p>
|
|
14072
13824
|
|
|
14073
13825
|
</div>
|
|
14074
13826
|
|
|
@@ -14085,7 +13837,7 @@ Additional keyword arguments will be passed to the ObjectPermission constructor
|
|
|
14085
13837
|
|
|
14086
13838
|
<div class="doc doc-contents ">
|
|
14087
13839
|
|
|
14088
|
-
|
|
13840
|
+
<p>Like Django's <code>assertContains</code>, but uses <code>extract_page_body</code> utility function to scope the check more narrowly.</p>
|
|
14089
13841
|
|
|
14090
13842
|
|
|
14091
13843
|
<p><span class="doc-section-title">Parameters:</span></p>
|
|
@@ -14100,11 +13852,9 @@ Additional keyword arguments will be passed to the ObjectPermission constructor
|
|
|
14100
13852
|
</thead>
|
|
14101
13853
|
<tbody>
|
|
14102
13854
|
<tr class="doc-section-item">
|
|
13855
|
+
<td><code>response</code></td>
|
|
14103
13856
|
<td>
|
|
14104
|
-
|
|
14105
|
-
</td>
|
|
14106
|
-
<td>
|
|
14107
|
-
<code>HttpResponse</code>
|
|
13857
|
+
<code><autoref identifier="HttpResponse" optional>HttpResponse</autoref></code>
|
|
14108
13858
|
</td>
|
|
14109
13859
|
<td>
|
|
14110
13860
|
<div class="doc-md-description">
|
|
@@ -14116,11 +13866,9 @@ Additional keyword arguments will be passed to the ObjectPermission constructor
|
|
|
14116
13866
|
</td>
|
|
14117
13867
|
</tr>
|
|
14118
13868
|
<tr class="doc-section-item">
|
|
13869
|
+
<td><code>text</code></td>
|
|
14119
13870
|
<td>
|
|
14120
|
-
|
|
14121
|
-
</td>
|
|
14122
|
-
<td>
|
|
14123
|
-
<code>str</code>
|
|
13871
|
+
<code><autoref identifier="str" optional>str</autoref></code>
|
|
14124
13872
|
</td>
|
|
14125
13873
|
<td>
|
|
14126
13874
|
<div class="doc-md-description">
|
|
@@ -14132,11 +13880,9 @@ Additional keyword arguments will be passed to the ObjectPermission constructor
|
|
|
14132
13880
|
</td>
|
|
14133
13881
|
</tr>
|
|
14134
13882
|
<tr class="doc-section-item">
|
|
13883
|
+
<td><code>count</code></td>
|
|
14135
13884
|
<td>
|
|
14136
|
-
|
|
14137
|
-
</td>
|
|
14138
|
-
<td>
|
|
14139
|
-
<code>int</code>
|
|
13885
|
+
<code><autoref identifier="int" optional>int</autoref></code>
|
|
14140
13886
|
</td>
|
|
14141
13887
|
<td>
|
|
14142
13888
|
<div class="doc-md-description">
|
|
@@ -14149,11 +13895,9 @@ it's present at all.</p>
|
|
|
14149
13895
|
</td>
|
|
14150
13896
|
</tr>
|
|
14151
13897
|
<tr class="doc-section-item">
|
|
13898
|
+
<td><code>status_code</code></td>
|
|
14152
13899
|
<td>
|
|
14153
|
-
|
|
14154
|
-
</td>
|
|
14155
|
-
<td>
|
|
14156
|
-
<code>int</code>
|
|
13900
|
+
<code><autoref identifier="int" optional>int</autoref></code>
|
|
14157
13901
|
</td>
|
|
14158
13902
|
<td>
|
|
14159
13903
|
<div class="doc-md-description">
|
|
@@ -14165,11 +13909,9 @@ it's present at all.</p>
|
|
|
14165
13909
|
</td>
|
|
14166
13910
|
</tr>
|
|
14167
13911
|
<tr class="doc-section-item">
|
|
13912
|
+
<td><code>html</code></td>
|
|
14168
13913
|
<td>
|
|
14169
|
-
|
|
14170
|
-
</td>
|
|
14171
|
-
<td>
|
|
14172
|
-
<code>bool</code>
|
|
13914
|
+
<code><autoref identifier="bool" optional>bool</autoref></code>
|
|
14173
13915
|
</td>
|
|
14174
13916
|
<td>
|
|
14175
13917
|
<div class="doc-md-description">
|
|
@@ -14198,7 +13940,7 @@ it's present at all.</p>
|
|
|
14198
13940
|
|
|
14199
13941
|
<div class="doc doc-contents ">
|
|
14200
13942
|
|
|
14201
|
-
|
|
13943
|
+
<p>TestCase method. Provide more detail in the event of an unexpected HTTP response.</p>
|
|
14202
13944
|
|
|
14203
13945
|
</div>
|
|
14204
13946
|
|
|
@@ -14215,7 +13957,7 @@ it's present at all.</p>
|
|
|
14215
13957
|
|
|
14216
13958
|
<div class="doc doc-contents ">
|
|
14217
13959
|
|
|
14218
|
-
|
|
13960
|
+
<p>Compare a model instance to a dictionary, checking that its attribute values match those specified
|
|
14219
13961
|
in the dictionary.</p>
|
|
14220
13962
|
<p>:param instance: Python object instance
|
|
14221
13963
|
:param data: Dictionary of test data used to define the instance
|
|
@@ -14237,7 +13979,7 @@ in the dictionary.</p>
|
|
|
14237
13979
|
|
|
14238
13980
|
<div class="doc doc-contents ">
|
|
14239
13981
|
|
|
14240
|
-
|
|
13982
|
+
<p>Wrapper for assertQuerysetEqual with additional logic to assert input queryset and values are not empty</p>
|
|
14241
13983
|
|
|
14242
13984
|
</div>
|
|
14243
13985
|
|
|
@@ -14258,7 +14000,7 @@ in the dictionary.</p>
|
|
|
14258
14000
|
|
|
14259
14001
|
<div class="doc doc-contents ">
|
|
14260
14002
|
|
|
14261
|
-
|
|
14003
|
+
<p>Create and return a Tag instance for each name given.</p>
|
|
14262
14004
|
<p>DEPRECATED: use TagFactory instead.</p>
|
|
14263
14005
|
|
|
14264
14006
|
</div>
|
|
@@ -14276,7 +14018,7 @@ in the dictionary.</p>
|
|
|
14276
14018
|
|
|
14277
14019
|
<div class="doc doc-contents ">
|
|
14278
14020
|
|
|
14279
|
-
|
|
14021
|
+
<p>Return a dictionary representation of an instance.</p>
|
|
14280
14022
|
|
|
14281
14023
|
</div>
|
|
14282
14024
|
|
|
@@ -14293,7 +14035,7 @@ in the dictionary.</p>
|
|
|
14293
14035
|
|
|
14294
14036
|
<div class="doc doc-contents ">
|
|
14295
14037
|
|
|
14296
|
-
|
|
14038
|
+
<p>Test cases can override this method to perform any necessary manipulation of an instance prior to its evaluation
|
|
14297
14039
|
against test data. For example, it can be used to decrypt a Secret's plaintext attribute.</p>
|
|
14298
14040
|
|
|
14299
14041
|
</div>
|
|
@@ -14311,7 +14053,7 @@ against test data. For example, it can be used to decrypt a Secret's plaintext a
|
|
|
14311
14053
|
|
|
14312
14054
|
<div class="doc doc-contents ">
|
|
14313
14055
|
|
|
14314
|
-
|
|
14056
|
+
<p>Setup shared testuser, statuses and client.</p>
|
|
14315
14057
|
|
|
14316
14058
|
</div>
|
|
14317
14059
|
|
|
@@ -14328,7 +14070,7 @@ against test data. For example, it can be used to decrypt a Secret's plaintext a
|
|
|
14328
14070
|
|
|
14329
14071
|
<div class="doc doc-contents ">
|
|
14330
14072
|
|
|
14331
|
-
|
|
14073
|
+
<p>Clear cache after each test case.</p>
|
|
14332
14074
|
<p>In theory this shouldn't be necessary as our cache <strong>should</strong> appropriately update and clear itself when
|
|
14333
14075
|
data changes occur, but in practice we've seen issues here. Best guess at present is that it's due to
|
|
14334
14076
|
<code>TransactionTestCase</code> truncating the database, which presumably doesn't trigger the relevant Django signals
|
|
@@ -14360,20 +14102,15 @@ that would otherwise refresh the cache appropriately.</p>
|
|
|
14360
14102
|
|
|
14361
14103
|
<div class="doc doc-contents ">
|
|
14362
14104
|
<p class="doc doc-class-bases">
|
|
14363
|
-
Bases: <code><
|
|
14105
|
+
Bases: <code><autoref identifier="rest_framework.test.APIClient" optional hover>APIClient</autoref></code></p>
|
|
14364
14106
|
|
|
14365
14107
|
|
|
14366
|
-
|
|
14108
|
+
<p>Base client class for Nautobot testing.</p>
|
|
14367
14109
|
<p>DO NOT USE THIS IN PRODUCTION NAUTOBOT CODE.</p>
|
|
14368
14110
|
|
|
14369
14111
|
|
|
14370
14112
|
|
|
14371
14113
|
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
14114
|
<div class="doc doc-children">
|
|
14378
14115
|
|
|
14379
14116
|
|
|
@@ -14395,7 +14132,7 @@ that would otherwise refresh the cache appropriately.</p>
|
|
|
14395
14132
|
|
|
14396
14133
|
<div class="doc doc-contents ">
|
|
14397
14134
|
|
|
14398
|
-
|
|
14135
|
+
<p>Default the SERVER_NAME to "nautobot.example.com" rather than Django's default "testserver".</p>
|
|
14399
14136
|
<p>This matches the ALLOWED_HOSTS set in nautobot/core/tests/nautobot_config.py and
|
|
14400
14137
|
helps to protect us against issues like https://github.com/nautobot/nautobot/issues/3065.</p>
|
|
14401
14138
|
|
|
@@ -14428,11 +14165,6 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14428
14165
|
|
|
14429
14166
|
|
|
14430
14167
|
|
|
14431
|
-
|
|
14432
|
-
|
|
14433
|
-
|
|
14434
|
-
|
|
14435
|
-
|
|
14436
14168
|
<div class="doc doc-children">
|
|
14437
14169
|
|
|
14438
14170
|
|
|
@@ -14455,15 +14187,10 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14455
14187
|
|
|
14456
14188
|
<div class="doc doc-contents ">
|
|
14457
14189
|
<p class="doc doc-class-bases">
|
|
14458
|
-
Bases: <code><
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
<p>Base class for testing of the OpenAPI schema.</p>
|
|
14462
|
-
|
|
14463
|
-
|
|
14464
|
-
|
|
14190
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.TestCase" optional hover>TestCase</autoref></code></p>
|
|
14465
14191
|
|
|
14466
14192
|
|
|
14193
|
+
<p>Base class for testing of the OpenAPI schema.</p>
|
|
14467
14194
|
|
|
14468
14195
|
|
|
14469
14196
|
|
|
@@ -14489,7 +14216,7 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14489
14216
|
|
|
14490
14217
|
<div class="doc doc-contents ">
|
|
14491
14218
|
|
|
14492
|
-
|
|
14219
|
+
<p>Test method to assert that this polymorphic component has the expected permitted types.</p>
|
|
14493
14220
|
|
|
14494
14221
|
</div>
|
|
14495
14222
|
|
|
@@ -14506,7 +14233,7 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14506
14233
|
|
|
14507
14234
|
<div class="doc doc-contents ">
|
|
14508
14235
|
|
|
14509
|
-
|
|
14236
|
+
<p>Test method to assert that the given component property is marked as non-nullable.</p>
|
|
14510
14237
|
|
|
14511
14238
|
</div>
|
|
14512
14239
|
|
|
@@ -14523,7 +14250,7 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14523
14250
|
|
|
14524
14251
|
<div class="doc doc-contents ">
|
|
14525
14252
|
|
|
14526
|
-
|
|
14253
|
+
<p>Test method to assert that the given component property is not marked as read-only.</p>
|
|
14527
14254
|
|
|
14528
14255
|
</div>
|
|
14529
14256
|
|
|
@@ -14540,7 +14267,7 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14540
14267
|
|
|
14541
14268
|
<div class="doc doc-contents ">
|
|
14542
14269
|
|
|
14543
|
-
|
|
14270
|
+
<p>Test method to assert that the given component property is marked as nullable.</p>
|
|
14544
14271
|
|
|
14545
14272
|
</div>
|
|
14546
14273
|
|
|
@@ -14557,7 +14284,7 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14557
14284
|
|
|
14558
14285
|
<div class="doc doc-contents ">
|
|
14559
14286
|
|
|
14560
|
-
|
|
14287
|
+
<p>Test method to assert that the given component property is marked as read-only.</p>
|
|
14561
14288
|
|
|
14562
14289
|
</div>
|
|
14563
14290
|
|
|
@@ -14574,7 +14301,7 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14574
14301
|
|
|
14575
14302
|
<div class="doc doc-contents ">
|
|
14576
14303
|
|
|
14577
|
-
|
|
14304
|
+
<p>Helper method to pull a specific component schema from the larger OpenAPI schema already loaded.</p>
|
|
14578
14305
|
|
|
14579
14306
|
</div>
|
|
14580
14307
|
|
|
@@ -14591,7 +14318,7 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14591
14318
|
|
|
14592
14319
|
<div class="doc doc-contents ">
|
|
14593
14320
|
|
|
14594
|
-
|
|
14321
|
+
<p>Helper method to identify a component referenced by the given property of the current component.</p>
|
|
14595
14322
|
|
|
14596
14323
|
</div>
|
|
14597
14324
|
|
|
@@ -14608,7 +14335,7 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14608
14335
|
|
|
14609
14336
|
<div class="doc doc-contents ">
|
|
14610
14337
|
|
|
14611
|
-
|
|
14338
|
+
<p>Helper method to pull a specific property schema from a larger component schema already extracted.</p>
|
|
14612
14339
|
|
|
14613
14340
|
</div>
|
|
14614
14341
|
|
|
@@ -14625,7 +14352,7 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14625
14352
|
|
|
14626
14353
|
<div class="doc doc-contents ">
|
|
14627
14354
|
|
|
14628
|
-
|
|
14355
|
+
<p>Bringing it all together.</p>
|
|
14629
14356
|
<p>This validates the schema to show that:
|
|
14630
14357
|
- The component exists and has such a property
|
|
14631
14358
|
- The property has the correct <code>nullable</code> and <code>readOnly</code> values
|
|
@@ -14645,7 +14372,7 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14645
14372
|
<tbody>
|
|
14646
14373
|
<tr class="doc-section-item">
|
|
14647
14374
|
<td>
|
|
14648
|
-
<code>Tuple[ref_component_name
|
|
14375
|
+
<code><autoref identifier="Tuple" optional>Tuple</autoref>[<autoref identifier="ref_component_name" optional>ref_component_name</autoref>, <autoref identifier="ref_component_schema" optional>ref_component_schema</autoref>]</code>
|
|
14649
14376
|
</td>
|
|
14650
14377
|
<td>
|
|
14651
14378
|
<div class="doc-md-description">
|
|
@@ -14690,21 +14417,16 @@ helps to protect us against issues like https://github.com/nautobot/nautobot/iss
|
|
|
14690
14417
|
|
|
14691
14418
|
<div class="doc doc-contents ">
|
|
14692
14419
|
<p class="doc doc-class-bases">
|
|
14693
|
-
Bases: <code><
|
|
14420
|
+
Bases: <code><autoref identifier="django.contrib.staticfiles.testing.StaticLiveServerTestCase" optional hover>StaticLiveServerTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.NautobotTestCaseMixin" optional hover>NautobotTestCaseMixin</autoref></code></p>
|
|
14694
14421
|
|
|
14695
14422
|
|
|
14696
|
-
|
|
14423
|
+
<p>Base test case for Splinter Selenium integration testing with custom helper methods.</p>
|
|
14697
14424
|
<p>This extends <code>django.contrib.staticfiles.testing.StaticLiveServerTestCase</code>
|
|
14698
14425
|
so there is no need to run <code>collectstatic</code> prior to running tests.</p>
|
|
14699
14426
|
|
|
14700
14427
|
|
|
14701
14428
|
|
|
14702
14429
|
|
|
14703
|
-
|
|
14704
|
-
|
|
14705
|
-
|
|
14706
|
-
|
|
14707
|
-
|
|
14708
14430
|
<div class="doc doc-children">
|
|
14709
14431
|
|
|
14710
14432
|
|
|
@@ -14726,7 +14448,7 @@ so there is no need to run <code>collectstatic</code> prior to running tests.</p
|
|
|
14726
14448
|
|
|
14727
14449
|
<div class="doc doc-contents ">
|
|
14728
14450
|
|
|
14729
|
-
|
|
14451
|
+
<p>Helper function to click the "Create" button on a form.</p>
|
|
14730
14452
|
|
|
14731
14453
|
</div>
|
|
14732
14454
|
|
|
@@ -14743,7 +14465,7 @@ so there is no need to run <code>collectstatic</code> prior to running tests.</p
|
|
|
14743
14465
|
|
|
14744
14466
|
<div class="doc doc-contents ">
|
|
14745
14467
|
|
|
14746
|
-
|
|
14468
|
+
<p>Helper function to click the "Add" button on a list view.</p>
|
|
14747
14469
|
|
|
14748
14470
|
</div>
|
|
14749
14471
|
|
|
@@ -14760,7 +14482,7 @@ so there is no need to run <code>collectstatic</code> prior to running tests.</p
|
|
|
14760
14482
|
|
|
14761
14483
|
<div class="doc doc-contents ">
|
|
14762
14484
|
|
|
14763
|
-
|
|
14485
|
+
<p>Helper function to click on a parent menu and child menu in the navigation bar.</p>
|
|
14764
14486
|
|
|
14765
14487
|
</div>
|
|
14766
14488
|
|
|
@@ -14777,7 +14499,7 @@ so there is no need to run <code>collectstatic</code> prior to running tests.</p
|
|
|
14777
14499
|
|
|
14778
14500
|
<div class="doc doc-contents ">
|
|
14779
14501
|
|
|
14780
|
-
|
|
14502
|
+
<p>Helper function to fill a Select2 single selection field.</p>
|
|
14781
14503
|
|
|
14782
14504
|
</div>
|
|
14783
14505
|
|
|
@@ -14794,7 +14516,7 @@ so there is no need to run <code>collectstatic</code> prior to running tests.</p
|
|
|
14794
14516
|
|
|
14795
14517
|
<div class="doc doc-contents ">
|
|
14796
14518
|
|
|
14797
|
-
|
|
14519
|
+
<p>Helper function to fill a Select2 multi-selection field.</p>
|
|
14798
14520
|
|
|
14799
14521
|
</div>
|
|
14800
14522
|
|
|
@@ -14811,7 +14533,7 @@ so there is no need to run <code>collectstatic</code> prior to running tests.</p
|
|
|
14811
14533
|
|
|
14812
14534
|
<div class="doc doc-contents ">
|
|
14813
14535
|
|
|
14814
|
-
|
|
14536
|
+
<p>Navigate to <code>login_url</code> and perform a login w/ the provided <code>username</code> and <code>password</code>.</p>
|
|
14815
14537
|
|
|
14816
14538
|
</div>
|
|
14817
14539
|
|
|
@@ -14832,7 +14554,7 @@ so there is no need to run <code>collectstatic</code> prior to running tests.</p
|
|
|
14832
14554
|
|
|
14833
14555
|
<div class="doc doc-contents ">
|
|
14834
14556
|
|
|
14835
|
-
|
|
14557
|
+
<p>Close down the browser after tests are ran.</p>
|
|
14836
14558
|
|
|
14837
14559
|
</div>
|
|
14838
14560
|
|
|
@@ -14859,15 +14581,10 @@ so there is no need to run <code>collectstatic</code> prior to running tests.</p
|
|
|
14859
14581
|
|
|
14860
14582
|
<div class="doc doc-contents ">
|
|
14861
14583
|
<p class="doc doc-class-bases">
|
|
14862
|
-
Bases: <code><
|
|
14863
|
-
|
|
14864
|
-
|
|
14865
|
-
<p>Base class for all Nautobot-specific unit tests.</p>
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
|
|
14584
|
+
Bases: <code><autoref identifier="nautobot.core.testing.mixins.NautobotTestCaseMixin" optional hover>NautobotTestCaseMixin</autoref></code>, <code><autoref identifier="django.test.TestCase" optional hover>TestCase</autoref></code></p>
|
|
14869
14585
|
|
|
14870
14586
|
|
|
14587
|
+
<p>Base class for all Nautobot-specific unit tests.</p>
|
|
14871
14588
|
|
|
14872
14589
|
|
|
14873
14590
|
|
|
@@ -14893,7 +14610,7 @@ so there is no need to run <code>collectstatic</code> prior to running tests.</p
|
|
|
14893
14610
|
|
|
14894
14611
|
<div class="doc doc-contents ">
|
|
14895
14612
|
|
|
14896
|
-
|
|
14613
|
+
<p>Initialize user and client.</p>
|
|
14897
14614
|
|
|
14898
14615
|
</div>
|
|
14899
14616
|
|
|
@@ -14920,15 +14637,10 @@ so there is no need to run <code>collectstatic</code> prior to running tests.</p
|
|
|
14920
14637
|
|
|
14921
14638
|
<div class="doc doc-contents ">
|
|
14922
14639
|
<p class="doc doc-class-bases">
|
|
14923
|
-
Bases: <code><
|
|
14924
|
-
|
|
14925
|
-
|
|
14926
|
-
<p>Base test case class using the TransactionTestCase for unit testing</p>
|
|
14927
|
-
|
|
14928
|
-
|
|
14929
|
-
|
|
14640
|
+
Bases: <code><autoref identifier="nautobot.core.testing.mixins.NautobotTestCaseMixin" optional hover>NautobotTestCaseMixin</autoref></code>, <code><autoref identifier="django.test.TransactionTestCase" optional hover>TransactionTestCase</autoref></code></p>
|
|
14930
14641
|
|
|
14931
14642
|
|
|
14643
|
+
<p>Base test case class using the TransactionTestCase for unit testing</p>
|
|
14932
14644
|
|
|
14933
14645
|
|
|
14934
14646
|
|
|
@@ -14954,7 +14666,7 @@ so there is no need to run <code>collectstatic</code> prior to running tests.</p
|
|
|
14954
14666
|
|
|
14955
14667
|
<div class="doc doc-contents ">
|
|
14956
14668
|
|
|
14957
|
-
|
|
14669
|
+
<p>Provide a clean, post-migration state before each test case.</p>
|
|
14958
14670
|
<p>django.test.TransactionTestCase truncates the database after each test runs. We need at least the default
|
|
14959
14671
|
statuses present in the database in order to run tests.</p>
|
|
14960
14672
|
|
|
@@ -14984,12 +14696,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
14984
14696
|
<div class="doc doc-contents ">
|
|
14985
14697
|
|
|
14986
14698
|
|
|
14987
|
-
|
|
14988
|
-
|
|
14989
|
-
|
|
14990
|
-
|
|
14991
|
-
|
|
14992
|
-
|
|
14699
|
+
<p>We keep any TestCases with test_* methods inside a class to prevent unittest from trying to run them.</p>
|
|
14993
14700
|
|
|
14994
14701
|
|
|
14995
14702
|
|
|
@@ -15016,15 +14723,10 @@ statuses present in the database in order to run tests.</p>
|
|
|
15016
14723
|
|
|
15017
14724
|
<div class="doc doc-contents ">
|
|
15018
14725
|
<p class="doc doc-class-bases">
|
|
15019
|
-
Bases: <code><
|
|
15020
|
-
|
|
15021
|
-
|
|
15022
|
-
<p>Delete multiple instances.</p>
|
|
15023
|
-
|
|
15024
|
-
|
|
15025
|
-
|
|
14726
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelViewTestCase" optional hover>ModelViewTestCase</autoref></code></p>
|
|
15026
14727
|
|
|
15027
14728
|
|
|
14729
|
+
<p>Delete multiple instances.</p>
|
|
15028
14730
|
|
|
15029
14731
|
|
|
15030
14732
|
|
|
@@ -15050,7 +14752,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15050
14752
|
|
|
15051
14753
|
<div class="doc doc-contents ">
|
|
15052
14754
|
|
|
15053
|
-
|
|
14755
|
+
<p>Get a list of PKs corresponding to objects that can be safely bulk-deleted.</p>
|
|
15054
14756
|
<p>For some models this may just be any random objects, but when we have FKs with <code>on_delete=models.PROTECT</code>
|
|
15055
14757
|
(as is often the case) we need to find or create an instance that doesn't have such entanglements.</p>
|
|
15056
14758
|
|
|
@@ -15079,21 +14781,16 @@ statuses present in the database in order to run tests.</p>
|
|
|
15079
14781
|
|
|
15080
14782
|
<div class="doc doc-contents ">
|
|
15081
14783
|
<p class="doc doc-class-bases">
|
|
15082
|
-
Bases: <code><
|
|
14784
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelViewTestCase" optional hover>ModelViewTestCase</autoref></code></p>
|
|
15083
14785
|
|
|
15084
14786
|
|
|
15085
|
-
|
|
14787
|
+
<p>Edit multiple instances.</p>
|
|
15086
14788
|
<p>:bulk_edit_data: A dictionary of data to be used when bulk editing a set of objects. This data should differ
|
|
15087
14789
|
from that used for initial object creation within setUpTestData().</p>
|
|
15088
14790
|
|
|
15089
14791
|
|
|
15090
14792
|
|
|
15091
14793
|
|
|
15092
|
-
|
|
15093
|
-
|
|
15094
|
-
|
|
15095
|
-
|
|
15096
|
-
|
|
15097
14794
|
<div class="doc doc-children">
|
|
15098
14795
|
|
|
15099
14796
|
|
|
@@ -15125,15 +14822,10 @@ statuses present in the database in order to run tests.</p>
|
|
|
15125
14822
|
|
|
15126
14823
|
<div class="doc doc-contents ">
|
|
15127
14824
|
<p class="doc doc-class-bases">
|
|
15128
|
-
Bases: <code><
|
|
15129
|
-
|
|
15130
|
-
|
|
15131
|
-
<p>Rename multiple instances.</p>
|
|
15132
|
-
|
|
15133
|
-
|
|
15134
|
-
|
|
14825
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelViewTestCase" optional hover>ModelViewTestCase</autoref></code></p>
|
|
15135
14826
|
|
|
15136
14827
|
|
|
14828
|
+
<p>Rename multiple instances.</p>
|
|
15137
14829
|
|
|
15138
14830
|
|
|
15139
14831
|
|
|
@@ -15169,21 +14861,16 @@ statuses present in the database in order to run tests.</p>
|
|
|
15169
14861
|
|
|
15170
14862
|
<div class="doc doc-contents ">
|
|
15171
14863
|
<p class="doc doc-class-bases">
|
|
15172
|
-
Bases: <code><
|
|
14864
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelViewTestCase" optional hover>ModelViewTestCase</autoref></code></p>
|
|
15173
14865
|
|
|
15174
14866
|
|
|
15175
|
-
|
|
14867
|
+
<p>Create multiple instances using a single form. Expects the creation of three new instances by default.</p>
|
|
15176
14868
|
<p>:bulk_create_count: The number of objects expected to be created (default: 3).
|
|
15177
14869
|
:bulk_create_data: A dictionary of data to be used for bulk object creation.</p>
|
|
15178
14870
|
|
|
15179
14871
|
|
|
15180
14872
|
|
|
15181
14873
|
|
|
15182
|
-
|
|
15183
|
-
|
|
15184
|
-
|
|
15185
|
-
|
|
15186
|
-
|
|
15187
14874
|
<div class="doc doc-children">
|
|
15188
14875
|
|
|
15189
14876
|
|
|
@@ -15215,20 +14902,15 @@ statuses present in the database in order to run tests.</p>
|
|
|
15215
14902
|
|
|
15216
14903
|
<div class="doc doc-contents ">
|
|
15217
14904
|
<p class="doc doc-class-bases">
|
|
15218
|
-
Bases: <code><
|
|
14905
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelViewTestCase" optional hover>ModelViewTestCase</autoref></code></p>
|
|
15219
14906
|
|
|
15220
14907
|
|
|
15221
|
-
|
|
14908
|
+
<p>Create a single new instance.</p>
|
|
15222
14909
|
<p>:form_data: Data to be used when creating a new object.</p>
|
|
15223
14910
|
|
|
15224
14911
|
|
|
15225
14912
|
|
|
15226
14913
|
|
|
15227
|
-
|
|
15228
|
-
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
|
|
15232
14914
|
<div class="doc doc-children">
|
|
15233
14915
|
|
|
15234
14916
|
|
|
@@ -15260,15 +14942,10 @@ statuses present in the database in order to run tests.</p>
|
|
|
15260
14942
|
|
|
15261
14943
|
<div class="doc doc-contents ">
|
|
15262
14944
|
<p class="doc doc-class-bases">
|
|
15263
|
-
Bases: <code><
|
|
15264
|
-
|
|
15265
|
-
|
|
15266
|
-
<p>Delete a single instance.</p>
|
|
15267
|
-
|
|
15268
|
-
|
|
15269
|
-
|
|
14945
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelViewTestCase" optional hover>ModelViewTestCase</autoref></code></p>
|
|
15270
14946
|
|
|
15271
14947
|
|
|
14948
|
+
<p>Delete a single instance.</p>
|
|
15272
14949
|
|
|
15273
14950
|
|
|
15274
14951
|
|
|
@@ -15294,7 +14971,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15294
14971
|
|
|
15295
14972
|
<div class="doc doc-contents ">
|
|
15296
14973
|
|
|
15297
|
-
|
|
14974
|
+
<p>Get an instance that can be deleted.</p>
|
|
15298
14975
|
<p>For some models this may just be any random object, but when we have FKs with <code>on_delete=models.PROTECT</code>
|
|
15299
14976
|
(as is often the case) we need to find or create an instance that doesn't have such entanglements.</p>
|
|
15300
14977
|
|
|
@@ -15323,15 +15000,10 @@ statuses present in the database in order to run tests.</p>
|
|
|
15323
15000
|
|
|
15324
15001
|
<div class="doc doc-contents ">
|
|
15325
15002
|
<p class="doc doc-class-bases">
|
|
15326
|
-
Bases: <code><
|
|
15327
|
-
|
|
15328
|
-
|
|
15329
|
-
<p>TestCase suitable for testing device component template models (ConsolePortTemplates, InterfaceTemplates, etc.)</p>
|
|
15330
|
-
|
|
15331
|
-
|
|
15332
|
-
|
|
15003
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.EditObjectViewTestCase" optional hover>EditObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.DeleteObjectViewTestCase" optional hover>DeleteObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.CreateMultipleObjectsViewTestCase" optional hover>CreateMultipleObjectsViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.BulkEditObjectsViewTestCase" optional hover>BulkEditObjectsViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.BulkRenameObjectsViewTestCase" optional hover>BulkRenameObjectsViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.BulkDeleteObjectsViewTestCase" optional hover>BulkDeleteObjectsViewTestCase</autoref></code></p>
|
|
15333
15004
|
|
|
15334
15005
|
|
|
15006
|
+
<p>TestCase suitable for testing device component template models (ConsolePortTemplates, InterfaceTemplates, etc.)</p>
|
|
15335
15007
|
|
|
15336
15008
|
|
|
15337
15009
|
|
|
@@ -15367,15 +15039,10 @@ statuses present in the database in order to run tests.</p>
|
|
|
15367
15039
|
|
|
15368
15040
|
<div class="doc doc-contents ">
|
|
15369
15041
|
<p class="doc doc-class-bases">
|
|
15370
|
-
Bases: <code><
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
<p>TestCase suitable for testing device component models (ConsolePorts, Interfaces, etc.)</p>
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
|
|
15042
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.GetObjectViewTestCase" optional hover>GetObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.GetObjectChangelogViewTestCase" optional hover>GetObjectChangelogViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.GetObjectNotesViewTestCase" optional hover>GetObjectNotesViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.EditObjectViewTestCase" optional hover>EditObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.DeleteObjectViewTestCase" optional hover>DeleteObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.ListObjectsViewTestCase" optional hover>ListObjectsViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.CreateMultipleObjectsViewTestCase" optional hover>CreateMultipleObjectsViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.BulkEditObjectsViewTestCase" optional hover>BulkEditObjectsViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.BulkRenameObjectsViewTestCase" optional hover>BulkRenameObjectsViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.BulkDeleteObjectsViewTestCase" optional hover>BulkDeleteObjectsViewTestCase</autoref></code></p>
|
|
15377
15043
|
|
|
15378
15044
|
|
|
15045
|
+
<p>TestCase suitable for testing device component models (ConsolePorts, Interfaces, etc.)</p>
|
|
15379
15046
|
|
|
15380
15047
|
|
|
15381
15048
|
|
|
@@ -15405,7 +15072,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15405
15072
|
|
|
15406
15073
|
<div class="doc doc-contents ">
|
|
15407
15074
|
|
|
15408
|
-
|
|
15075
|
+
<p>Used for bulk-add (distinct from bulk-create) view testing; self.bulk_create_data will be used if unset.</p>
|
|
15409
15076
|
</div>
|
|
15410
15077
|
|
|
15411
15078
|
</div>
|
|
@@ -15423,7 +15090,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15423
15090
|
|
|
15424
15091
|
<div class="doc doc-contents ">
|
|
15425
15092
|
|
|
15426
|
-
|
|
15093
|
+
<p>Test bulk-adding this component to devices/virtual-machines.</p>
|
|
15427
15094
|
|
|
15428
15095
|
</div>
|
|
15429
15096
|
|
|
@@ -15450,21 +15117,16 @@ statuses present in the database in order to run tests.</p>
|
|
|
15450
15117
|
|
|
15451
15118
|
<div class="doc doc-contents ">
|
|
15452
15119
|
<p class="doc doc-class-bases">
|
|
15453
|
-
Bases: <code><
|
|
15120
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelViewTestCase" optional hover>ModelViewTestCase</autoref></code></p>
|
|
15454
15121
|
|
|
15455
15122
|
|
|
15456
|
-
|
|
15123
|
+
<p>Edit a single existing instance.</p>
|
|
15457
15124
|
<p>:update_data: Data to be used when updating the first existing object, fall back to form_data if not provided.
|
|
15458
15125
|
:form_data: Fall back to this data if update_data is not provided, for backward compatibility.</p>
|
|
15459
15126
|
|
|
15460
15127
|
|
|
15461
15128
|
|
|
15462
15129
|
|
|
15463
|
-
|
|
15464
|
-
|
|
15465
|
-
|
|
15466
|
-
|
|
15467
|
-
|
|
15468
15130
|
<div class="doc doc-children">
|
|
15469
15131
|
|
|
15470
15132
|
|
|
@@ -15496,15 +15158,10 @@ statuses present in the database in order to run tests.</p>
|
|
|
15496
15158
|
|
|
15497
15159
|
<div class="doc doc-contents ">
|
|
15498
15160
|
<p class="doc doc-class-bases">
|
|
15499
|
-
Bases: <code><
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
<p>View the changelog for an instance.</p>
|
|
15503
|
-
|
|
15504
|
-
|
|
15505
|
-
|
|
15161
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelViewTestCase" optional hover>ModelViewTestCase</autoref></code></p>
|
|
15506
15162
|
|
|
15507
15163
|
|
|
15164
|
+
<p>View the changelog for an instance.</p>
|
|
15508
15165
|
|
|
15509
15166
|
|
|
15510
15167
|
|
|
@@ -15540,15 +15197,10 @@ statuses present in the database in order to run tests.</p>
|
|
|
15540
15197
|
|
|
15541
15198
|
<div class="doc doc-contents ">
|
|
15542
15199
|
<p class="doc doc-class-bases">
|
|
15543
|
-
Bases: <code><
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
<p>View the notes for an instance.</p>
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
|
|
15200
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelViewTestCase" optional hover>ModelViewTestCase</autoref></code></p>
|
|
15550
15201
|
|
|
15551
15202
|
|
|
15203
|
+
<p>View the notes for an instance.</p>
|
|
15552
15204
|
|
|
15553
15205
|
|
|
15554
15206
|
|
|
@@ -15584,15 +15236,10 @@ statuses present in the database in order to run tests.</p>
|
|
|
15584
15236
|
|
|
15585
15237
|
<div class="doc doc-contents ">
|
|
15586
15238
|
<p class="doc doc-class-bases">
|
|
15587
|
-
Bases: <code><
|
|
15588
|
-
|
|
15589
|
-
|
|
15590
|
-
<p>Retrieve a single instance.</p>
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
-
|
|
15239
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelViewTestCase" optional hover>ModelViewTestCase</autoref></code></p>
|
|
15594
15240
|
|
|
15595
15241
|
|
|
15242
|
+
<p>Retrieve a single instance.</p>
|
|
15596
15243
|
|
|
15597
15244
|
|
|
15598
15245
|
|
|
@@ -15628,15 +15275,10 @@ statuses present in the database in order to run tests.</p>
|
|
|
15628
15275
|
|
|
15629
15276
|
<div class="doc doc-contents ">
|
|
15630
15277
|
<p class="doc doc-class-bases">
|
|
15631
|
-
Bases: <code><
|
|
15632
|
-
|
|
15633
|
-
|
|
15634
|
-
<p>Retrieve multiple instances.</p>
|
|
15635
|
-
|
|
15636
|
-
|
|
15637
|
-
|
|
15278
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ModelViewTestCase" optional hover>ModelViewTestCase</autoref></code></p>
|
|
15638
15279
|
|
|
15639
15280
|
|
|
15281
|
+
<p>Retrieve multiple instances.</p>
|
|
15640
15282
|
|
|
15641
15283
|
|
|
15642
15284
|
|
|
@@ -15662,7 +15304,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15662
15304
|
|
|
15663
15305
|
<div class="doc doc-contents ">
|
|
15664
15306
|
|
|
15665
|
-
|
|
15307
|
+
<p>Verify that without STRICT_FILTERING, an unknown filter is ignored.</p>
|
|
15666
15308
|
|
|
15667
15309
|
</div>
|
|
15668
15310
|
|
|
@@ -15679,7 +15321,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15679
15321
|
|
|
15680
15322
|
<div class="doc doc-contents ">
|
|
15681
15323
|
|
|
15682
|
-
|
|
15324
|
+
<p>Verify that with STRICT_FILTERING, an unknown filter results in an error message and no matches.</p>
|
|
15683
15325
|
|
|
15684
15326
|
</div>
|
|
15685
15327
|
|
|
@@ -15696,7 +15338,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15696
15338
|
|
|
15697
15339
|
<div class="doc doc-contents ">
|
|
15698
15340
|
|
|
15699
|
-
|
|
15341
|
+
<p>If example app is installed, check if the app banner is rendered correctly in ObjectListView.</p>
|
|
15700
15342
|
|
|
15701
15343
|
</div>
|
|
15702
15344
|
|
|
@@ -15723,15 +15365,10 @@ statuses present in the database in order to run tests.</p>
|
|
|
15723
15365
|
|
|
15724
15366
|
<div class="doc doc-contents ">
|
|
15725
15367
|
<p class="doc doc-class-bases">
|
|
15726
|
-
Bases: <code><
|
|
15727
|
-
|
|
15728
|
-
|
|
15729
|
-
<p>TestCase suitable for all organizational objects</p>
|
|
15730
|
-
|
|
15731
|
-
|
|
15732
|
-
|
|
15368
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.GetObjectViewTestCase" optional hover>GetObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.GetObjectChangelogViewTestCase" optional hover>GetObjectChangelogViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.GetObjectNotesViewTestCase" optional hover>GetObjectNotesViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.CreateObjectViewTestCase" optional hover>CreateObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.EditObjectViewTestCase" optional hover>EditObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.DeleteObjectViewTestCase" optional hover>DeleteObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.ListObjectsViewTestCase" optional hover>ListObjectsViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.BulkDeleteObjectsViewTestCase" optional hover>BulkDeleteObjectsViewTestCase</autoref></code></p>
|
|
15733
15369
|
|
|
15734
15370
|
|
|
15371
|
+
<p>TestCase suitable for all organizational objects</p>
|
|
15735
15372
|
|
|
15736
15373
|
|
|
15737
15374
|
|
|
@@ -15767,15 +15404,10 @@ statuses present in the database in order to run tests.</p>
|
|
|
15767
15404
|
|
|
15768
15405
|
<div class="doc doc-contents ">
|
|
15769
15406
|
<p class="doc doc-class-bases">
|
|
15770
|
-
Bases: <code><
|
|
15771
|
-
|
|
15772
|
-
|
|
15773
|
-
<p>TestCase suitable for testing all standard View functions for primary objects</p>
|
|
15774
|
-
|
|
15775
|
-
|
|
15776
|
-
|
|
15407
|
+
Bases: <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.GetObjectViewTestCase" optional hover>GetObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.GetObjectChangelogViewTestCase" optional hover>GetObjectChangelogViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.GetObjectNotesViewTestCase" optional hover>GetObjectNotesViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.CreateObjectViewTestCase" optional hover>CreateObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.EditObjectViewTestCase" optional hover>EditObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.DeleteObjectViewTestCase" optional hover>DeleteObjectViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.ListObjectsViewTestCase" optional hover>ListObjectsViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.BulkEditObjectsViewTestCase" optional hover>BulkEditObjectsViewTestCase</autoref></code>, <code><autoref identifier="nautobot.core.testing.views.ViewTestCases.BulkDeleteObjectsViewTestCase" optional hover>BulkDeleteObjectsViewTestCase</autoref></code></p>
|
|
15777
15408
|
|
|
15778
15409
|
|
|
15410
|
+
<p>TestCase suitable for testing all standard View functions for primary objects</p>
|
|
15779
15411
|
|
|
15780
15412
|
|
|
15781
15413
|
|
|
@@ -15819,7 +15451,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15819
15451
|
|
|
15820
15452
|
<div class="doc doc-contents ">
|
|
15821
15453
|
|
|
15822
|
-
|
|
15454
|
+
<p>Test helper function to call get_job_class_and_model() then call run_job_for_testing().</p>
|
|
15823
15455
|
|
|
15824
15456
|
</div>
|
|
15825
15457
|
|
|
@@ -15836,7 +15468,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15836
15468
|
|
|
15837
15469
|
<div class="doc doc-contents ">
|
|
15838
15470
|
|
|
15839
|
-
|
|
15471
|
+
<p>Create a User with the given permissions.</p>
|
|
15840
15472
|
|
|
15841
15473
|
</div>
|
|
15842
15474
|
|
|
@@ -15853,7 +15485,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15853
15485
|
|
|
15854
15486
|
<div class="doc doc-contents ">
|
|
15855
15487
|
|
|
15856
|
-
|
|
15488
|
+
<p>Temporarily suppress expected warning messages to keep the test output clean.</p>
|
|
15857
15489
|
|
|
15858
15490
|
</div>
|
|
15859
15491
|
|
|
@@ -15870,7 +15502,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15870
15502
|
|
|
15871
15503
|
<div class="doc doc-contents ">
|
|
15872
15504
|
|
|
15873
|
-
|
|
15505
|
+
<p>Given decoded HTML content from an HTTP response, return a list of form errors.</p>
|
|
15874
15506
|
|
|
15875
15507
|
</div>
|
|
15876
15508
|
|
|
@@ -15887,7 +15519,7 @@ statuses present in the database in order to run tests.</p>
|
|
|
15887
15519
|
|
|
15888
15520
|
<div class="doc doc-contents ">
|
|
15889
15521
|
|
|
15890
|
-
|
|
15522
|
+
<p>Given raw HTML content from an HTTP response, extract the main div only.</p>
|
|
15891
15523
|
<html>
|
|
15892
15524
|
<head>... <link href="../../../assets/stylesheets/glightbox.min.css" rel="stylesheet"/><style>
|
|
15893
15525
|
html.glightbox-open { overflow: initial; height: 100%; }
|
|
@@ -15926,7 +15558,7 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
15926
15558
|
|
|
15927
15559
|
<div class="doc doc-contents ">
|
|
15928
15560
|
|
|
15929
|
-
|
|
15561
|
+
<p>For testing purposes only; it returns a random string of size 100 consisting of letters and numbers.</p>
|
|
15930
15562
|
|
|
15931
15563
|
</div>
|
|
15932
15564
|
|
|
@@ -15943,7 +15575,7 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
15943
15575
|
|
|
15944
15576
|
<div class="doc doc-contents ">
|
|
15945
15577
|
|
|
15946
|
-
|
|
15578
|
+
<p>Returns a subset of objects in the given queryset that have no protected relationships that would prevent deletion.</p>
|
|
15947
15579
|
|
|
15948
15580
|
</div>
|
|
15949
15581
|
|
|
@@ -15960,7 +15592,7 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
15960
15592
|
|
|
15961
15593
|
<div class="doc doc-contents ">
|
|
15962
15594
|
|
|
15963
|
-
|
|
15595
|
+
<p>Test helper function to look up a job class and job model and ensure the latter is enabled.</p>
|
|
15964
15596
|
|
|
15965
15597
|
|
|
15966
15598
|
<p><span class="doc-section-title">Parameters:</span></p>
|
|
@@ -15975,11 +15607,9 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
15975
15607
|
</thead>
|
|
15976
15608
|
<tbody>
|
|
15977
15609
|
<tr class="doc-section-item">
|
|
15610
|
+
<td><code>module</code></td>
|
|
15978
15611
|
<td>
|
|
15979
|
-
|
|
15980
|
-
</td>
|
|
15981
|
-
<td>
|
|
15982
|
-
<code>str</code>
|
|
15612
|
+
<code><autoref identifier="str" optional>str</autoref></code>
|
|
15983
15613
|
</td>
|
|
15984
15614
|
<td>
|
|
15985
15615
|
<div class="doc-md-description">
|
|
@@ -15991,11 +15621,9 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
15991
15621
|
</td>
|
|
15992
15622
|
</tr>
|
|
15993
15623
|
<tr class="doc-section-item">
|
|
15624
|
+
<td><code>name</code></td>
|
|
15994
15625
|
<td>
|
|
15995
|
-
|
|
15996
|
-
</td>
|
|
15997
|
-
<td>
|
|
15998
|
-
<code>str</code>
|
|
15626
|
+
<code><autoref identifier="str" optional>str</autoref></code>
|
|
15999
15627
|
</td>
|
|
16000
15628
|
<td>
|
|
16001
15629
|
<div class="doc-md-description">
|
|
@@ -16007,11 +15635,9 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
16007
15635
|
</td>
|
|
16008
15636
|
</tr>
|
|
16009
15637
|
<tr class="doc-section-item">
|
|
15638
|
+
<td><code>source</code></td>
|
|
16010
15639
|
<td>
|
|
16011
|
-
|
|
16012
|
-
</td>
|
|
16013
|
-
<td>
|
|
16014
|
-
<code>str</code>
|
|
15640
|
+
<code><autoref identifier="str" optional>str</autoref></code>
|
|
16015
15641
|
</td>
|
|
16016
15642
|
<td>
|
|
16017
15643
|
<div class="doc-md-description">
|
|
@@ -16037,7 +15663,7 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
16037
15663
|
<tbody>
|
|
16038
15664
|
<tr class="doc-section-item">
|
|
16039
15665
|
<td>
|
|
16040
|
-
<code><
|
|
15666
|
+
<code><autoref identifier="nautobot.core.testing.JobClassInfo" optional hover>JobClassInfo</autoref></code>
|
|
16041
15667
|
</td>
|
|
16042
15668
|
<td>
|
|
16043
15669
|
<div class="doc-md-description">
|
|
@@ -16063,7 +15689,7 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
16063
15689
|
|
|
16064
15690
|
<div class="doc doc-contents ">
|
|
16065
15691
|
|
|
16066
|
-
|
|
15692
|
+
<p>Take a dictionary of test data (suitable for comparison to an instance) and return a dict suitable for POSTing.</p>
|
|
16067
15693
|
|
|
16068
15694
|
</div>
|
|
16069
15695
|
|
|
@@ -16080,7 +15706,7 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
16080
15706
|
|
|
16081
15707
|
<div class="doc doc-contents ">
|
|
16082
15708
|
|
|
16083
|
-
|
|
15709
|
+
<p>Provide a common interface to run Nautobot jobs as part of unit tests.</p>
|
|
16084
15710
|
|
|
16085
15711
|
|
|
16086
15712
|
<p><span class="doc-section-title">Parameters:</span></p>
|
|
@@ -16095,11 +15721,9 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
16095
15721
|
</thead>
|
|
16096
15722
|
<tbody>
|
|
16097
15723
|
<tr class="doc-section-item">
|
|
15724
|
+
<td><code>job</code></td>
|
|
16098
15725
|
<td>
|
|
16099
|
-
|
|
16100
|
-
</td>
|
|
16101
|
-
<td>
|
|
16102
|
-
<code><span title="nautobot.extras.models.Job">Job</span></code>
|
|
15726
|
+
<code><autoref identifier="nautobot.extras.models.Job" optional hover>Job</autoref></code>
|
|
16103
15727
|
</td>
|
|
16104
15728
|
<td>
|
|
16105
15729
|
<div class="doc-md-description">
|
|
@@ -16111,11 +15735,9 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
16111
15735
|
</td>
|
|
16112
15736
|
</tr>
|
|
16113
15737
|
<tr class="doc-section-item">
|
|
15738
|
+
<td><code>username</code></td>
|
|
16114
15739
|
<td>
|
|
16115
|
-
|
|
16116
|
-
</td>
|
|
16117
|
-
<td>
|
|
16118
|
-
<code>str</code>
|
|
15740
|
+
<code><autoref identifier="str" optional>str</autoref></code>
|
|
16119
15741
|
</td>
|
|
16120
15742
|
<td>
|
|
16121
15743
|
<div class="doc-md-description">
|
|
@@ -16127,11 +15749,9 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
16127
15749
|
</td>
|
|
16128
15750
|
</tr>
|
|
16129
15751
|
<tr class="doc-section-item">
|
|
15752
|
+
<td><code>profile</code></td>
|
|
16130
15753
|
<td>
|
|
16131
|
-
|
|
16132
|
-
</td>
|
|
16133
|
-
<td>
|
|
16134
|
-
<code>bool</code>
|
|
15754
|
+
<code><autoref identifier="bool" optional>bool</autoref></code>
|
|
16135
15755
|
</td>
|
|
16136
15756
|
<td>
|
|
16137
15757
|
<div class="doc-md-description">
|
|
@@ -16159,7 +15779,7 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
16159
15779
|
<tr class="doc-section-item">
|
|
16160
15780
|
<td><code>**kwargs</code></td>
|
|
16161
15781
|
<td>
|
|
16162
|
-
<code>any</code>
|
|
15782
|
+
<code><autoref identifier="any" optional>any</autoref></code>
|
|
16163
15783
|
</td>
|
|
16164
15784
|
<td>
|
|
16165
15785
|
<div class="doc-md-description">
|
|
@@ -16182,7 +15802,7 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
16182
15802
|
<tbody>
|
|
16183
15803
|
<tr class="doc-section-item">
|
|
16184
15804
|
<td>
|
|
16185
|
-
<code><
|
|
15805
|
+
<code><autoref identifier="nautobot.extras.models.JobResult" optional hover>JobResult</autoref></code>
|
|
16186
15806
|
</td>
|
|
16187
15807
|
<td>
|
|
16188
15808
|
<div class="doc-md-description">
|
|
@@ -16350,7 +15970,7 @@ document$.subscribe(() => { lightbox.reload() });
|
|
|
16350
15970
|
<script id="__config" type="application/json">{"base": "../../..", "features": ["content.code.annotate", "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>
|
|
16351
15971
|
|
|
16352
15972
|
|
|
16353
|
-
<script src="../../../assets/javascripts/bundle.
|
|
15973
|
+
<script src="../../../assets/javascripts/bundle.83f73b43.min.js"></script>
|
|
16354
15974
|
|
|
16355
15975
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
16356
15976
|
|