Skip to content

Commit 48c16d3

Browse files
committed
test(integration): update gossiped ring flush call to use POST
The /flush endpoint now only accepts POST (changed in feat #3243). Update the integration test to call e2e.PostRequest instead of e2e.GetRequest so the test stays consistent with the enforced method restriction. Signed-off-by: Goutham Annem <gouthemannem@gmail.com>
1 parent 084c9e9 commit 48c16d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

integration/getting_started_with_gossiped_ring_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func TestGettingStartedWithGossipedRing(t *testing.T) {
119119

120120
// Flush blocks from ingesters to the store.
121121
for _, instance := range []*e2ecortex.CortexService{cortex1, cortex2} {
122-
res, err = e2e.GetRequest("http://" + instance.HTTPEndpoint() + "/flush")
122+
res, err = e2e.PostRequest("http://" + instance.HTTPEndpoint() + "/flush")
123123
require.NoError(t, err)
124124
require.Equal(t, 204, res.StatusCode)
125125
}

0 commit comments

Comments
 (0)