|
10 | 10 |
|
11 | 11 | namespace Tests.Indices.IndexManagement.TypesExists |
12 | 12 | { |
13 | | - public class TypeExistsApiTests : ApiIntegrationTestBase<ReadOnlyCluster, IExistsResponse, ITypeExistsRequest, TypeExistsDescriptor, TypeExistsRequest> |
| 13 | + public class TypeExistsApiTests |
| 14 | + : ApiIntegrationTestBase<ReadOnlyCluster, IExistsResponse, ITypeExistsRequest, TypeExistsDescriptor, TypeExistsRequest> |
14 | 15 | { |
15 | 16 | public TypeExistsApiTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage) { } |
16 | 17 | 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), |
19 | 20 | request: (client, r) => client.TypeExists(r), |
20 | 21 | requestAsync: (client, r) => client.TypeExistsAsync(r) |
21 | 22 | ); |
22 | 23 |
|
23 | 24 | protected override bool ExpectIsValid => true; |
24 | 25 | protected override int ExpectStatusCode => 200; |
25 | 26 | 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"; |
27 | 28 |
|
28 | | - protected override TypeExistsDescriptor NewDescriptor() => new TypeExistsDescriptor(Index<Project>(), Type<Project>().And<CommitActivity>()); |
| 29 | + protected override TypeExistsDescriptor NewDescriptor() => new TypeExistsDescriptor(Index<Project>(), Type<Project>()); |
29 | 30 |
|
30 | 31 | protected override Func<TypeExistsDescriptor, ITypeExistsRequest> Fluent => d => d |
31 | 32 | .IgnoreUnavailable(); |
32 | 33 |
|
33 | | - protected override TypeExistsRequest Initializer => new TypeExistsRequest(Index<Project>(), Type<Project>().And<CommitActivity>()) |
| 34 | + protected override TypeExistsRequest Initializer => new TypeExistsRequest(Index<Project>(), Type<Project>()) |
34 | 35 | { |
35 | 36 | IgnoreUnavailable = true |
36 | 37 | }; |
|
0 commit comments