################################################################### # This file serves as a base configuration for testing purposes # # only. It is not intended for production use. # ################################################################### import os from nautobot.core.settings import * # noqa: F403 # undefined-local-with-import-star from nautobot.core.settings_funcs import parse_redis_connection ALLOWED_HOSTS = ["nautobot.example.com"] # Do *not* send anonymized install metrics when migration or post_upgrade management commands are run while testing INSTALLATION_METRICS_ENABLED = False # Discover test jobs from within the Nautobot source code JOBS_ROOT = os.path.join( os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))), "extras", "test_jobs" ) # Enable both example apps PLUGINS = [ "example_app", "example_app_with_view_override", ] # Hard-code the SECRET_KEY for simplicity SECRET_KEY = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" # noqa: S105 # hardcoded-password-string # Redis variables # Use *different* redis_databases than the ones (0 and 1) used during non-automated-testing operations. CACHES["default"]["LOCATION"] = parse_redis_connection(redis_database=2) # noqa: F405 # undefined-local-with-import-star-usage # Testing storages within cli.py STORAGE_CONFIG = { "AWS_ACCESS_KEY_ID": "ASFWDAMWWOQMEOQMWPMDA