[#283] v2/container/test: Add setting of new fields in generators

Set signature and session token in `GenerateGetResponseBody`. Set session
token in `GenerateGetExtendedACLResponseBody`.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-24 21:20:23 +03:00 committed by Alex Vanin
parent a4cf8df829
commit d8f85e80c9

View file

@ -105,6 +105,8 @@ func GenerateGetResponseBody(empty bool) *container.GetResponseBody {
m := new(container.GetResponseBody) m := new(container.GetResponseBody)
m.SetContainer(GenerateContainer(empty)) m.SetContainer(GenerateContainer(empty))
m.SetSignature(refstest.GenerateSignature(empty))
m.SetSessionToken(sessiontest.GenerateSessionToken(empty))
return m return m
} }
@ -248,6 +250,7 @@ func GenerateGetExtendedACLResponseBody(empty bool) *container.GetExtendedACLRes
m.SetEACL(acltest.GenerateTable(empty)) m.SetEACL(acltest.GenerateTable(empty))
m.SetSignature(refstest.GenerateSignature(empty)) m.SetSignature(refstest.GenerateSignature(empty))
m.SetSessionToken(sessiontest.GenerateSessionToken(empty))
return m return m
} }