-
Notifications
You must be signed in to change notification settings - Fork 17
https://github.com/twosigma/waiter/issues/1649 + https://github.com/twosigma/waiter/issues/1637 #1672
Conversation
… additional test case
…iter into capstone-2022-master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create separate prs for the two changes.
@@ -1154,6 +1154,7 @@ def test_show_services_using_token(self): | |||
self.assertEqual(service_description_2, service_2['service-description']) | |||
self.assertEqual('Running', service_1['status']) | |||
self.assertIn(service_2['status'], ['Failing', 'Starting']) | |||
self.assertIn(service_2['scaling-state'], ["stable", "scale-up", "scale-down"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's capitalize the first letter in the output
Actually, let it be. We can fix the string in the api if needed.
@@ -65,7 +65,8 @@ def tabulate_token_services(services, token_name, token_etag=None, show_index=Fa | |||
('Last request', format_last_request_time(s)), | |||
('Current?', | |||
format_using_current_token(s, token_etag or s.get('etag', None), | |||
token_name))] | |||
token_name)), | |||
('Scaling State', s['scaling-state'])] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code should be defensive against the value missing and display blank or Unknown
. As written the code will throw an error if the scaling-state
entry is missing.
Some cli tests are failing as status is no longer the last column, the tests need to be updated:
from output:
https://github.com/twosigma/waiter/actions/runs/3301534112/jobs/5447110173 |
Closing this PR since two new ones were opened: |
Changes proposed in this PR
#1649
#1637
Why are we making these changes?