examples: Added a sandbox for testing HTTP caching based on the Front Proxy sandbox#12549
examples: Added a sandbox for testing HTTP caching based on the Front Proxy sandbox#12549mattklein123 merged 23 commits intoenvoyproxy:masterfrom
Conversation
…y sandbox Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
|
This is a draft, it is still missing documentation updates. To run the sandbox:
To send a request:
Example: Cached responses can be identified by having an Each response has an etag computed based on the response body in responses.yaml. After the etag is calculated, the date at which this response is created is appended to the body. This date is useful when a stale cached response is revalidated and served, as it shows that the date header is the date at which the response was validated, not the date of its creation. |
|
cc. @phlax |
|
hi @yosrym93 assuming #12491 lands first you will need to add a test for the sandbox in the format for the test needs to be: the name of the function must be
the (curl) tests should reflect all commands/instructions documented in the example. i should probs write this up in dev docs somewhere i guess EDIT: latest test format is in #12874 |
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
|
Changing "v2" to "v3" won't work. As per earlier comment the complete string is different |
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Sorry I did not notice the different string, my bad. I corrected it and made sure it runs correctly. |
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
|
I won't install Docker on my Linux machine so I modified the sandbox configs and scripts to run natively on different ports and the demo works well. Thanks |
|
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
Waiting for #12491 to be merged. |
|
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
|
This is ready to be reviewed. I'll add an example test once #12491 is merged. |
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
|
@phlax @moderation I cleaned the docs and added an example test according to #12874. This should be ready for a final review. |
|
@phlax I don't understand why the tests are failing. I looked at the log for the cache example test and it seems like everything ran smoothly with no errors (like it did locally on my machine). Why is it failing? |
|
...we probs need some docs about this if there arent any already |
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
It should be fixed now. |
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
|
@phlax I think I need to remove "cache/responses.yaml" from the BUILD file and added to the |
|
update: and include ie: |
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Yosry Ahmed <yosryahmed@google.com>
|
@phlax This works now! Any further comments? |
|
/retest |
|
Retrying Azure Pipelines, to retry CircleCI checks, use |
phlax
left a comment
There was a problem hiding this comment.
ive run the example and built the docs - looks good - ive left some nits and general comments
Signed-off-by: Yosry Ahmed <yosrym93@gmail.com>
Signed-off-by: Yosry Ahmed <yosrym93@gmail.com>
|
@jmarantz I see you're assigned to this review. Are you the right person to get this merged? |
mattklein123
left a comment
There was a problem hiding this comment.
Thank you for more examples!!!
Commit Message:
Added a sandbox for testing HTTP caching based on the Front Proxy sandbox.
Signed-off-by: Yosry Ahmed yosryahmed@google.com
Risk Level: N/A
Testing: CI example test.
Docs Changes: Update the examples docs.
Release Notes: N/A