Skip to content

Implement Forget Follower API #3939

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 16, 2019
Merged
Prev Previous commit
Next Next commit
Add unit tests
  • Loading branch information
codebrain committed Jul 12, 2019
commit a9af1bd5d4055e08e46ce9c235dbdea972d31166
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System.Threading.Tasks;
using Elastic.Xunit.XunitPlumbing;
using Nest;
using Tests.Framework.EndpointTests;

namespace Tests.XPack.CrossClusterReplication.Follow.ForgetFollowerIndex
{
public class ForgetFollowerIndexUrlTests : UrlTestsBase
{
[U] public override async Task Urls()
{
var name = "x";
await UrlTester.POST($"/{name}/_ccr/forget_follower")
.Fluent(c => c.CrossClusterReplication.ForgetFollowerIndex(name, d => d))
.Request(c => c.CrossClusterReplication.ForgetFollowerIndex(new ForgetFollowerIndexRequest(name)))
.FluentAsync(c => c.CrossClusterReplication.ForgetFollowerIndexAsync(name, d => d))
.RequestAsync(c => c.CrossClusterReplication.ForgetFollowerIndexAsync(new ForgetFollowerIndexRequest(name)));

}
}
}