Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Jul 16, 2024
1 parent 795f756 commit 4e99786
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tests/Tests/Cluster/ClusterState/ClusterStateUrlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ await GET("/_cluster/state")
.Request(c => c.Cluster.State(new ClusterStateRequest()))
.FluentAsync(c => c.Cluster.StateAsync())
.RequestAsync(c => c.Cluster.StateAsync(new ClusterStateRequest()))

;

var metrics = ClusterStateMetric.ClusterManagerNode | ClusterStateMetric.Metadata;
await GET("/_cluster/state/metadata%2Ccluster_manager_node")
await GET("/_cluster/state/cluster_manager_node%2Cmetadata")
.Fluent(c => c.Cluster.State(null, p => p.Metric(metrics)))
.Request(c => c.Cluster.State(new ClusterStateRequest(metrics)))
.FluentAsync(c => c.Cluster.StateAsync(null, p => p.Metric(metrics)))
Expand Down
4 changes: 2 additions & 2 deletions tests/Tests/Cluster/NodesInfo/NodesInfoUrlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ await GET("/_nodes/foo")
;

var metrics = NodesInfoMetric.Http | NodesInfoMetric.Jvm;
await GET("/_nodes/jvm%2Chttp")
await GET("/_nodes/http%2Cjvm")
.Fluent(c => c.Nodes.Info(p => p.Metric(metrics)))
.Request(c => c.Nodes.Info(new NodesInfoRequest(metrics)))
.FluentAsync(c => c.Nodes.InfoAsync(p => p.Metric(metrics)))
.RequestAsync(c => c.Nodes.InfoAsync(new NodesInfoRequest(metrics)))
;

await GET("/_nodes/foo/jvm%2Chttp")
await GET("/_nodes/foo/http%2Cjvm")
.Fluent(c => c.Nodes.Info(n => n.NodeId("foo").Metric(metrics)))
.Request(c => c.Nodes.Info(new NodesInfoRequest("foo", metrics)))
.FluentAsync(c => c.Nodes.InfoAsync(n => n.NodeId("foo").Metric(metrics)))
Expand Down
4 changes: 2 additions & 2 deletions tests/Tests/Cluster/NodesStats/NodesStatsUrlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ await GET("/_nodes/foo/stats/fs%2Cjvm")
;

var indexMetrics = NodesStatsIndexMetric.Fielddata | NodesStatsIndexMetric.Merge;
await GET("/_nodes/stats/fs%2Cjvm/merge%2Cfielddata")
await GET("/_nodes/stats/fs%2Cjvm/fielddata%2Cmerge")
.Fluent(c => c.Nodes.Stats(p => p.Metric(metrics).IndexMetric(indexMetrics)))
.Request(c => c.Nodes.Stats(new NodesStatsRequest(metrics, indexMetrics)))
.FluentAsync(c => c.Nodes.StatsAsync(p => p.Metric(metrics).IndexMetric(indexMetrics)))
.RequestAsync(c => c.Nodes.StatsAsync(new NodesStatsRequest(metrics, indexMetrics)))
;

await GET("/_nodes/foo/stats/fs%2Cjvm/merge%2Cfielddata")
await GET("/_nodes/foo/stats/fs%2Cjvm/fielddata%2Cmerge")
.Fluent(c => c.Nodes.Stats(p => p.NodeId("foo").Metric(metrics).IndexMetric(indexMetrics)))
.Request(c => c.Nodes.Stats(new NodesStatsRequest("foo", metrics, indexMetrics)))
.FluentAsync(c => c.Nodes.StatsAsync(p => p.NodeId("foo").Metric(metrics).IndexMetric(indexMetrics)))
Expand Down

0 comments on commit 4e99786

Please sign in to comment.