summaryrefslogtreecommitdiff
path: root/test-requirements.txt
Commit message (Collapse)AuthorAgeFilesLines
* tests: Drop httpretty in favor of responses (#1720)Alberto Contreras2022-09-191-1/+0
|
* Allow growpart to resize encrypted partitions (#1316)James Falcon2022-04-261-0/+1
| | | | | | | | | | Adds the ability for growpart to resize a LUKS formatted partition. This involves resizing the underlying partition as well as the filesystem. 'cryptsetup' is used for resizing. This relies on a file present at /cc_growpart_keydata containing json formatted 'key' and 'slot' keys, with the key being base64 encoded. After resize, cloud-init will destroy the luks slot used for resizing and remove the key file.
* Add support for dual stack IPv6/IPv4 IMDS to Ec2 (#1160)Brett Holman2022-04-141-0/+1
| | | | | | | | | - add support for parallel http(s) requests to wait_for_url() - implementation based loosely on RFC6555: "Happy Eyeballs" [1] - update ec2 datasource to support dual-stack ipv6/ipv4 - only "nitro" instances have ipv6 IMDS, favor ipv4 initially - replace httpretty with responses for ec2 tests [1] https://datatracker.ietf.org/doc/html/rfc6555
* Remove pin in dependencies for jsonschema (#1078)James Falcon2021-10-221-1/+1
| | | | | | In jsonschema 4, hostname validation was changed to have an optional dependency on the fqdn package. Since we don't have this dependency in cloud-init, attempting this validation will no longer fail for a string that isn't a valid hostname.
* pin jsonschema in requirements.txt (#1043)James Falcon2021-09-301-0/+1
| | | | On unit tests, tox is attempting to install 4.0, which fails two of the unit tests, and fails python 3.5 as it is not compatible.
* Revert "test-requirements.txt: pin pytest to <6 (#512)" (#515)Daniel Watkins2020-08-011-2/+1
| | | | | pytest 6.0.1 fixes the issue we had with pytest 6.0.0. This reverts commit db5c1c81840638cfe6f08bbd40982b86dd3ecef7.
* test-requirements.txt: pin pytest to <6 (#512)Daniel Watkins2020-07-291-1/+2
| | | | pylint is emitting errors with pytest 6.x which are not observed on pytest 5.x. While that is resolved, pin to a lower pytest version.
* cloudinit: drop dependencies on unittest2 and contextlib2 (#322)Daniel Watkins2020-04-241-2/+0
| | | | | | | | | | | These libraries provide backports of Python 3's stdlib components to Python 2. As we only support Python 3, we can simply use the stdlib now. This pull request does the following: * removes some unneeded compatibility code for the old spelling of `assertRaisesRegex` * replaces invocations of the Python 2-only `assertItemsEqual` with its new name, `assertCountEqual` * replaces all usage of `unittest2` with `unittest` * replaces all usage of `contextlib2` with `contextlib` * drops `unittest2` and `contextlib2` from requirements files and tox.ini It also rewrites some `test_azure` helpers to use bare asserts. We were seeing a strange error in xenial builds of this branch which appear to be stemming from the AssertionError that pytest produces being _different_ from the standard AssertionError. This means that the modified helpers weren't behaving correctly, because they weren't catching AssertionErrors as one would expect. (I believe this is related, in some way, to https://github.com/pytest-dev/pytest/issues/645, but the only version of pytest where we're affected is so far in the past that it's not worth pursuing it any further as we have a workaround.)
* cloudinit: move to pytest for running tests (#211)Daniel Watkins2020-03-101-5/+2
| | | | | | | | As the nose docs[0] themselves note, it has been in maintenance mode for the past several years. pytest is an actively developed, featureful and popular alternative that the nose docs themselves recommend. See [1] for more details about the thinking here. (This PR also removes stale tox definitions, instead of modifying them.) [0] https://nose.readthedocs.io/en/latest/ [1] https://lists.launchpad.net/cloud-init/msg00245.html
* Replace mock library with unittest.mock (#186)Daniel Watkins2020-01-291-1/+0
| | | | | | | | * cloudinit: replace "import mock" with "from unittest import mock" * test-requirements.txt: drop mock Co-authored-by: Chad Smith <chad.smith@canonical.com>
* tox/build: do not package depend on style requirements.Scott Moser2017-05-241-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When the style/checking dependencies were updated in test-requirements.txt, the debian package build dependencies created by ./packages/bddeb were also updated. Pycodestyle was added to the list in order to pin its version. That broke the package build for 16.04. The reason for this is simply that python3-pycodestyle is not available in 16.04. The change here is to remove style dependencies from test-requirements, and add them to the tox environments directly. We had previously changed the package build process to not run pep8 or flake8 simply to avoid having to code to N different versions of style checkers (3bcb72c593f). The link between package build and test-requirements still exists, though. So future breakage can occur if any package is added to test-requirements.txt (or requirements.txt) if the target distro release does not have a python3-<packagename> in its archive. There is also a bit of a tox.ini cleanup here, in that we do not have to explictly list '-rrequirements.txt' as the setup.py pulls those in. And lastly, we drop the -rtest-requirements.txt from the base 'testenv', and add these test requirements only to environments that need to run test. Finally, a change to packages/debian/control.in to drop the build dependencies that were listed for style checking and also a dependency on iproute2 which was a bad unit test that has been previously fixed.
* flake8: move the pinned version of flake8 up to 3.3.0Scott Moser2017-05-231-4/+4
| | | | | | | | | | | | | | | | This just moves flake8 and related tools up to newer versions and fixes the complaints associated with that. We added to the list of flake8 ignores: H102: do not put vim info in source files H304: no relative imports Also updates and pins the following in the flake8 environment: pep8: 1.7.0 => drop (although hacking still pulls it in). pyflakes 1.1.0 => 1.5.0 hacking 0.10.2 => 0.13.0 flake8 2.5.4 => 3.3.0 pycodestyle none => 2.3.1
* Add coverage collection to tox unit tests.Joshua Powers2016-10-281-0/+1
| | | | | | First step in increasing coverage is knowing what coverage is currently at. By default, tox only runs coverage on py3 as it is slower to run with coverage.
* Rebase against masterJoshua Harlow2016-06-061-0/+3
|\
| * fix up tests that take too long due to retries and timeoutsScott Moser2016-05-241-0/+3
| |\
| | * Make the usage of 'nose-timer' optionalJoshua Harlow2016-05-241-1/+3
| | |
| | * Enable nose-timer and always show top 10 slow testsJoshua Harlow2016-05-121-0/+1
| |/
* | Remerge against head/masterJoshua Harlow2016-05-191-0/+1
|\ \ | |/ |/|
| * Fix py26 for rhel (and older versions of python)Joshua Harlow2016-05-111-0/+1
| |
* | Freeze lint testing requirementsJoshua Harlow2016-05-121-4/+9
| |
* | Ensure hacking is installedJoshua Harlow2016-05-121-0/+1
| |
* | Fix up a ton of flake8 issuesJoshua Harlow2016-05-121-1/+2
|/
* make bddeb work with python3 or python2Scott Moser2015-02-101-1/+2
| | | | | | | | | | | | painful, and not perfect, but at this point the output builds on a vivid system python2 (bddeb --python2) or python3. * remove use of cheetah by bddeb in favor of builtin renderer * add '--python2' flag to bddeb and knowledge of python 2 and python3 package names. * read-dependencies can now read test-requirements also. * differenciate from build-requirements and runtime requirements.
* Add tests for current parse_ssh_config behaviour.Daniel Watkins2014-11-121-0/+1
| | | | | This also adds mock as a test dependency, as we are looking to migrate away from mocker.
* Remove pylintJay Faulkner2014-08-261-1/+0
| | | | | pylint was not passing, and per smoser in IRC pylint can/should be removed.
* fix(pep8): Fix various pep8 violations and version-lock pep8Jay Faulkner2014-08-261-1/+1
| | | | | | Fixed all complaints from running "make pep8". Also version locked pep8 in test-requirements.txt to ensure that pep8 requirements don't change without an explicit commit.
* Update makefile to install from updated requirements filesJoshua Harlow2014-01-171-0/+6