mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
Remove some obsolete code.
This commit is contained in:
@@ -27,13 +27,6 @@ from awx.main.models.credential import CredentialType
|
|||||||
from awx.main.models.rbac import RoleAncestorEntry
|
from awx.main.models.rbac import RoleAncestorEntry
|
||||||
|
|
||||||
|
|
||||||
class MongoFilterBackend(BaseFilterBackend):
|
|
||||||
|
|
||||||
# FIX: Note that MongoEngine can't use the filter backends from DRF
|
|
||||||
def filter_queryset(self, request, queryset, view):
|
|
||||||
return queryset
|
|
||||||
|
|
||||||
|
|
||||||
class V1CredentialFilterBackend(BaseFilterBackend):
|
class V1CredentialFilterBackend(BaseFilterBackend):
|
||||||
'''
|
'''
|
||||||
For /api/v1/ requests, filter out v2 (custom) credentials
|
For /api/v1/ requests, filter out v2 (custom) credentials
|
||||||
|
|||||||
@@ -78,8 +78,6 @@ if is_testing(sys.argv):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MONGO_DB = 'system_tracking_test'
|
|
||||||
|
|
||||||
# Celery AMQP configuration.
|
# Celery AMQP configuration.
|
||||||
CELERY_BROKER_URL = "amqp://{}:{}@{}/{}".format(os.environ.get("RABBITMQ_USER"),
|
CELERY_BROKER_URL = "amqp://{}:{}@{}/{}".format(os.environ.get("RABBITMQ_USER"),
|
||||||
os.environ.get("RABBITMQ_PASS"),
|
os.environ.get("RABBITMQ_PASS"),
|
||||||
|
|||||||
@@ -45,8 +45,6 @@ if is_testing(sys.argv):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MONGO_DB = 'system_tracking_test'
|
|
||||||
|
|
||||||
# Celery AMQP configuration.
|
# Celery AMQP configuration.
|
||||||
BROKER_URL = 'amqp://guest:guest@localhost:5672'
|
BROKER_URL = 'amqp://guest:guest@localhost:5672'
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,5 @@ addopts = --reuse-db --nomigrations --tb=native
|
|||||||
markers =
|
markers =
|
||||||
ac: access control test
|
ac: access control test
|
||||||
license_feature: ensure license features are accessible or not depending on license
|
license_feature: ensure license features are accessible or not depending on license
|
||||||
mongo_db: drop mongodb test database before test runs
|
|
||||||
survey: tests related to survey feature
|
survey: tests related to survey feature
|
||||||
inventory_import: tests of code used by inventory import command
|
inventory_import: tests of code used by inventory import command
|
||||||
|
|||||||
1
tox.ini
1
tox.ini
@@ -75,4 +75,3 @@ addopts = --reuse-db --nomigrations --tb=native
|
|||||||
markers =
|
markers =
|
||||||
ac: access control test
|
ac: access control test
|
||||||
license_feature: ensure license features are accessible or not depending on license
|
license_feature: ensure license features are accessible or not depending on license
|
||||||
mongo_db: drop mongodb test database before test runs
|
|
||||||
|
|||||||
Reference in New Issue
Block a user