Page MenuHomePhabricator

[services] Add teardown script
ClosedPublic

Authored by karol on Jun 15 2022, 3:09 AM.
Tags
None
Referenced Files
F3492207: D4272.id14022.diff
Wed, Dec 18, 10:29 PM
F3492101: D4272.id13883.diff
Wed, Dec 18, 10:11 PM
Unknown Object (File)
Sat, Dec 7, 7:51 AM
Unknown Object (File)
Sun, Nov 24, 3:42 AM
Unknown Object (File)
Sun, Nov 24, 3:42 AM
Unknown Object (File)
Sun, Nov 24, 3:41 AM
Unknown Object (File)
Sat, Nov 23, 11:39 PM
Unknown Object (File)
Sat, Nov 23, 11:38 PM

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.