forked from TrueCloudLab/frostfs-api-go
[#234] Update audit result struct definition
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
9986a4ecd1
commit
1c25c3904b
8 changed files with 196 additions and 50 deletions
|
@ -25,6 +25,10 @@ func TestDataAuditResult_StableMarshal(t *testing.T) {
|
|||
func generateDataAuditResult() *audit.DataAuditResult {
|
||||
a := new(audit.DataAuditResult)
|
||||
|
||||
v := new(refs.Version)
|
||||
v.SetMajor(2)
|
||||
v.SetMinor(1)
|
||||
|
||||
oid1 := new(refs.ObjectID)
|
||||
oid1.SetValue([]byte("Object ID 1"))
|
||||
|
||||
|
@ -34,9 +38,11 @@ func generateDataAuditResult() *audit.DataAuditResult {
|
|||
cid := new(refs.ContainerID)
|
||||
cid.SetValue([]byte("Container ID"))
|
||||
|
||||
a.SetVersion(v)
|
||||
a.SetAuditEpoch(13)
|
||||
a.SetContainerID(cid)
|
||||
a.SetPublicKey([]byte("Public key"))
|
||||
a.SetComplete(true)
|
||||
a.SetPassSG([]*refs.ObjectID{oid1, oid2})
|
||||
a.SetFailSG([]*refs.ObjectID{oid2, oid1})
|
||||
a.SetHit(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue