Skip to content

Commit

Permalink
jaegertracing#2048[WIP] - Skip TestIndexRollover_FailIfILMNotPresent …
Browse files Browse the repository at this point in the history
…test for es versions less than 7

Signed-off-by: santosh <[email protected]>
  • Loading branch information
bhiravabhatla committed Jan 25, 2021
1 parent aacf4c9 commit 77a8a17
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions plugin/storage/integration/es_index_rollover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ const (
func TestIndexRollover_FailIfILMNotPresent(t *testing.T) {
client, err := createESClient()
require.NoError(t, err)
esVersion, err := getVersion(client)
require.NoError(t, err)
if esVersion != 7 {
t.Skip("Integration test - " + t.Name() + " against ElasticSearch skipped for ES version " + fmt.Sprint(esVersion))
}
// make sure ES is clean
cleanES(t, client, "jaeger-ilm-policy")
envVars := []string{"ES_USE_ILM=true"}
Expand All @@ -51,8 +56,8 @@ func TestIndexRollover_CreateIndicesWithILM(t *testing.T) {
client, err := createESClient()
require.NoError(t, err)

esVersion, ev := getVersion(client)
require.NoError(t, ev)
esVersion, err := getVersion(client)
require.NoError(t, err)

if esVersion != 7 {
er := runEsRollover("init", []string{"ES_USE_ILM=true"})
Expand Down

0 comments on commit 77a8a17

Please sign in to comment.