Skip to content

Commit 6042ddc

Browse files
committed
type exists api tests was still using multiple types
1 parent 0d098d0 commit 6042ddc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Tests/Indices/IndexManagement/TypesExists/TypeExistsApiTests.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,28 @@
1010

1111
namespace Tests.Indices.IndexManagement.TypesExists
1212
{
13-
public class TypeExistsApiTests : ApiIntegrationTestBase<ReadOnlyCluster, IExistsResponse, ITypeExistsRequest, TypeExistsDescriptor, TypeExistsRequest>
13+
public class TypeExistsApiTests
14+
: ApiIntegrationTestBase<ReadOnlyCluster, IExistsResponse, ITypeExistsRequest, TypeExistsDescriptor, TypeExistsRequest>
1415
{
1516
public TypeExistsApiTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage) { }
1617
protected override LazyResponses ClientUsage() => Calls(
17-
fluent: (client, f) => client.TypeExists(Index<Project>(), Type<Project>().And<CommitActivity>(), f),
18-
fluentAsync: (client, f) => client.TypeExistsAsync(Index<Project>(), Type<Project>().And<CommitActivity>(), f),
18+
fluent: (client, f) => client.TypeExists(Index<Project>(), Type<Project>(), f),
19+
fluentAsync: (client, f) => client.TypeExistsAsync(Index<Project>(), Type<Project>(), f),
1920
request: (client, r) => client.TypeExists(r),
2021
requestAsync: (client, r) => client.TypeExistsAsync(r)
2122
);
2223

2324
protected override bool ExpectIsValid => true;
2425
protected override int ExpectStatusCode => 200;
2526
protected override HttpMethod HttpMethod => HttpMethod.HEAD;
26-
protected override string UrlPath => $"/project/_mapping/project%2Ccommits?ignore_unavailable=true";
27+
protected override string UrlPath => $"/project/_mapping/project?ignore_unavailable=true";
2728

28-
protected override TypeExistsDescriptor NewDescriptor() => new TypeExistsDescriptor(Index<Project>(), Type<Project>().And<CommitActivity>());
29+
protected override TypeExistsDescriptor NewDescriptor() => new TypeExistsDescriptor(Index<Project>(), Type<Project>());
2930

3031
protected override Func<TypeExistsDescriptor, ITypeExistsRequest> Fluent => d => d
3132
.IgnoreUnavailable();
3233

33-
protected override TypeExistsRequest Initializer => new TypeExistsRequest(Index<Project>(), Type<Project>().And<CommitActivity>())
34+
protected override TypeExistsRequest Initializer => new TypeExistsRequest(Index<Project>(), Type<Project>())
3435
{
3536
IgnoreUnavailable = true
3637
};

0 commit comments

Comments
 (0)