Closed
Description
+ redis-server &
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-redis-3.5.3-3.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-redis-3.5.3-3.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
7864:C 04 May 2021 15:21:44.177 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
7864:C 04 May 2021 15:21:44.177 # Redis version=6.2.2, bits=64, commit=00000000, modified=0, pid=7864, just started
7864:C 04 May 2021 15:21:44.177 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
7864:M 04 May 2021 15:21:44.179 * Increased maximum number of open files to 10032 (it was originally set to 1024).
7864:M 04 May 2021 15:21:44.179 * monotonic clock: POSIX clock_gettime
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 6.2.2 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 7864
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | https://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
7864:M 04 May 2021 15:21:44.180 # Server initialized
7864:M 04 May 2021 15:21:44.180 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
7864:M 04 May 2021 15:21:44.181 * Ready to accept connections
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/redis-py-3.5.3
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, hypothesis-6.10.1, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, flaky-3.7.0
collected 475 items
tests/test_commands.py .......FF.................................................................................................................................... [ 29%]
......................................................................................................s..................................... [ 59%]
tests/test_connection.py . [ 59%]
tests/test_connection_pool.py ................................................................ [ 72%]
tests/test_encoding.py ............ [ 75%]
tests/test_lock.py .......................... [ 80%]
tests/test_monitor.py ..... [ 81%]
tests/test_multiprocessing.py ......... [ 83%]
tests/test_pipeline.py ........................ [ 88%]
tests/test_pubsub.py .................................. [ 96%]
tests/test_scripting.py ....... [ 97%]
tests/test_sentinel.py ............ [100%]
================================================================================= FAILURES =================================================================================
________________________________________________________________ TestRedisCommands.test_acl_getuser_setuser ________________________________________________________________
self = <tests.test_commands.TestRedisCommands object at 0x7ff010a40a00>, r = Redis<ConnectionPool<Connection<host=localhost,port=6379,db=9>>>
request = <FixtureRequest for <Function test_acl_getuser_setuser>>
@skip_if_server_version_lt(REDIS_6_VERSION)
def test_acl_getuser_setuser(self, r, request):
username = 'redis-py-user'
def teardown():
r.acl_deluser(username)
request.addfinalizer(teardown)
# test enabled=False
assert r.acl_setuser(username, enabled=False, reset=True)
> assert r.acl_getuser(username) == {
'categories': ['-@all'],
'commands': [],
'enabled': False,
'flags': ['off'],
'keys': [],
'passwords': [],
}
E AssertionError: assert {'categories'...': False, ...} == {'categories'... ['off'], ...}
E Omitting 5 identical items, use -vv to show
E Differing items:
E {'flags': ['off', 'allchannels', 'sanitize-payload']} != {'flags': ['off']}
E Left contains 1 more item:
E {'channels': [b'*']}
E Use -v to get the full diff
tests/test_commands.py:108: AssertionError
_____________________________________________________________________ TestRedisCommands.test_acl_list ______________________________________________________________________
self = <tests.test_commands.TestRedisCommands object at 0x7ff0108dc4c0>, r = Redis<ConnectionPool<Connection<host=localhost,port=6379,db=9>>>
request = <FixtureRequest for <Function test_acl_list>>
@skip_if_server_version_lt(REDIS_6_VERSION)
def test_acl_list(self, r, request):
username = 'redis-py-user'
def teardown():
r.acl_deluser(username)
request.addfinalizer(teardown)
assert r.acl_setuser(username, enabled=False, reset=True)
users = r.acl_list()
> assert 'user %s off -@all' % username in users
E AssertionError: assert ('user %s off -@all' % 'redis-py-user') in ['user default on nopass ~* &* +@all', 'user redis-py-user off sanitize-payload &* -@all']
tests/test_commands.py:196: AssertionError
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_commands.py:1958: Redis version required < 4.0.0
FAILED tests/test_commands.py::TestRedisCommands::test_acl_getuser_setuser - AssertionError: assert {'categories'...': False, ...} == {'categories'... ['off'], ...}
FAILED tests/test_commands.py::TestRedisCommands::test_acl_list - AssertionError: assert ('user %s off -@all' % 'redis-py-user') in ['user default on nopass ~* &* +@all'...
================================================================ 2 failed, 472 passed, 1 skipped in 12.41s =================================================================
Metadata
Metadata
Assignees
Labels
No labels