mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-20 14:29:25 -04: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):
|
class QueueNames(object):
|
||||||
CHECK_JOBS = 'check-job-status-tasks'
|
|
||||||
PERIODIC = 'periodic-tasks'
|
PERIODIC = 'periodic-tasks'
|
||||||
PRIORITY = 'priority-tasks'
|
PRIORITY = 'priority-tasks'
|
||||||
DATABASE = 'database-tasks'
|
DATABASE = 'database-tasks'
|
||||||
@@ -35,7 +34,6 @@ class QueueNames(object):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def all_queues():
|
def all_queues():
|
||||||
return [
|
return [
|
||||||
QueueNames.CHECK_JOBS,
|
|
||||||
QueueNames.PRIORITY,
|
QueueNames.PRIORITY,
|
||||||
QueueNames.PERIODIC,
|
QueueNames.PERIODIC,
|
||||||
QueueNames.DATABASE,
|
QueueNames.DATABASE,
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ def test_cloudfoundry_config_has_different_defaults():
|
|||||||
def test_queue_names_all_queues_correct():
|
def test_queue_names_all_queues_correct():
|
||||||
# Need to ensure that all_queues() only returns queue names used in API
|
# Need to ensure that all_queues() only returns queue names used in API
|
||||||
queues = QueueNames.all_queues()
|
queues = QueueNames.all_queues()
|
||||||
assert len(queues) == 11
|
assert len(queues) == 10
|
||||||
assert set([
|
assert set([
|
||||||
QueueNames.PRIORITY,
|
QueueNames.PRIORITY,
|
||||||
QueueNames.PERIODIC,
|
QueueNames.PERIODIC,
|
||||||
@@ -74,6 +74,5 @@ def test_queue_names_all_queues_correct():
|
|||||||
QueueNames.STATISTICS,
|
QueueNames.STATISTICS,
|
||||||
QueueNames.JOBS,
|
QueueNames.JOBS,
|
||||||
QueueNames.RETRY,
|
QueueNames.RETRY,
|
||||||
QueueNames.NOTIFY,
|
QueueNames.NOTIFY
|
||||||
QueueNames.CHECK_JOBS,
|
|
||||||
]) == set(queues)
|
]) == set(queues)
|
||||||
|
|||||||
Reference in New Issue
Block a user