From d8f85e80c9352c8db5de8f20db9109e921f27798 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 24 May 2021 21:20:23 +0300 Subject: [PATCH] [#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 --- v2/container/test/generate.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/v2/container/test/generate.go b/v2/container/test/generate.go index 032bde74..07098c3f 100644 --- a/v2/container/test/generate.go +++ b/v2/container/test/generate.go @@ -105,6 +105,8 @@ func GenerateGetResponseBody(empty bool) *container.GetResponseBody { m := new(container.GetResponseBody) m.SetContainer(GenerateContainer(empty)) + m.SetSignature(refstest.GenerateSignature(empty)) + m.SetSessionToken(sessiontest.GenerateSessionToken(empty)) return m } @@ -248,6 +250,7 @@ func GenerateGetExtendedACLResponseBody(empty bool) *container.GetExtendedACLRes m.SetEACL(acltest.GenerateTable(empty)) m.SetSignature(refstest.GenerateSignature(empty)) + m.SetSessionToken(sessiontest.GenerateSessionToken(empty)) return m }