Skip to content

Commit 72c65e4

Browse files
committed
Change GrokProcessorPattern to integration test
1 parent 444ec5c commit 72c65e4

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/Tests/Ingest/Processor/GrokProcessorPatternsApiTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
using Tests.Framework;
55
using Tests.Framework.Integration;
66
using Tests.Framework.ManagedElasticsearch.Clusters;
7-
using Xunit;
87

9-
namespace Tests.Ingest.GrokProcessorPatterns
8+
namespace Tests.Ingest.Processor
109
{
11-
public class GrokProcessorPatternsApiTests : ApiTestBase<ReadOnlyCluster, IGrokProcessorPatternsResponse, IGrokProcessorPatternsRequest, GrokProcessorPatternsDescriptor, GrokProcessorPatternsRequest>
10+
public class GrokProcessorPatternsApiTests : ApiIntegrationTestBase<ReadOnlyCluster, IGrokProcessorPatternsResponse, IGrokProcessorPatternsRequest, GrokProcessorPatternsDescriptor, GrokProcessorPatternsRequest>
1211
{
1312
public GrokProcessorPatternsApiTests(ReadOnlyCluster cluster, EndpointUsage usage) : base(cluster, usage) { }
1413

@@ -20,8 +19,9 @@ protected override LazyResponses ClientUsage() => Calls(
2019
);
2120

2221
protected override HttpMethod HttpMethod => HttpMethod.GET;
23-
2422
protected override string UrlPath => $"/_ingest/processor/grok";
23+
protected override int ExpectStatusCode => 200;
24+
protected override bool ExpectIsValid => true;
2525

2626
protected override Func<GrokProcessorPatternsDescriptor, IGrokProcessorPatternsRequest> Fluent => d => d;
2727

src/Tests/Ingest/Processor/GrokProcessorPatternsUnitTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
using System.Collections.Generic;
2-
using System.Linq;
32
using FluentAssertions;
4-
using Nest;
53
using Tests.Framework;
64

7-
namespace Tests.XPack.GrokProcessorPatterns
5+
namespace Tests.Ingest.Processor
86
{
97
public class GrokProcessorPatternsUnitTests
108
{

0 commit comments

Comments
 (0)