forked from TrueCloudLab/frostfs-api-go
[#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:
parent
a4cf8df829
commit
d8f85e80c9
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue