-
Notifications
You must be signed in to change notification settings - Fork 208
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
add http server test #134
base: main
Are you sure you want to change the base?
add http server test #134
Conversation
helight
commented
Sep 29, 2020
•
edited
Loading
edited
- Add an http server for testing http filter.
- Add config.yaml for testing http filter.
- Add readme for testing http filter instruction.
Signed-off-by: helight <[email protected]>
7e65013
to
2831af1
Compare
@lizan please help to review this 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.
Can we have some sort of test for this config? Like verify examples in envoy repo.
@@ -48,12 +48,40 @@ http_filters: | |||
- name: sample # before envoy.router because order matters! | |||
typed_config: | |||
"@type": type.googleapis.com/sample.Decoder | |||
key: via | |||
key: Via |
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.
nit: keep this lowercase
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.
This is just for testing this function
http_filter.cc
const LowerCaseString HttpSampleDecoderFilter::headerKey() const {
return LowerCaseString(config_->key());
}
Ok |
Signed-off-by: helight <[email protected]>
4d6287a
to
23a01a4
Compare
@lizan I add a startup.sh and verify.sh, please help to check |