Page MenuHomePhabricator

[services] Add teardown script
ClosedPublic

Authored by karol on Jun 15 2022, 3:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 6, 8:45 PM
Unknown Object (File)
Mon, Jul 1, 3:19 PM
Unknown Object (File)
Sun, Jun 30, 5:57 AM
Unknown Object (File)
Sat, Jun 29, 7:38 PM
Unknown Object (File)
Sat, Jun 29, 5:27 PM
Unknown Object (File)
Wed, Jun 26, 10:23 AM
Unknown Object (File)
Wed, Jun 26, 8:55 AM
Unknown Object (File)
Wed, Jun 26, 7:34 AM

Details

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

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

services/package.json
22 ↗(On Diff #13515)

Since this deletes volumes, I wonder if we should have stronger language... eg. delete-local-cloud or something

ashoat requested changes to this revision.Jun 15 2022, 5:55 PM

Just a rename request, feel free to push back

This revision now requires changes to proceed.Jun 15 2022, 5:55 PM
services/package.json
22 ↗(On Diff #13515)

Doesn't matter to me

karol edited the summary of this revision. (Show Details)

rename

This revision is now accepted and ready to land.Jun 20 2022, 10:49 AM
This revision was landed with ongoing or failed builds.Jul 8 2022, 2:30 AM
This revision was automatically updated to reflect the committed changes.