Skip to content

test: fix typos and make cleanups in router tests#12094

Merged
junr03 merged 1 commit intoenvoyproxy:masterfrom
numerodix:router-typos-cleanups
Jul 18, 2020
Merged

test: fix typos and make cleanups in router tests#12094
junr03 merged 1 commit intoenvoyproxy:masterfrom
numerodix:router-typos-cleanups

Conversation

@numerodix
Copy link
Contributor

Commit Message: test: fix typos and make cleanups in router tests
Additional Description:

  • Fix typos in test names.
  • Remove unused 'name' attribute in yaml config snippets.
  • Rename string variable storing yaml config to 'yaml' for consistency.

Repeating the name of the test both in the variable name and in the yaml snippet has led to some copy/paste mistakes, so removing this unnecessary repetition will make these mistakes less likely to reoccur.

Risk Level: low
Testing: bazel test //test/...
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Martin Matusiak numerodix@gmail.com

- Fix typos in test names.
- Remove unused 'name' attribute in yaml config snippets.
- Rename string variable storing yaml config to 'yaml' for consistency.

Repeating the name of the test both in the variable name and in the yaml
snippet has led to some copy/paste mistakes, so removing this
unnecessary repetition will make these mistakes less likely to reoccur.

Signed-off-by: Martin Matusiak <numerodix@gmail.com>

TEST_F(RouteConfigurationV2, BadConnectConfig) {
const std::string yaml = R"EOF(
name: RetriableStatusCodes
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Example of the name property not matching the test name because it was copy/pasted from another test.

@junr03 junr03 assigned dio and junr03 and unassigned dio Jul 15, 2020
@junr03 junr03 merged commit b8996dd into envoyproxy:master Jul 18, 2020
KBaichoo pushed a commit to KBaichoo/envoy that referenced this pull request Jul 30, 2020
test: fix typos and make cleanups in router tests
Risk Level: low
Testing: bazel test //test/...
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Martin Matusiak <numerodix@gmail.com>
Signed-off-by: Kevin Baichoo <kbaichoo@google.com>
scheler pushed a commit to scheler/envoy that referenced this pull request Aug 4, 2020
test: fix typos and make cleanups in router tests
Risk Level: low
Testing: bazel test //test/...
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Martin Matusiak <numerodix@gmail.com>
Signed-off-by: scheler <santosh.cheler@appdynamics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants