diff --git a/armada/handlers/tiller.py b/armada/handlers/tiller.py index 407383e4..75db317d 100644 --- a/armada/handlers/tiller.py +++ b/armada/handlers/tiller.py @@ -202,9 +202,7 @@ class Tiller(object): req = ListReleasesRequest( offset=next_release_expected, limit=LIST_RELEASES_PAGE_SIZE, - status_codes=[const.STATUS_DEPLOYED, const.STATUS_FAILED], - sort_by='LAST_RELEASED', - sort_order='DESC') + status_codes=[const.STATUS_DEPLOYED, const.STATUS_FAILED]) LOG.debug('Tiller ListReleases() with timeout=%s, request=%s', self.timeout, req) diff --git a/armada/tests/unit/handlers/test_tiller.py b/armada/tests/unit/handlers/test_tiller.py index edbbf683..5671dcd1 100644 --- a/armada/tests/unit/handlers/test_tiller.py +++ b/armada/tests/unit/handlers/test_tiller.py @@ -203,9 +203,7 @@ class TillerTestCase(base.ArmadaTestCase): limit=tiller.LIST_RELEASES_PAGE_SIZE, status_codes=[ tiller.const.STATUS_DEPLOYED, tiller.const.STATUS_FAILED - ], - sort_by='LAST_RELEASED', - sort_order='DESC') + ]) @mock.patch('armada.handlers.tiller.K8s') @mock.patch('armada.handlers.tiller.grpc') @@ -255,9 +253,7 @@ class TillerTestCase(base.ArmadaTestCase): limit=tiller.LIST_RELEASES_PAGE_SIZE, status_codes=[ tiller.const.STATUS_DEPLOYED, tiller.const.STATUS_FAILED - ], - sort_by='LAST_RELEASED', - sort_order='DESC') for i in range(page_count) + ]) for i in range(page_count) ] mock_list_releases_request.assert_has_calls(list_release_request_calls)