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().
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 usingqueryAll()
.