From 1f75dca758ebad94842ba4c9a80688610026a1aa Mon Sep 17 00:00:00 2001 From: Martin Matusiak Date: Thu, 11 Jun 2020 08:01:32 +1000 Subject: [PATCH] health_check filter & README: fix typos (#11513) Signed-off-by: Martin Matusiak --- generated_api_shadow/README.md | 6 +++--- .../filters/http/health_check/health_check_test.cc | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/generated_api_shadow/README.md b/generated_api_shadow/README.md index 23442d8c1752..04633c218a7c 100644 --- a/generated_api_shadow/README.md +++ b/generated_api_shadow/README.md @@ -1,6 +1,6 @@ This directory is for generated Envoy internal artifacts (via `proto_format`). -Do not hand edit any file under `envoy/`. This shadow API may only be used be -used in the Envoy source tree. +Do not hand edit any file under `envoy/`. This shadow API may only be used in +the Envoy source tree. -The `bazel/` tree is an symlink back to the official API Bazel rules. +The `bazel/` tree is a symlink back to the official API Bazel rules. diff --git a/test/extensions/filters/http/health_check/health_check_test.cc b/test/extensions/filters/http/health_check/health_check_test.cc index 6b1063bf5c82..16393b403359 100644 --- a/test/extensions/filters/http/health_check/health_check_test.cc +++ b/test/extensions/filters/http/health_check/health_check_test.cc @@ -249,9 +249,9 @@ TEST_F(HealthCheckFilterPassThroughTest, Ok) { EXPECT_CALL(callbacks_, encodeHeaders_(_, _)).Times(0); EXPECT_EQ(Http::FilterHeadersStatus::Continue, filter_->decodeHeaders(request_headers_, false)); - Http::TestResponseHeaderMapImpl service_hc_respnose{{":status", "200"}}; - EXPECT_EQ(Http::FilterHeadersStatus::Continue, filter_->encodeHeaders(service_hc_respnose, true)); - EXPECT_EQ("cluster_name", service_hc_respnose.getEnvoyUpstreamHealthCheckedClusterValue()); + Http::TestResponseHeaderMapImpl service_hc_response{{":status", "200"}}; + EXPECT_EQ(Http::FilterHeadersStatus::Continue, filter_->encodeHeaders(service_hc_response, true)); + EXPECT_EQ("cluster_name", service_hc_response.getEnvoyUpstreamHealthCheckedClusterValue()); } TEST_F(HealthCheckFilterPassThroughTest, OkWithContinue) { @@ -268,9 +268,9 @@ TEST_F(HealthCheckFilterPassThroughTest, OkWithContinue) { filter_->encode100ContinueHeaders(continue_response)); Http::MetadataMap metadata_map{{"metadata", "metadata"}}; EXPECT_EQ(Http::FilterMetadataStatus::Continue, filter_->encodeMetadata(metadata_map)); - Http::TestResponseHeaderMapImpl service_hc_respnose{{":status", "200"}}; - EXPECT_EQ(Http::FilterHeadersStatus::Continue, filter_->encodeHeaders(service_hc_respnose, true)); - EXPECT_EQ("cluster_name", service_hc_respnose.getEnvoyUpstreamHealthCheckedClusterValue()); + Http::TestResponseHeaderMapImpl service_hc_response{{":status", "200"}}; + EXPECT_EQ(Http::FilterHeadersStatus::Continue, filter_->encodeHeaders(service_hc_response, true)); + EXPECT_EQ("cluster_name", service_hc_response.getEnvoyUpstreamHealthCheckedClusterValue()); } TEST_F(HealthCheckFilterPassThroughTest, Failed) {