Skip to content

test: add createApiForTest variant that doesnt require making a stats store.#5900

Merged
jmarantz merged 4 commits intoenvoyproxy:masterfrom
jmarantz:default-stats-store-for-api
Feb 11, 2019
Merged

test: add createApiForTest variant that doesnt require making a stats store.#5900
jmarantz merged 4 commits intoenvoyproxy:masterfrom
jmarantz:default-stats-store-for-api

Conversation

@jmarantz
Copy link
Contributor

Description: Many tests don't do anything with stats, but they have to create an IsolatedStatsStore. This just adds an entry-point to create a simple API without a stats-store. Switch tests to use this variant that don't otherwise do anything with stats.
Risk Level: low
Testing: //test/...
Docs Changes: n/a
Release Notes: n/a

…wise used.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
this in places where the test doesn't do anything else with stats.

Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
@jmarantz jmarantz requested a review from lizan as a code owner February 10, 2019 20:05
@jmarantz
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: mac (failed build)

🐱

Caused by: a #5900 (comment) was created by @jmarantz.

see: more, trace.

@jmarantz
Copy link
Contributor Author

/retest

@repokitteh-read-only
Copy link

🔨 rebuilding ci/circleci: mac (failed build)

🐱

Caused by: a #5900 (comment) was created by @jmarantz.

see: more, trace.

@mattklein123 mattklein123 self-assigned this Feb 11, 2019
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Awesome cleanup!

@jmarantz jmarantz merged commit 3fb856c into envoyproxy:master Feb 11, 2019
@jmarantz jmarantz deleted the default-stats-store-for-api branch February 11, 2019 02:37
fredlas pushed a commit to fredlas/envoy that referenced this pull request Mar 5, 2019
… store. (envoyproxy#5900)

Signed-off-by: Joshua Marantz <jmarantz@google.com>

* Add a way to create test APIs without specifying stats_store, and use
this in places where the test doesn't do anything else with stats.

Signed-off-by: Fred Douglas <fredlas@google.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.

2 participants