[#xxxx] policy: Test very large entity name
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
670c74610b
commit
4022e3b6c3
1 changed files with 6 additions and 0 deletions
|
@ -100,6 +100,12 @@ func TestPolicy(t *testing.T) {
|
||||||
checkTargets(t, e, policy.Namespace, [][]byte{[]byte("mynamespace")})
|
checkTargets(t, e, policy.Namespace, [][]byte{[]byte("mynamespace")})
|
||||||
checkTargets(t, e, policy.Container, [][]byte{[]byte("cnr1")})
|
checkTargets(t, e, policy.Container, [][]byte{[]byte("cnr1")})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
t.Run("large entityname", func(t *testing.T) {
|
||||||
|
largeEntityName := "thisisverylargeentitynamethatcontainverylargenamespaceanduseraddress"
|
||||||
|
e.Invoke(t, stackitem.Null{}, "addChain", policy.User, largeEntityName, "s3:somerule", p1)
|
||||||
|
checkTargets(t, e, policy.User, [][]byte{[]byte(largeEntityName)})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAutorization(t *testing.T) {
|
func TestAutorization(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue