public void Can_Get_PingReport() { var report = _bucket.Ping(); Assert.IsNotNull(report); Assert.IsNotEmpty(report.Id); Assert.IsTrue(report.Services["kv"].Any(e => e.Type == ServiceType.KeyValue)); Assert.IsTrue(report.Services["view"].Any(e => e.Type == ServiceType.Views)); Assert.IsTrue(report.Services["n1ql"].Any(e => e.Type == ServiceType.Query)); if (_cluster.GetClusterVersion() >= new ClusterVersion(new Version(5, 0))) { Assert.IsTrue(report.Services["fts"].Any(e => e.Type == ServiceType.Search)); } if (_cluster.GetClusterVersion() >= new ClusterVersion(new Version(6, 0))) { Assert.IsFalse(report.Services.ContainsKey("cbas")); } }
public async Task <List <Post> > GetAll() { var pong = _postsBucket.Ping(); return(null); }