func TestServer_HTTPResponseVersion(t *testing.T) {
}
Ensure that HTTP responses include the InfluxDB version.
package tests
import (
	"bytes"
	"encoding/json"
	"flag"
	"fmt"
	"math/rand"
	"net/http"
	"net/url"
	"os"
	"reflect"
	"strconv"
	"strings"
	"sync"
	"testing"
	"time"
	"github.com/gogo/protobuf/proto"
	"github.com/golang/snappy"
	"github.com/google/go-cmp/cmp"
	"github.com/influxdata/influxdb/coordinator"
	"github.com/influxdata/influxdb/models"
	"github.com/influxdata/influxdb/prometheus/remote"
	"github.com/influxdata/influxdb/tsdb"
)
var benchServer Server
func TestMain(m *testing.M) {
	flag.BoolVar(&verboseServerLogs, "vv", false, "Turn on very verbose server logging.")
	flag.BoolVar(&cleanupData, "clean", true, "Clean up test data on disk.")
	flag.Int64Var(&seed, "seed", 0, "Set specific seed controlling randomness.")
	flag.Parse()
	if seed == 0 {
		seed = time.Now().UnixNano()
	}
	rand.Seed(seed)
	var r int
	for _, indexType = range tsdb.RegisteredIndexes() {
		c := NewConfig()
		c.Retention.Enabled = false
		c.Monitor.StoreEnabled = false
		c.Meta.LoggingEnabled = false
		c.Subscriber.Enabled = false
		c.ContinuousQuery.Enabled = false
		c.Data.MaxValuesPerTag = 1000000  
		c.Data.Index = indexType
		if thisr := m.Run(); r == 0 {
			r = thisr  
		}
		if testing.Verbose() {
			fmt.Println()
		}
		os.Exit(r)
	}
	os.Exit(r)
}