Skip to content

Commit

Permalink
Fix failing integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarz committed Jul 28, 2016
1 parent d257b3d commit dbecc8a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
using Nest;
using Tests.Framework.Integration;
using Tests.Framework.MockData;
using Tests.Framework;

namespace Tests.Aggregations.Metric.GeoCentroid
{
/**
* A metric aggregation that computes the weighted centroid from all coordinate values
* A metric aggregation that computes the weighted centroid from all coordinate values
* for a Geo-point datatype field.
*
*
* Be sure to read the Elasticsearch documentation on {ref_current}/search-aggregations-metrics-geocentroid-aggregation.html[Geo Centroid Aggregation]
*/
[SkipVersion("<2.1.0", "")]
public class GeoCentroidAggregationUsageTests : AggregationUsageTestBase
{
public GeoCentroidAggregationUsageTests(ReadOnlyCluster i, EndpointUsage usage) : base(i, usage) { }
Expand Down Expand Up @@ -55,11 +57,11 @@ protected override void ExpectResponse(ISearchResponse<Project> response)
}
}

/**
/**
*[float]
*[[geo-centroid-sub-aggregation]]
*== Geo Centroid Sub Aggregation
*
*[[geo-centroid-sub-aggregation]]
*== Geo Centroid Sub Aggregation
*
* The `geo_centroid` aggregation is more interesting when combined as a sub-aggregation to other bucket aggregations
*/
public class NestedGeoCentroidAggregationUsageTests : AggregationUsageTestBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected override void ExpectResponse(IGetMappingResponse response)

visitor.CountsShouldContainKeyAndCountBe("type", 1);
visitor.CountsShouldContainKeyAndCountBe("object", 2);
visitor.CountsShouldContainKeyAndCountBe("date", 4);
visitor.CountsShouldContainKeyAndCountBe("date", 5);
visitor.CountsShouldContainKeyAndCountBe("string", 17);
visitor.CountsShouldContainKeyAndCountBe("ip", 1);
visitor.CountsShouldContainKeyAndCountBe("number", 2);
Expand Down

0 comments on commit dbecc8a

Please sign in to comment.