HomePhabricator
Diffusion Comm 21c2899f7001

[services] Add teardown script

Description

[services] Add teardown script

Summary:
Depends on D4271

Sometimes we may want to quickly delete all the containers and data connected to the local cloud. This may come useful when we do some tests that perform the following:

  • add
  • get
  • remove

and the test fails on get. The remove will never be performed, so next time we run this test, add may fail.

That's just one example, I decided this may be useful in other situations as well.

Test Plan:

cd services
yarn run-local-cloud

then do some operations on the local cloud and see the records in the dynamo db or objects on the s3

yarn tear-down-local-cloud
yarn run-local-cloud

see that the objects/records are gone

Reviewers: palys-swm, varun, ashoat

Reviewed By: palys-swm, ashoat

Subscribers: ashoat, palys-swm, Adrian, atul, yayabosh

Differential Revision: https://phab.comm.dev/D4272

Details

Provenance
karolAuthored on Jun 30 2022, 6:34 AM
Reviewer
tomek
Differential Revision
D4272: [services] Add teardown script
Parents
rCOMM25e5617d4616: [services] Blob - use terminated clb instead of done clb
Branches
Unknown
Tags
Unknown