Skip to content

Commit

Permalink
Fix serverless api integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaStoeva committed Dec 18, 2024
1 parent 86baf7c commit 6feec4b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,12 @@ export default function ({ getService }: FtrProviderContext) {

it('updates the data retention of a DS', async () => {
const { body, status } = await supertestWithoutAuth
.put(`${API_BASE_PATH}/data_streams/${testDataStreamName}/data_retention`)
.put(`${API_BASE_PATH}/data_streams/data_retention`)
.set(internalReqHeader)
.set(roleAuthc.apiKeyHeader)
.send({
dataRetention: '7d',
dataStreams: [testDataStreamName],
});
svlCommonApi.assertResponseStatusCode(200, status, body);

Expand All @@ -148,10 +149,12 @@ export default function ({ getService }: FtrProviderContext) {

it('sets data retention to infinite', async () => {
const { body, status } = await supertestWithoutAuth
.put(`${API_BASE_PATH}/data_streams/${testDataStreamName}/data_retention`)
.put(`${API_BASE_PATH}/data_streams/data_retention`)
.set(internalReqHeader)
.set(roleAuthc.apiKeyHeader)
.send({});
.send({
dataStreams: [testDataStreamName],
});
svlCommonApi.assertResponseStatusCode(200, status, body);

// Providing an infinite retention might not be allowed for a given project,
Expand Down

0 comments on commit 6feec4b

Please sign in to comment.