mirror of https://github.com/ansible/ansible.git
Fix ansible-test default image. (#31966)
* Add openssh-client to default docker container.
* Include Azure requirements in default container.
To do so, handling of pip requirements was updated to install each
set of requirements separately and then run a verification pass to
make sure there are no conflicts between requirements.
* Add missing --docker-no-pull option.
* Add documentation for the azure-requirements test.
(cherry picked from commit 36b13e3e3d)
pull/32230/head
parent
0483401339
commit
4978fc633c
@ -0,0 +1,10 @@
|
||||
Sanity Tests » azure-requirements
|
||||
=================================
|
||||
|
||||
Update the Azure integration test requirements file when changes are made to the Azure packaging requirements file:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
cp packaging/requirements/requirements-azure.txt test/runner/requirements/integration.cloud.azure.txt
|
||||
|
||||
This copy of the requirements file is used when building the ``ansible/ansible:default`` Docker container from ``test/runner/Dockerfile``.
|
||||
@ -1,8 +0,0 @@
|
||||
- name: install cryptography requirement
|
||||
# preempt the installation of cryptography from requirements-azure.txt to limit the version installed
|
||||
# requests[security] requires cryptography >= 1.3.4
|
||||
# cryptography 2.1 requires pip 8.1.2+
|
||||
command: pip install cryptography>=1.3.4,<2.1
|
||||
|
||||
- pip:
|
||||
requirements: '{{ role_path }}/../../../../packaging/requirements/requirements-azure.txt'
|
||||
@ -0,0 +1,16 @@
|
||||
packaging
|
||||
requests[security]
|
||||
azure-mgmt-compute>=2.0.0,<3
|
||||
azure-mgmt-network>=1.3.0,<2
|
||||
azure-mgmt-storage>=1.2.0,<2
|
||||
azure-mgmt-resource>=1.1.0,<2
|
||||
azure-storage>=0.35.1,<0.36
|
||||
azure-cli-core>=2.0.12,<3
|
||||
msrest!=0.4.15
|
||||
msrestazure>=0.4.11,<0.5
|
||||
azure-mgmt-dns>=1.0.1,<2
|
||||
azure-mgmt-keyvault>=0.40.0,<0.41
|
||||
azure-mgmt-batch>=4.1.0,<5
|
||||
azure-mgmt-sql>=0.7.1,<0.8
|
||||
azure-mgmt-web>=0.32.0,<0.33
|
||||
azure-mgmt-containerservice>=1.0.0
|
||||
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
"""Make sure the Azure requirements files match."""
|
||||
|
||||
import filecmp
|
||||
|
||||
src = 'packaging/requirements/requirements-azure.txt'
|
||||
dst = 'test/runner/requirements/integration.cloud.azure.txt'
|
||||
|
||||
if not filecmp.cmp(src, dst):
|
||||
print('Update the Azure integration test requirements with the packaging test requirements:')
|
||||
print('cp %s %s' % (src, dst))
|
||||
exit(1)
|
||||
Loading…
Reference in New Issue