You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units
Toshio Kuratomi e238ae999b Cyptography pr 20566 rebase (#25560)
Make pyca/cryptography the preferred backend for cryptographic needs (mainly vault) falling back to pycrypto

pyca/cryptography is already implicitly a dependency in many cases
through paramiko (2.0+) as well as the new openssl_publickey module,
which requires pyOpenSSL 16.0+. Additionally, pyca/cryptography is
an optional dep for better performance with vault already.

This commit leverages cryptography's padding, constant time comparisons,
and CBC/CTR modes to reduce the amount of code ansible needs to
maintain.

* Handle wrong password given for VaultAES format

* Do not display deprecation warning for cryptography on python-2.6

* Namespace all of the pycrypto imports and always import them

  Makes unittests better and the code less likely to get stupid mistakes
  (like using HMAC from cryptogrpahy when the one from pycrypto is needed)

* Add back in atfork since we need pycrypto to reinitialize its RNG just in case we're being used with old paramiko

* contrib/inventory/gce: Remove spurious require on pycrypto

(cherry picked from commit 9e16b9db275263b3ea8d1b124966fdebfc9ab271)

* Add cryptography to ec2_win_password module requirements
  * Fix python3 bug which would pass text strings to a function which
    requires byte strings.

* Attempt to add pycrypto version to setup deps

* Change hacking README for dual pycrypto/cryptography

* update dependencies for various CI scripts

* additional CI dockerfile/script updates

* add paramiko to the windows and sanity requirement set

  This is needed because ansible lists it as a requirement. Previously
  the missing dep wasn't enforced, but cryptography imports pkg_resources
  so you can't ignore a requirement any more

* Add integration test cases for old vault and for wrong passwords

* helper script for manual testing of pycrypto/cryptography

* Skip the pycrypto tests so that users without it installed can still run the unittests

* Run unittests for vault with both cryptography and pycrypto backend
7 years ago
..
cli fixed issue with paths separator and others 8 years ago
contrib test/: PEP8 compliancy (#24803) 8 years ago
errors test/: PEP8 compliancy (#24803) 8 years ago
executor test/: PEP8 compliancy (#24803) 8 years ago
inventory test/: PEP8 compliancy (#24803) 8 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 10 years ago
mock test/: PEP8 compliancy (#24803) 8 years ago
module_utils renames dict_combine to dict_merge in network_common (#26073) 7 years ago
modules Add netscaler_save_config module (#25614) 7 years ago
parsing Cyptography pr 20566 rebase (#25560) 7 years ago
playbook Fix spelling mistakes (comments only) (#25564) 8 years ago
plugins re-enable non-pipelined mode for Powershell (#25012) 7 years ago
template test/: PEP8 compliancy (#24803) 8 years ago
utils test/: PEP8 compliancy (#24803) 8 years ago
vars Fix spelling mistakes (comments only) (#25564) 8 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
conftest.py Fix bugs in ansible-test units command. (#24044) 8 years ago
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 8 years ago