[#1109] object: Validate attribute EXPIRATION_EPOCH on put

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
Anton Nikiforov 2024-06-18 15:06:54 +03:00 committed by Evgenii Stratonikov
parent fd28461def
commit 40b68bcb6c
2 changed files with 28 additions and 30 deletions

View file

@ -195,6 +195,8 @@ func TestFormatValidator_Validate(t *testing.T) {
val := "text"
err := v.Validate(context.Background(), fn(val), false)
require.Error(t, err)
err = v.Validate(context.Background(), fn(val), true)
require.Error(t, err)
})
t.Run("expired object", func(t *testing.T) {