Skip to content

Commit

Permalink
Add more integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Vargas <ruben.vp8510@gmail.com>
  • Loading branch information
rubenvp8510 committed Dec 14, 2023
1 parent 39f270a commit acb8c90
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions integration/e2e/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,14 @@ func TestSearchTagValuesV2(t *testing.T) {

// Assert tags on storage backend
now := time.Now()
startOfDay := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, now.Location())
endOfDay := time.Date(now.Year(), now.Month(), now.Day(), 23, 59, 59, 999999999, now.Location())
start := now.Add(-2 * time.Hour)
end := now.Add(2 * time.Hour)

for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
callSearchTagValuesAndAssert(t, tempo, tc.tagName, tc.query, searchTagValuesResponse{}, startOfDay.Unix(), endOfDay.Unix())
callSearchTagValuesAndAssert(t, tempo, tc.tagName, tc.query, searchTagValuesResponse{}, start.Unix(), end.Unix())
})
}

}

func callSearchTagValuesAndAssert(t *testing.T, svc *e2e.HTTPService, tagName, query string, expected searchTagValuesResponse, start, end int64) {
Expand Down

0 comments on commit acb8c90

Please sign in to comment.