-
Notifications
You must be signed in to change notification settings - Fork 90
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
Added additional params for createcache. Allows description and expiry settings to be passed as arguments #176
Conversation
…y settings to be passed as arguments
@whitlockjc can you pl review the PR |
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.
Overall, I like where you're going but I don't think it makes sense to treat previously optional (as in they are not required by the Edge MGMT API 1 and they weren't providable by the user prior for apigeetool
) options as required. If you treat your new options as optional, the logic behind applying the values (when provided) should then change to match. Ideally, your new options would override previously hard-coded values if/when provided by the user but the CLI interface in its requirements shouldn't change.
Make sense?
@whitlockjc thanks for your comments. Updated PR to use default values for description and expiry. |
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.
Thanks for your continued work, but there are a couple more changes to make please.
@whitlockjc thanks for your continued support for reviewing the PR. Summary for different scenarios
Pl review and provide your feedback. |
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.
One more nit, also...any tests?
…or setting cache expiry in seconds
@whitlockjc Added test case for createcache with expiry settings. Pl review. |
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.
Thank you for your patience here, I really appreciate your contribution. A few more minor changes and we should be ready to go.
PR updated with test cases for below scenarios.
|
Since I don't see the changes to check the cache information for the provided arguments, is your plan to update these tests when you submit your PR for getting cache information? |
Yes, will update these test to add get , verify as part of getting cache information PR |
@whitlockjc Did you get chance to review these test cases? |
Added additional params for createcache commands. Allows description and expiry settings to be passed as arguments.
Currently description and expiry settings arguments are hard-coded for createcache command in the code. PR changes is to allow description and expiry settings to be passed as arguments for createcache command.
Fix for issues
Issue 174
Changes are tested with sample commands