Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated quest test #60

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading