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/integration
Valentin Krasontovitsch cfff72e9db Use apt-get as fallback for apt upgrade
In answer to #2540, `aptitude` was introduced as tool of choice for running
upgrades in the apt module and installing new packages that arise as
dependencies during upgrades.

This recently lead to problems, as for example Ubuntu Xenial (16.04) ships
without aptitude (installed).

Studying the man pages of both apt-get and aptitude, it appears that we can
achieve the effects of `aptitude safe-upgrade` using

```
apt-get upgrade --with-new-pkgs --autoremove
```

while `aptitude full-upgrade` seems to be identical to `apt-get dist-upgrade`.

We use `apt-get` as described above as a fall-back in case that `aptitude`
cannot be found, issuing a warning when it does so.

Furthermore it introduces a flag `force_apt_get` which may be used to enforce
usage of apt-get (which does not issue a warning).

The integration tests are updated accordingly.

Cf. also the discussion in #27370.

Fixes #18987
7 years ago
..
group_vars Comment cli provider creds on junos group_vars (#27611) 7 years ago
host_vars breaks testing in non virtual envs, since env var can be used in those 9 years ago
roles Adds support for all Consul 0.8 ACL rule scopes (#25800) 7 years ago
targets Use apt-get as fallback for apt upgrade 7 years ago
vars Split integration tests out from Makefile. (#17976) 8 years ago
Makefile Remove legacy integration test make targets. (#26255) 7 years ago
amazon.yml Adding support for Amazon ECR (#19306) 8 years ago
asa.yaml Continue running network tests after failure (#26407) 7 years ago
azure.yml add azure integration tests 10 years ago
cleanup_azure.py test/: PEP8 compliancy (#24803) 7 years ago
cleanup_ec2.py Fix undefined variables, basestring usage, and some associated python3 issues 7 years ago
cleanup_gce.py Fix undefined variables, basestring usage, and some associated python3 issues 7 years ago
cleanup_rax.py Fix undefined variables, basestring usage, and some associated python3 issues 7 years ago
cloud-config-aws.yml.template Add support for cloud tests to ansible-test. (#24315) 7 years ago
cloud-config-cs.ini.template Add support for cloud tests to ansible-test. (#24315) 7 years ago
cloudflare.yml Fix cosmetic problems in YAML source 8 years ago
cloudscale.yml new module cloudscale_server (#20175) 8 years ago
cnos.yaml New module: cnos_vlan and various utility files (#21107) 8 years ago
connection-buildah.yaml add connection plugin for buildah (#26170) 7 years ago
consul.yml Adds support for all Consul 0.8 ACL rule scopes (#25800) 7 years ago
consul_inventory.yml Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 10 years ago
consul_running.py Support print() function in test/ 9 years ago
credentials.template Update git test to not rm ~/.ssh/known_hosts. 7 years ago
dellos6.yaml Migrate Network Tests into ansible/ansible (#18233) 8 years ago
dellos9.yaml Migrate Network Tests into ansible/ansible (#18233) 8 years ago
dellos10.yaml Migrate Network Tests into ansible/ansible (#18233) 8 years ago
eos.yaml Remove Deprecated Template network modules (#27076) 7 years ago
exoscale.yml exo_dns: new module utils and integration tests for exoscale DNS (#17230) 8 years ago
galaxy_playbook.yml Allow installation of roles from yaml roles file 10 years ago
galaxy_playbook_git.yml [hotfix] add missed playbook file 9 years ago
galaxy_roles.yml Fix cosmetic problems in YAML source 8 years ago
galaxy_rolesfile Add tests for #10620 9 years ago
gce.yml [google] adding a GCE labels module 7 years ago
gce_credentials.py test/: PEP8 compliancy (#24803) 7 years ago
integration_config.yml Fix cosmetic problems in YAML source 8 years ago
inventory Use apt-get as fallback for apt upgrade 7 years ago
inventory.network Add VyOS integration tests for net_linkagg (#26478) 7 years ago
inventory.networking.template Increase python version coverage for tests. (#24762) 7 years ago
inventory.remote.template Add support for OS X CI on Shippable. (#17160) 8 years ago
inventory.winrm.template Increase python version coverage for tests. (#24762) 7 years ago
inventory.yaml add new yaml inventory for testing 7 years ago
ios.yaml ios implementation for net_interface (#27459) 7 years ago
iosxr.yaml iosxr implemetation for net_interface (#27513) 7 years ago
jenkins.yml jenkins_job: add integration tests (#17499) 8 years ago
junos.yaml Remove Deprecated Template network modules (#27076) 7 years ago
netscaler.yaml Add netscaler_server module (#25537) 7 years ago
network-all.yaml New module: management of the Nuage Networks VSP SDN solution (network/nuage/nuage_vspk) (#24895) 7 years ago
network-integration.cfg Change play timeout for persistent connection command timeout (#27948) 7 years ago
nuage.yaml New module: management of the Nuage Networks VSP SDN solution (network/nuage/nuage_vspk) (#24895) 7 years ago
nxos.yaml Add integration tests for nxos_facts, nxos_bgp, nxos_bgp_af, nxos_bgp_neighbor, and nxos_evpn_global (#26924) 7 years ago
ops.yaml Continue running network tests after failure (#26407) 7 years ago
ovs.yaml Revert "Enforce the _raw_params variable with include_role (#26430)" 7 years ago
platform_agnostic.yaml junos implementation for net_l3_interface module (#26829) 7 years ago
rackspace.yml Add tests for rax_scaling_group 9 years ago
setup_gce.py test/: PEP8 compliancy (#24803) 7 years ago
target-prefixes.network openvswitch targets via network-integration (#27295) 7 years ago
vyos.yaml added integration tests for vyos_facts (#26748) 7 years ago