-
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 command for getcache, listcaches and updatecache #179
Conversation
@whitlockjc can you review this PR |
@whitlockjc Thanks for your continued support while reviewing the older PR. Can you pl review this PR. |
@DinoChiesa and/or @kurtkanaskie, wanna help me review this? LGTM but I'd love a few more eyes on it. |
@whitlockjc @DinoChiesa @kurtkanaskie Could you review this? |
Any other reviewers who can help to review this? |
Hi @hiteshshahjee, I finally got around to reviewing, sorry for the delay. It should first get the existing cache representation and then update any options provided. BTW, the "expirySettings" is also an issue with createCache command. |
@kurtkanaskie thanks for your time to review the PR. Pl find my comments. if I try to update just the cache description, it sets "expiryDate" to "12-31-9999".
Also, if I try to update the "timeoutInSec" to "300" it sets both "expiryDate" and "timeoutInSec".
|
Any update on this? |
I think its reasonable to expect the user to provide details for all fields, as per Edge API behavior:
That implies that the Edge API assigns the defaults and apigeetool does not specify the default values. So the object updateCachePayload on line #41 lib/commands/updatecache.js should start out empty and be populated with values provided. I suggest testing the results using apigeetool and Edge API with various permutations of omitted fields. The results should be the same. |
@kurtkanaskie Where do you stand on this? |
I've reviewed this request again and re-emphasize that it should be corrected not to set any deprecated elements or defaults in the create and update requests. I think the create and updated commands should be implemented using the following. createCache
updateCache
|
I've added new commands for get, list, and clear cache, via #227 . |
Added get, list and update command for cache operations.
Fix for issue 178.
Also updated test cases for PR-176 with GET, VERIFY step.