Skip to content

Commit

Permalink
fix e2e tests es index cleaner namespace issue
Browse files Browse the repository at this point in the history
Signed-off-by: Jeeva Kandasamy <jkandasa@gmail.com>
  • Loading branch information
jkandasa committed Dec 11, 2020
1 parent 7d8cab9 commit cf08010
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/e2e/elasticsearch_index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ func TestElasticSearchIndexSuite(t *testing.T) {
indexSuite := new(ElasticSearchIndexTestSuite)
// update default values
indexSuite.esIndexCleanerHistoryDays = 45
// storage namespace
if skipESExternal {
indexSuite.esNamespace = namespace
} else {
indexSuite.esNamespace = storageNamespace
}
suite.Run(t, indexSuite)
}

Expand All @@ -75,6 +69,12 @@ func (suite *ElasticSearchIndexTestSuite) TearDownSuite() {

func (suite *ElasticSearchIndexTestSuite) SetupTest() {
t = suite.T()
// update storage namespace
if skipESExternal {
suite.esNamespace = namespace
} else {
suite.esNamespace = storageNamespace
}
// delete indices from external elasticsearch node
if !skipESExternal {
DeleteEsIndices(suite.esNamespace)
Expand Down

0 comments on commit cf08010

Please sign in to comment.