Skip to content

Commit 5033c7e

Browse files
committed
Fix failing integration tests
1 parent 9d9deff commit 5033c7e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/Tests/Framework/EndpointTests/Bootstrappers/Seeder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private void CreateIndicesAndSeedIndexData()
8989

9090
private void CreateIndexTemplate()
9191
{
92-
var putTemplateResult = this.Client.PutIndexTemplate(new PutIndexTemplateRequest("nest_test")
92+
var putTemplateResult = this.Client.PutIndexTemplate(new PutIndexTemplateRequest("nest_tests")
9393
{
9494
Template = "*",
9595
Settings = this.IndexSettings

src/Tests/Indices/AliasManagement/GetAlias/GetAliasApiTests.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,18 @@ protected override LazyResponses ClientUsage() => Calls(
2626
protected override bool ExpectIsValid => true;
2727
protected override int ExpectStatusCode => 200;
2828
protected override HttpMethod HttpMethod => HttpMethod.GET;
29-
protected override string UrlPath => $"/_alias/alias%2Cx%2Cy";
29+
protected override string UrlPath => $"_all/_alias/alias%2Cx%2Cy";
3030
protected override void ExpectResponse(IGetAliasResponse response)
3131
{
3232
response.Indices.Should().NotBeNull();
3333
}
3434
protected override bool SupportsDeserialization => false;
3535

3636
protected override Func<GetAliasDescriptor, IGetAliasRequest> Fluent => d=>d
37+
.AllIndices()
3738
.Name(Names)
3839
;
39-
protected override GetAliasRequest Initializer => new GetAliasRequest(Names);
40+
protected override GetAliasRequest Initializer => new GetAliasRequest(Nest.Indices.All, Names);
4041
}
4142

4243
public class GetAliasNotFoundApiTests : ApiIntegrationTestBase<ReadOnlyCluster, IGetAliasResponse, IGetAliasRequest, GetAliasDescriptor, GetAliasRequest>
@@ -53,7 +54,7 @@ protected override LazyResponses ClientUsage() => Calls(
5354
);
5455

5556
protected override bool ExpectIsValid => false;
56-
protected override int ExpectStatusCode => 200;
57+
protected override int ExpectStatusCode => 404;
5758
protected override HttpMethod HttpMethod => HttpMethod.GET;
5859
protected override string UrlPath => $"/_alias/bad-alias";
5960
protected override bool SupportsDeserialization => false;

src/Tests/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# mode either u (unit test), i (integration test) or m (mixed mode)
2-
mode: u
2+
mode: m
33
# the elasticsearch version that should be started
44
# Can be a snapshot version of sonatype or "latest" to get the latest snapshot of sonatype
55
elasticsearch_version: 5.2.0

0 commit comments

Comments
 (0)