Skip to content

Add test for Http Metadata exchange #2567

Merged
istio-testing merged 2 commits intoistio:masterfrom
gargnupur:nup_http_meta2
Dec 19, 2019
Merged

Add test for Http Metadata exchange #2567
istio-testing merged 2 commits intoistio:masterfrom
gargnupur:nup_http_meta2

Conversation

@gargnupur
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
Add test for Http Metadata exchange using network metadata exchange filter and prometheus stats filter.
This PR also, cleans up envoy config for http requests and makes it more easy to use and understand.

It currently depends on envoyproxy/envoy-wasm#310 to work properly

@gargnupur gargnupur requested a review from a team November 14, 2019 22:16
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Nov 14, 2019
@istio-testing istio-testing added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Nov 14, 2019
@@ -257,7 +257,7 @@ void MetadataExchangeFilter::tryReadProxyData(Buffer::Instance& data) {
setFilterState(config_->filter_direction_ == FilterDirection::Downstream
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@istio-testing istio-testing added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Nov 14, 2019
@istio-testing istio-testing added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 20, 2019
@istio-testing istio-testing added needs-rebase Indicates a PR needs to be rebased before being merged size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. needs-rebase Indicates a PR needs to be rebased before being merged labels Dec 4, 2019
Cleanup ports

Format http server

Add ability to add client and server yaml files that  test finally uses

Add more validation for source and destination app in http test

Upgrade to latest envoy-wasm

Fix failures in tests

Fix lint errors

Fix lint errors

Fix tests

Fix tests
"pod-template-hash": "84975bc778"
},
"ISTIO_PROXY_SHA": "istio-proxy:47e4559b8e4f0d516c0d17b233d127a3deb3d7ce",
"NAME": "ratings-v1-84975bc778-pxz2w",`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please don't embed config in sources. They are difficult to upgrade when the config needs to be changed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed.. there is a lot of common config in tests.. will update them all together into templates...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started dumping them into https://github.com/istio/proxy/tree/master/testdata. You just need to assemble them as necessary.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do that, in a cleanup cl following this PR

Copy link
Copy Markdown
Contributor

@kyessenov kyessenov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! We can clean up / de-duplicate the test artifacts later.

@gargnupur
Copy link
Copy Markdown
Contributor Author

/test test-tsan_proxy

@istio-testing istio-testing merged commit 813bba1 into istio:master Dec 19, 2019
@gargnupur gargnupur deleted the nup_http_meta2 branch January 7, 2020 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants