Skip to content

Commit

Permalink
Merge branch 'hotfix/2.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
dallinb committed Oct 18, 2022
2 parents e00135a + d309392 commit fd5a437
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 10 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Changelog


## 2.2.0
## 2.2.1

### Fix

* Ensure JMESPath is installed as a requirement. [Ben Dalling]


## 2.2.0 (2022-10-15)

### New

Expand Down
8 changes: 3 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ When all the CI jobs have completed, create the new release at

### Post Release Steps

After a release has been published, the following files will need
to be updated for the tests to continue to work:

- `tests/features/example.feature`
- `tests/resources/sut/Dockerfile`
After a release has been published, ensure the testinfra-bdd Python
package has been updated in `tests/features/example.feature` for the
tests to continue working.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
for line in pyproject:
line = line.strip()[1:-2]

if line.startswith('pytest-bdd>') or line.startswith('pytest-testinfra>'):
if line.startswith('jmespath>') or line.startswith('pytest-bdd>') or line.startswith('pytest-testinfra>'):
install_requires.append(line)

setuptools.setup(
Expand Down
2 changes: 1 addition & 1 deletion testinfra_bdd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
This is used by setuptools and by gitchangelog to identify the name of the name
of the release.
"""
__version__ = '2.2.0'
__version__ = '2.2.1'


def get_host_fixture(hostspec, timeout=0):
Expand Down
2 changes: 1 addition & 1 deletion tests/features/example.feature
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Feature: Example of Testinfra BDD
When the pip package is testinfra-bdd
# Can check if the package is absent or present.
Then the pip package is present
And the pip package version is 2.1.0
And the pip package version is 2.2.0
# Check that installed packages have compatible dependencies.
And the pip check is OK

Expand Down
4 changes: 3 additions & 1 deletion tests/resources/sut/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM debian:11

COPY requirements.txt /tmp

RUN apt-get clean \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
Expand All @@ -13,7 +15,7 @@ RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& chmod 544 /etc/ntp.conf \
&& chown ntp:ntp /etc/ntp.conf \
&& pip install --no-cache-dir semver==2.12.0 testinfra-bdd==2.1.0
&& pip install --no-cache-dir -r /tmp/requirements.txt

COPY issue21.txt /tmp
COPY john-smith.json /tmp
Expand Down
2 changes: 2 additions & 0 deletions tests/resources/sut/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
semver==2.12.0
testinfra-bdd

0 comments on commit fd5a437

Please sign in to comment.