/// <summary> Disables http on the nodes with the passed port numbers </summary>
 public VirtualCluster HttpDisabled(params int[] ports)
 {
     foreach (var node in InternalNodes.Where(n => ports.Contains(n.Uri.Port)))
     {
         var currentFeatures = node.Features.Count == 0 ? ElasticsearchNodeFeatures.Default : node.Features;
         node.Features = currentFeatures.Except(new[] { ElasticsearchNodeFeatures.HttpEnabled }).ToList().AsReadOnly();
     }
     return(this);
 }
 /// <summary> Add a setting to the nodes with the passed port numbers </summary>
 public ElasticsearchVirtualCluster HasSetting(string key, string value, params int[] ports)
 {
     foreach (var node in InternalNodes.Where(n => ports.Contains(n.Uri.Port)))
     {
         node.Settings = new ReadOnlyDictionary <string, object>(new Dictionary <string, object> {
             { key, value }
         });
     }
     return(this);
 }