1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/plugins/lookup
Zhikang Zhang 0971a342d8
Solve race condition in password lookup (#42529)
NOTE:
1. use os.open() with os.O_CREAT|os.O_EXCL to check existence
and create a lock file if not exists, it's an atomic operation
2. the fastest process will create the lock file and others will
wait until the lock file is removed
3. after the writer finished writing to the password file, all the reading
operations use built-in open so processes can read the file parallel
2018-08-15 15:10:52 -04:00
..
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
test_aws_ssm.py aws ssm parameter lookup - change to return Nones for missing variables (#36456) 2018-02-21 06:50:00 -05:00
test_conjur_variable.py Conjur Lookup Plugin (#34280) 2018-01-23 10:04:57 -06:00
test_ini.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_lastpass.py Update module_utils.six to latest (#22855) 2017-03-23 13:35:05 -07:00
test_onepassword.py 1Password lookup plugin (#37207) 2018-05-17 17:29:47 -04:00
test_password.py Solve race condition in password lookup (#42529) 2018-08-15 15:10:52 -04:00