demig0d
demig0d

Reputation: 1181

Is there a way to truncate data for a getstream app via the API?

This is more for automated testing purposes. I was wondering if there was a way to truncate data programmatically (to be run in a continuous integration environment).

I am trying to setup a scenario where I create a user, add a bunch of activities to the feed, but then reset everything back to zero after the tests are done.

Upvotes: 2

Views: 111

Answers (1)

Tommaso Barbugli
Tommaso Barbugli

Reputation: 12031

The current version of Stream API (v1.0) do not allow you to perform administrative actions such as feed truncation. A very common approach to test Stream integration is to stub API requests with the expected response.

Upvotes: 1

Related Questions