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

Enhance input validations #14

Merged
merged 2 commits into from
Jun 5, 2015

Conversation

xyhuang
Copy link
Contributor

@xyhuang xyhuang commented Jun 5, 2015

  • metric/log names validation
  • dates validations

This improves the validation of metrics and logs names:
- check whether the value is None
- check name length
- move the exception handlings to _validate*Name() methods
This improves the validation of from_date and to_date in getLogs() and getMetric():
- the dates must be either None or a number
- the from_date cannot be later than to_date
@xyhuang
Copy link
Contributor Author

xyhuang commented Jun 5, 2015

This fixes #9 and #10.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling d51a9f0 on xyhuang:enhance-input-validations into 9e354c0 on CiscoZeus:master.

marcsolanas added a commit that referenced this pull request Jun 5, 2015
Merging pull request to enhance validations of user input.
@marcsolanas marcsolanas merged commit 2087163 into CiscoZeus:master Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants