Skip to content

Commit

Permalink
get mapping on non existent index with ignore unavailable now returns…
Browse files Browse the repository at this point in the history
… a 404
  • Loading branch information
Mpdreamz committed Oct 10, 2017
1 parent d4644ba commit a5cf650
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ protected override LazyResponses ClientUsage() => Calls(
requestAsync: (client, r) => client.GetMappingAsync(r)
);

protected override bool ExpectIsValid => true;
protected override int ExpectStatusCode => 200;
protected override bool ExpectIsValid => false;
protected override int ExpectStatusCode => 404;
protected override HttpMethod HttpMethod => HttpMethod.GET;
protected override string UrlPath => $"/{_nonExistentIndex}/_mapping?ignore_unavailable=true";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected override LazyResponses ClientUsage() => Calls(
protected override int ExpectStatusCode => 200;
protected override bool ExpectIsValid => true;
protected override HttpMethod HttpMethod => HttpMethod.POST;

protected override void IntegrationSetup(IElasticClient client, CallUniqueValues values)
{
foreach (var index in values.Values)
Expand Down

0 comments on commit a5cf650

Please sign in to comment.