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

fix for Alerts test for standalone deployments #59

Merged
merged 1 commit into from
Apr 23, 2024
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
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
Loading