Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upper case the values for datapipeline status #1110

Merged
merged 1 commit into from
Jan 27, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions awscli/customizations/datapipeline/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _build_status(self, selectors, parsed_args):
'fieldName': '@status',
'operator': {
'type': 'EQ',
'values': parsed_args.status
'values': [status.upper() for status in parsed_args.status]
}
})

Expand Down Expand Up @@ -331,7 +331,7 @@ class ListRunsCommand(BasicCommand):
]
VALID_STATUS = ['waiting', 'pending', 'cancelled', 'running',
'finished', 'failed', 'waiting_for_runner',
'waiting_on_dependencies']
'waiting_on_dependencies', 'shutting_down']

def __init__(self, session, formatter=None):
super(ListRunsCommand, self).__init__(session)
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/customizations/datapipeline/test_arg_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def test_build_args_with_single_status(self):
'fieldName': '@status',
'operator': {
'type': 'EQ',
'values': ['pending']
'values': ['PENDING']
}
},
]
Expand All @@ -197,7 +197,7 @@ def test_build_args_with_csv_status(self):
'fieldName': '@status',
'operator': {
'type': 'EQ',
'values': ['pending', 'waiting_on_dependencies']
'values': ['PENDING', 'WAITING_ON_DEPENDENCIES']
}
},
]
Expand Down Expand Up @@ -235,7 +235,7 @@ def test_build_args_with_all_values_set(self):
'fieldName': '@status',
'operator': {
'type': 'EQ',
'values': ['pending', 'waiting_on_dependencies']
'values': ['PENDING', 'WAITING_ON_DEPENDENCIES']
}
},]
})