Skip to content

Commit

Permalink
fix for Alerts test for standalone deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsinhaparseable committed Apr 23, 2024
1 parent a5bd273 commit a23860e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions quest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,20 +264,18 @@ func TestSmokeLoadWithK6Stream(t *testing.T) {
func TestSmokeSetAlert(t *testing.T) {
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)
require.NoErrorf(t, err, "Request failed: %s", err)
require.Equalf(t, 200, response.StatusCode, "Server returned http code: %s and response: %s", response.Status, readAsString(response.Body))
DeleteStream(t, NewGlob.QueryClient, NewGlob.Stream)

}

}

func TestSmokeGetAlert(t *testing.T) {
if NewGlob.IngestorUrl.String() == "" {
CreateStream(t, NewGlob.QueryClient, NewGlob.Stream)

req, _ := NewGlob.QueryClient.NewRequest("GET", "logstream/"+NewGlob.Stream+"/alert", nil)
response, err := NewGlob.QueryClient.Do(req)
require.NoErrorf(t, err, "Request failed: %s", err)
Expand Down

0 comments on commit a23860e

Please sign in to comment.