leichter / cwrx

(Old) Cinema6 API
0 stars 0 forks source link

Fix cleanTestAdverts script to use queryAll() functionality #964

Closed leichter closed 8 years ago

leichter commented 8 years ago

This script basically searches for any advertisers in our Beeswax sandbox whose name matches various e2e naming patterns, and deletes them + everything they own. Normally the e2e tests should clean up after themselves, but when failures happen, some of these test advertisers can accrue.

Previously this script used the existing query() method on the beeswax client, which would only get the 50 oldest advertisers, and so some advertisers wouldn't get deleted. This is fixed using queryAll().