-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add replication test with deny eACL #133
Add replication test with deny eACL #133
Conversation
Set eACL ${WIF_USER} ${CID} ${EACL_DENY_ALL_USER} | ||
|
||
# The current ACL cache lifetime is 30 sec | ||
Sleep ${NEOFS_CONTRACT_CACHE_TIMEOUT} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we can omit this sleep, because contracts cache is disabled in job and in virtualenv.
|
||
${DROP_SIMPLE} = Run Process neofs-cli control drop-objects -r ${NODE} --wif ${WIF_STORAGE} -o ${CID}/${OID} shell=True | ||
Should Be Equal As Integers ${DROP_SIMPLE.rc} 0 | ||
Log Many stdout: ${DROP_SIMPLE.stdout} stderr: ${DROP_SIMPLE.stderr} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stderr wouldn't be logged if previous assert fails, it has no sense.
# Tick epoch and sleep epoch time for replication | ||
Tick Epoch | ||
# We assume that during this time objects should be replicated | ||
Sleep ${NEOFS_EPOCH_TIMEOUT} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here test will sleep for 5 minutes. Maybe we should run Validate storage policy for object
, until it succeds instead?
I've made some experiments, and I'm sure that on empty dev-env the object will be replicated much faster than one epoch time.
Add replication test with deny eACL due to nspcc-dev/neofs-node#881