-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: flux error properly read by cloud #22348
Conversation
tests/server_test.go
Outdated
assert.Equal(t, 403, resp.StatusCode) | ||
body, err = ioutil.ReadAll(resp.Body) | ||
require.NoError(t, err) | ||
assert.Equal(t, `{"error":"Flux query service disabled. Verify flux-enabled=true in the [http] section of the InfluxDB config."}` + "\n", string(body)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously this was plaintext instead of json
func (m *mockPlanner) FullyCompacted() (bool, string) { return false, "not compacted" } | ||
func (m *mockPlanner) ForceFull() {} | ||
func (m *mockPlanner) SetFileStore(fs *tsm1.FileStore) {} | ||
func (m *mockPlanner) PlanLevel(level int) ([]tsm1.CompactionGroup, int64) { return nil, 0 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like our formatting checks have some gaps...
1af8aac
to
97498d9
Compare
no_output_timeout: 1500s | ||
- run: | ||
name: Convert test output to junit | ||
command: go-junit-report < tests.log > junit/influxdb.junit.xml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix to always report which tests actually failed (especially when a test actually does fail).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Pretty subtle change to get it to output JSON
(cherry picked from commit 38de69c)
(cherry picked from commit 38de69c)
Closes #22327