Tests: unit-tests-base
# Dependencies sourced from:
# - test/lib/ansible_test/_data/requirements/units.txt
# - test/units/requirements.txt
Depends: @,
         git,
         python3-boto3,
         python3-botocore,
         python3-lxml,
         python3-crypto,
         python3-cryptography,
         python3-jinja2,
         python3-mock,
         python3-passlib,
         python3-pexpect,
         python3-pycryptodome,
         python3-pytest,
         python3-pytest-mock,
         python3-pytest-xdist,
         python3-tz,
         python3-winrm,
         python3-yaml,
         python3-nose,

Tests: unit-tests-stable
Depends: @,
         git,
         python3-lxml,
         python3-boto3,
         python3-botocore,
         python3-flake8,
         python3-mock,
         python3-pytest-mock,
         python3-pytest-xdist,
         yamllint,
         python3-nose,
         python3-passlib

# integration tests that can run as unprivileged user + with sudo
Test-Command: ./debian/tests/ansible-test-integration.py --default-tests --requires-apt-mark-manual --requires-root
Features: test-name=ansible-test-integration-default
Depends: @,
         acl,                       # lineinfile integration test
         apache2,                   # integration test apache2_module
         at,                        # integration test at
         attr,                      # integration test xattr
         bash,                      # Many scripts have bash shebangs
         cargo,                     # needed to build cryptography on some architectures, which some tests install from PyPI
         debconf-utils,             # debconf
         dosfstools,                # integration test filesystem (mkfs.vfat)
         equivs,                    # integration test "apt"
         file,                      # stat
         firewalld,                 # integration test firewalld (ships the firewall python module)
         gcc,                       # needed to build cffi on some architectures, which some tests install from PyPI
         genisoimage,               # integration test iso_extract
         git,                       # used by most tests
         gnupg,                     # integration test apt_key
         gzip,                      # integration test git
         iptables,                  # integration test iptables
         libffi-dev,                # needed to build cffi on some architectures, which some tests install from PyPI
         libfile-fcntllock-perl,    # integration test "apt"
         libssl-dev,                # needed to build cryptography on some architectures, which some tests install from PyPI
         libyaml-dev,               # needed to build PyYAML on some architectures, which some tests install from PyPI
         locales,
         lvm2,                      # integration test hardware_facts
         nodejs,                    # integration test yarn
         openssh-server,            # integration test systemd enables/disables it
         openssl,                   # integration test ansible-galaxy
         p7zip-full,                # integration test iso_extract
         patch,                     # integration test patch
         pkgconf,                   # needed to build cryptography on some architectures, which some tests install from PyPI
         procps,                    # integration test sysctl
         python3-apt,               # needed for checking if packages are installed
         python3-cryptography,      # integration tests openssl_certificate, openssl_csr, openssl_privatekey, openssl_publickey
         python3-debian,            # integration test "deb822_repository"
         python3-dev,               # needed to build cffi on some architectures, which some tests install from PyPI
         python3-distlib,           # ansible-galaxy-collection-cli
         python3-junit.xml,
         python3-lxml,              # integration test xml
         python3-passlib,           # grep 'setup/always/setup_passlib' test/integration/targets/*/aliases
         python3-pexpect,           # grep 'setup/always/setup_pexpect' test/integration/targets/*/aliases
         python3-pip,               # ansible-test-config, builtin_vars_prompt, remove again and fix tests
         python3-pytest,            # ansible-test-units-assertions
         python3-pytest-mock,       # ansible-test-units-assertions
         python3-setuptools,        # integration test "pip"
         python3-venv,              # ansible-inventory; ./test/lib/ansible_test/_util/target/injector/virtualenv.sh
         python3-virtualenv,        # ansible-inventory, ansible-test-installed; ./test/lib/ansible_test/_util/target/injector/virtualenv.sh
         python3-yaml,              # ansible-test-units-forked
         ruby,                      # integration test gem
         rubygems-integration,      # integration test gem
         rsync,                     # integration test "apt"
         sudo,                      # needed for testbed-setup.sh
         tar,                       # integration test git
         unzip,                     # integration test git
         xfsprogs,                  # integration test filesystem (mkfs.xfs)
         yarnpkg,                   # integration test yarn
         zip,                       # integration test git
Restrictions:
  allow-stderr,     # lots of STDERR output
  breaks-testbed,   # many tests add/delete files, or change the system in fundamental ways
  isolation-machine, # lxc containers have problems with mounting loopback
  needs-internet,   # used for ansible-galaxy and pip tests
  needs-sudo,       # used to call testbed-setup.sh
