xds_end2end_test: make each individual test start the number of backends it needs (#29271)

* move some code around

* remove num_backends parameter from XdsEnd2endTest

* remove use_xds_enabled_server param from XdsEnd2endTest

* remove xds_resource_does_not_exist_timeout_ms param from XdsEnd2endTest

* remove client_load_reporting_interval_seconds param from XdsEnd2endTest

* start moving CreateAndStartBackends() into individual tests

* finish moving CreateAndStartBackends() into individual tests

* remove unused variable

* fix test flake

* clang-tidy

* clang-format
pull/29299/head
Mark D. Roth 3 years ago committed by GitHub
parent 7ea775f607
commit 217ab2a793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1930
      test/cpp/end2end/xds/xds_end2end_test.cc
  2. 3
      test/cpp/end2end/xds/xds_server.h

File diff suppressed because it is too large Load Diff

@ -738,6 +738,7 @@ class LrsServiceImpl : public std::enable_shared_from_this<LrsServiceImpl> {
template <class ClusterStats>
explicit ClientStats(const ClusterStats& cluster_stats)
: cluster_name_(cluster_stats.cluster_name()),
eds_service_name_(cluster_stats.cluster_service_name()),
total_dropped_requests_(cluster_stats.total_dropped_requests()) {
for (const auto& input_locality_stats :
cluster_stats.upstream_locality_stats()) {
@ -752,6 +753,7 @@ class LrsServiceImpl : public std::enable_shared_from_this<LrsServiceImpl> {
}
const std::string& cluster_name() const { return cluster_name_; }
const std::string& eds_service_name() const { return eds_service_name_; }
const std::map<std::string, LocalityStats>& locality_stats() const {
return locality_stats_;
@ -770,6 +772,7 @@ class LrsServiceImpl : public std::enable_shared_from_this<LrsServiceImpl> {
private:
std::string cluster_name_;
std::string eds_service_name_;
std::map<std::string, LocalityStats> locality_stats_;
uint64_t total_dropped_requests_ = 0;
std::map<std::string, uint64_t> dropped_requests_;

Loading…
Cancel
Save