Page MenuHomePhabricator

[services] Tests - Blob - Add test logic
ClosedPublic

Authored by karol on Jun 15 2022, 3:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 6, 2:07 AM
Unknown Object (File)
Wed, Jul 3, 9:01 AM
Unknown Object (File)
Sat, Jun 29, 5:48 PM
Unknown Object (File)
Sat, Jun 29, 5:22 AM
Unknown Object (File)
Fri, Jun 28, 12:21 AM
Unknown Object (File)
Wed, Jun 26, 7:27 PM
Unknown Object (File)
Wed, Jun 26, 12:06 PM
Unknown Object (File)
Wed, Jun 26, 7:34 AM

Details

Summary

Depends on D4276

Adding test logic for the blob test. This code invoked methods introduced in D4274 D4275 and D4276.

Test Plan
cd services
yarn run-integration-tests blob

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

karol edited the test plan for this revision. (Show Details)
karol added reviewers: tomek, varun.
tomek added inline comments.
services/commtest/tests/blob_test.rs
42–52 ↗(On Diff #13520)

What do you think about using enumerate?

55–57 ↗(On Diff #13520)

Shouldn't we check if the items were removed?

varun requested changes to this revision.Jun 21 2022, 8:40 PM
varun added inline comments.
services/commtest/tests/blob_test.rs
58 ↗(On Diff #13520)

we should have an assert here

This revision now requires changes to proceed.Jun 21 2022, 8:40 PM
services/commtest/tests/blob_test.rs
20–34 ↗(On Diff #13520)

use byte size lib like in the backup test

42–52 ↗(On Diff #13520)

looks good! THX

46 ↗(On Diff #13520)

assert_eq

55–57 ↗(On Diff #13520)

I think yes, we can run get again

58 ↗(On Diff #13520)

What assert? Can you be more specific? I don't understand.

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

address feedback

varun added inline comments.
services/commtest/tests/blob_test.rs
58 ↗(On Diff #13520)

nvm. i assume that you're using asserts in the remove::run function to check that the state matches the expectation

This revision is now accepted and ready to land.Jun 29 2022, 3:23 PM
services/commtest/tests/blob_test.rs
58 ↗(On Diff #13520)

sorry, ignore my last comment. you added the assert i was initially looking for to check that the items were removed successfully

services/commtest/tests/blob_test.rs
25 ↗(On Diff #14032)

Why are these lines so long? Don't we have Rust configured to limit line length to 80 chars?

run fmt

services/commtest/tests/blob_test.rs
25 ↗(On Diff #14032)

something is wrong with the hooks/formatter

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.