<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/test-requirements.txt, branch rolling</title>
<subtitle> (mirror of https://github.com/vyos/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-cloud-init.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/'/>
<updated>2021-10-23T03:06:51+00:00</updated>
<entry>
<title>Remove pin in dependencies for jsonschema (#1078)</title>
<updated>2021-10-23T03:06:51+00:00</updated>
<author>
<name>James Falcon</name>
<email>james.falcon@canonical.com</email>
</author>
<published>2021-10-23T03:06:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=2db713346d656c3486228678ad020b56440c1e34'/>
<id>urn:sha1:2db713346d656c3486228678ad020b56440c1e34</id>
<content type='text'>
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.</content>
</entry>
<entry>
<title>pin jsonschema in requirements.txt (#1043)</title>
<updated>2021-09-30T23:26:50+00:00</updated>
<author>
<name>James Falcon</name>
<email>james.falcon@canonical.com</email>
</author>
<published>2021-09-30T23:26:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=392c3262dcb4108b42f09e1369d9072502302361'/>
<id>urn:sha1:392c3262dcb4108b42f09e1369d9072502302361</id>
<content type='text'>
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.</content>
</entry>
<entry>
<title>Revert "test-requirements.txt: pin pytest to &lt;6 (#512)" (#515)</title>
<updated>2020-08-02T02:49:55+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-08-02T02:49:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=a13febd286d21f1754e32f4a05e722039eb452b8'/>
<id>urn:sha1:a13febd286d21f1754e32f4a05e722039eb452b8</id>
<content type='text'>
pytest 6.0.1 fixes the issue we had with pytest 6.0.0.

This reverts commit db5c1c81840638cfe6f08bbd40982b86dd3ecef7.</content>
</entry>
<entry>
<title>test-requirements.txt: pin pytest to &lt;6 (#512)</title>
<updated>2020-07-29T16:38:41+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-07-29T16:38:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=db5c1c81840638cfe6f08bbd40982b86dd3ecef7'/>
<id>urn:sha1:db5c1c81840638cfe6f08bbd40982b86dd3ecef7</id>
<content type='text'>
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.</content>
</entry>
<entry>
<title>cloudinit: drop dependencies on unittest2 and contextlib2 (#322)</title>
<updated>2020-04-24T13:26:51+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-04-24T13:26:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=38a7e6e9756fdab31264c0d6e93d20432ed111ac'/>
<id>urn:sha1:38a7e6e9756fdab31264c0d6e93d20432ed111ac</id>
<content type='text'>
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.)</content>
</entry>
<entry>
<title>cloudinit: move to pytest for running tests (#211)</title>
<updated>2020-03-10T17:26:05+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-03-10T17:26:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=986f37b017134ced5d9dd38b420350916297002b'/>
<id>urn:sha1:986f37b017134ced5d9dd38b420350916297002b</id>
<content type='text'>
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</content>
</entry>
<entry>
<title>Replace mock library with unittest.mock (#186)</title>
<updated>2020-01-29T21:55:39+00:00</updated>
<author>
<name>Daniel Watkins</name>
<email>oddbloke@ubuntu.com</email>
</author>
<published>2020-01-29T21:55:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=5f8f85bb38cc972d3d2c705a1ec73db3f690f323'/>
<id>urn:sha1:5f8f85bb38cc972d3d2c705a1ec73db3f690f323</id>
<content type='text'>
* cloudinit: replace "import mock" with "from unittest import mock"

* test-requirements.txt: drop mock

Co-authored-by: Chad Smith &lt;chad.smith@canonical.com&gt;
</content>
</entry>
<entry>
<title>tox/build: do not package depend on style requirements.</title>
<updated>2017-05-24T17:30:14+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2017-05-24T13:36:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=6b5369be71054a677b89fa8080f7ddd029ce4986'/>
<id>urn:sha1:6b5369be71054a677b89fa8080f7ddd029ce4986</id>
<content type='text'>
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-&lt;packagename&gt; 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.
</content>
</entry>
<entry>
<title>flake8: move the pinned version of flake8 up to 3.3.0</title>
<updated>2017-05-23T20:07:51+00:00</updated>
<author>
<name>Scott Moser</name>
<email>smoser@brickies.net</email>
</author>
<published>2017-05-23T17:09:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=2825a917e5fa130818c0d77219f32961b99a057f'/>
<id>urn:sha1:2825a917e5fa130818c0d77219f32961b99a057f</id>
<content type='text'>
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  =&gt; drop  (although hacking still pulls it in).
  pyflakes     1.1.0  =&gt; 1.5.0
  hacking      0.10.2 =&gt; 0.13.0
  flake8       2.5.4  =&gt; 3.3.0
  pycodestyle  none   =&gt; 2.3.1
</content>
</entry>
<entry>
<title>Add coverage collection to tox unit tests.</title>
<updated>2016-10-28T22:51:04+00:00</updated>
<author>
<name>Joshua Powers</name>
<email>mrpowersj@gmail.com</email>
</author>
<published>2016-10-20T21:49:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-cloud-init.git/commit/?id=c12f4dd835077e3aa39e9056c25f136ff6a6655b'/>
<id>urn:sha1:c12f4dd835077e3aa39e9056c25f136ff6a6655b</id>
<content type='text'>
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.
</content>
</entry>
</feed>
