Skip to content

Commit

Permalink
Update snmpsim to newer version
Browse files Browse the repository at this point in the history
`snmpsimd.py` was renamed to `snmpsim-command-responder`

The lock on pyasn1 can also be removed since the never versions of snmpsim are compatible with it
  • Loading branch information
johannaengland committed Aug 19, 2024
1 parent ea42b94 commit aa8207f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: "Install test runner dependencies"
run: |
set -xe
python3 -m pip install --upgrade 'pip==23.1.0' setuptools wheel 'tox<4' tox-gh-actions coverage virtualenv 'snmpsim<1.0' 'pyasn1<0.5.0'
python3 -m pip install --upgrade 'pip==23.1.0' setuptools wheel 'tox<4' tox-gh-actions coverage virtualenv 'snmpsim>=1.0'
sudo apt-get install -y nbtscan
# virtualenv seems to currently be embedding a broken version of
Expand Down
2 changes: 1 addition & 1 deletion tests/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ RUN cd /tmp && \
mv chromedriver /usr/local/bin/

# Install our primary test runner
RUN python3.9 -m pip install 'tox<4' 'snmpsim<1.0' 'pyasn1<0.5.0' virtualenv
RUN python3.9 -m pip install 'tox<4' 'snmpsim>=1.0' virtualenv

# Add a build user
ENV USER build
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def snmpsim():
by the test that declares a dependency to this fixture. Data fixtures are loaded
from the snmp_fixtures subdirectory.
"""
snmpsimd = which('snmpsimd.py')
snmpsimd = which('snmpsim-command-responder')
assert snmpsimd, "Could not find snmpsimd.py"
workspace = os.getenv('WORKSPACE', os.getenv('HOME', '/source'))
proc = subprocess.Popen(
Expand Down

0 comments on commit aa8207f

Please sign in to comment.