storj/satellite/audit
Kaloyan Raev e7f2ec7ddf satellite/audit: fix sanity check for verify-piece-hashes command
The VerifyPieceHashes method has a sanity check for the number pieces to
be removed from the pointer after the audit for verifying the piece
hashes.

This sanity check failed when we executed the command on the production
satellites because the Verify command removes Fails and PendingAudits
nodes from the audit report if piece_hashes_verified = false.

A new temporary UsedToVerifyPieceHashes flag is added to
audits.Verifier. It is set to true only by the verify-piece-hashes
command. If the flag is true then the Verify method will always include
Fails and PendingAudits nodes in the report.

Test case is added to cover this use case.

Change-Id: I2c7cb6b12029d52b2fc565365eee0826c3de6ee8
2020-10-07 17:17:48 +03:00
..
chore.go satellite/audit/queue: Separate audit queue into two separate structs. 2020-08-31 20:51:25 +00:00
containment_test.go {satellite/audit, private/testplanet}: remove ErrAlreadyExists, run 2 audit workers in testplanet 2020-06-30 18:00:07 +00:00
containment.go all: add missing dots 2020-08-11 17:50:01 +03:00
cryptosource.go all: fix dots 2020-07-16 14:58:28 +00:00
disqualification_test.go satellite/metainfo: use metabase.SegmentKey with metainfo.Service 2020-09-03 15:11:32 +00:00
integration_test.go satellite/audit/queue: Separate audit queue into two separate structs. 2020-08-31 20:51:25 +00:00
pathcollector_test.go satellite: fix string(int) conversions 2020-06-12 06:41:34 +00:00
pathcollector.go satellite/metainfo: replace ScopedPath with metabase.SegmentLocation 2020-09-04 10:06:52 +00:00
queue_test.go satellite/audit/queue: Separate audit queue into two separate structs. 2020-08-31 20:51:25 +00:00
queue.go satellite/audit/queue: Separate audit queue into two separate structs. 2020-08-31 20:51:25 +00:00
reporter_test.go satellite: replace references to Suspended with UnknownAuditSuspended 2020-06-23 14:19:22 +00:00
reporter.go all: fix dots 2020-07-16 14:58:28 +00:00
reservoir.go all: fix dots 2020-07-16 14:58:28 +00:00
reverify_test.go bump common and uplink to latest 2020-10-01 15:38:58 +00:00
verifier_test.go satellite/audit: fix sanity check for verify-piece-hashes command 2020-10-07 17:17:48 +03:00
verifier_unit_test.go satellite/audit: depend less on details of some error message 2020-06-05 10:39:05 -06:00
verifier.go satellite/audit: fix sanity check for verify-piece-hashes command 2020-10-07 17:17:48 +03:00
worker.go satellite/audit/queue: Separate audit queue into two separate structs. 2020-08-31 20:51:25 +00:00