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

Validate requested expirations on create #419

Merged
merged 2 commits into from
Sep 2, 2015

Conversation

tcmitchell
Copy link
Member

When creating slices and projects, do a better job validating requested expirations. Raise an argument error if the expiration is in the past. Limit slice expiration to max renewal date. Convert expirations to UTC consistently. Do a better job filtering bad input for project expirations.

Fixes #413

When creating a slice ensure that the expiration is in the future, but
not more than the max expiration or the project expiration.
Only accept a valid date or null. Convert supplied dates to UTC and
naive (i.e. timezone free). Raise an error if requested expiration is
in the past.
@tcmitchell tcmitchell self-assigned this Sep 2, 2015
@tcmitchell tcmitchell added this to the 2.4 milestone Sep 2, 2015
tcmitchell added a commit that referenced this pull request Sep 2, 2015
Validate requested expirations on create
@tcmitchell tcmitchell merged commit 224275e into GENI-NSF:develop Sep 2, 2015
@tcmitchell tcmitchell deleted the tkt413-expiration branch September 2, 2015 19:21
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.

1 participant