Skip to content
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

Conversation

anatoly-bogatyrev
Copy link
Contributor

Add replication test with deny eACL due to nspcc-dev/neofs-node#881

Set eACL ${WIF_USER} ${CID} ${EACL_DENY_ALL_USER}

# The current ACL cache lifetime is 30 sec
Sleep ${NEOFS_CONTRACT_CACHE_TIMEOUT}
Copy link
Contributor

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}
Copy link
Contributor

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}
Copy link
Contributor

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.

@anatoly-bogatyrev anatoly-bogatyrev merged commit 1fe540f into nspcc-dev:master Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants