Skip to content

Commit

Permalink
updated quest test (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsinhaparseable authored Apr 23, 2024
1 parent 24b62bd commit 44a13d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ func TestSmokeLoadWithK6Stream(t *testing.T) {
}

func TestSmokeSetAlert(t *testing.T) {
CreateStream(t, NewGlob.QueryClient, NewGlob.Stream)
if NewGlob.IngestorUrl.String() == "" {
CreateStream(t, NewGlob.QueryClient, NewGlob.Stream)
RunFlog(t, NewGlob.QueryClient, NewGlob.Stream)
req, _ := NewGlob.QueryClient.NewRequest("PUT", "logstream/"+NewGlob.Stream+"/alert", strings.NewReader(AlertBody))
response, err := NewGlob.QueryClient.Do(req)
Expand All @@ -282,8 +282,8 @@ func TestSmokeGetAlert(t *testing.T) {
body := readAsString(response.Body)
require.Equalf(t, 200, response.StatusCode, "Server returned http code: %s and response: %s", response.Status, body)
require.JSONEq(t, AlertBody, body, "Get alert response doesn't match with Alert config returned")
DeleteStream(t, NewGlob.QueryClient, NewGlob.Stream)
}
DeleteStream(t, NewGlob.QueryClient, NewGlob.Stream)

}

Expand Down

0 comments on commit 44a13d6

Please sign in to comment.