mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Removed the new queue name as it is not needed.
This commit is contained in:
@@ -19,7 +19,6 @@ if os.environ.get('VCAP_SERVICES'):
|
||||
|
||||
|
||||
class QueueNames(object):
|
||||
CHECK_JOBS = 'check-job-status-tasks'
|
||||
PERIODIC = 'periodic-tasks'
|
||||
PRIORITY = 'priority-tasks'
|
||||
DATABASE = 'database-tasks'
|
||||
@@ -35,7 +34,6 @@ class QueueNames(object):
|
||||
@staticmethod
|
||||
def all_queues():
|
||||
return [
|
||||
QueueNames.CHECK_JOBS,
|
||||
QueueNames.PRIORITY,
|
||||
QueueNames.PERIODIC,
|
||||
QueueNames.DATABASE,
|
||||
|
||||
@@ -63,7 +63,7 @@ def test_cloudfoundry_config_has_different_defaults():
|
||||
def test_queue_names_all_queues_correct():
|
||||
# Need to ensure that all_queues() only returns queue names used in API
|
||||
queues = QueueNames.all_queues()
|
||||
assert len(queues) == 11
|
||||
assert len(queues) == 10
|
||||
assert set([
|
||||
QueueNames.PRIORITY,
|
||||
QueueNames.PERIODIC,
|
||||
@@ -74,6 +74,5 @@ def test_queue_names_all_queues_correct():
|
||||
QueueNames.STATISTICS,
|
||||
QueueNames.JOBS,
|
||||
QueueNames.RETRY,
|
||||
QueueNames.NOTIFY,
|
||||
QueueNames.CHECK_JOBS,
|
||||
QueueNames.NOTIFY
|
||||
]) == set(queues)
|
||||
|
||||
Reference in New Issue
Block a user