The unit test AccessControlTest::test_load_v2() is testing a v1 database instead of a v2.
Fixes: https://tracker.ceph.com/issues/43760
Signed-off-by: Volker Theile <vtheile@suse.com>
})
def test_load_v2(self):
- """
- The `enabled` and `pwdExpirationDate` attributes of a user have been added in v2
- """
- self.CONFIG_KEY_DICT['accessdb_v1'] = '''
+ self.CONFIG_KEY_DICT['accessdb_v2'] = '''
{{
"users": {{
"admin": {{
}}
}}
}},
- "version": 1
+ "version": 2
}}
'''.format(int(round(time.time())), Scope.ISCSI, Permission.READ,
Permission.UPDATE, Scope.POOL, Permission.CREATE)