Skip to content

test: convert ratelimit test configs to v2 YAML#6411

Merged
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
derekargueta:dereka/ratelimit-tests
Mar 28, 2019
Merged

test: convert ratelimit test configs to v2 YAML#6411
mattklein123 merged 1 commit intoenvoyproxy:masterfrom
derekargueta:dereka/ratelimit-tests

Conversation

@derekargueta
Copy link
Copy Markdown
Member

Description: Another PR towards #6362
Risk Level: Low - no functional change
Docs Changes: N/A
Release Notes: N/A

Signed-off-by: Derek Argueta dereka@pinterest.com

Signed-off-by: Derek Argueta <dereka@pinterest.com>
@mattklein123 mattklein123 self-assigned this Mar 28, 2019
Copy link
Copy Markdown
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.

Thank you!!

envoy::api::v2::route::RateLimit rate_limit;
auto json_object_ptr = Json::Factory::loadFromString(json_string);
Envoy::Config::RdsJson::translateRateLimit(*json_object_ptr, rate_limit);
MessageUtil::loadFromYaml(yaml_string, rate_limit);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not an issue for this PR, but there is a combined function that does both load and validate. Maybe use that in the future?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ah, loadFromYamlAndValidate. Noted.

@mattklein123 mattklein123 merged commit 792e70d into envoyproxy:master Mar 28, 2019
spenceral added a commit to spenceral/envoy that referenced this pull request Mar 29, 2019
* master:
  router: support prefix wildcards in virtual hosts domains (envoyproxy#6303)
  security: update distributor application example to include e-mail. (envoyproxy#6425)
  Examples: Update gen script of grpc example service (envoyproxy#6372)
  config: de-templatize source/common/config (envoyproxy#6391)
  docs: adds information about the Envoy tracer from Instana envoyproxy#6371 (envoyproxy#6416)
  test: convert ratelimit test configs to v2 YAML (envoyproxy#6411)
  include required python and go dependencies for grpc-bridge example (envoyproxy#6402)
  docs: more snapping fixes (envoyproxy#6404)
  runtime: switching from unordered_map to absl::flat_hash_map (envoyproxy#6389)
@derekargueta derekargueta deleted the dereka/ratelimit-tests branch March 31, 2019 02:43
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