This repository has been archived by the owner on Jun 21, 2024. It is now read-only.
Bump jackson.version from 2.16.1 to 2.16.2 #175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
integration: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ 11, 17, 21 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java }} | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Run snmpman | |
run: | | |
../../snmpman-cli/target/snmpman-cli-*-SNAPSHOT-bin/bin/snmpman.sh -c configuration.yaml & | |
SNMPMAN_PID=$! | |
echo "Pid: $SNMPMAN_PID" | |
sleep 5 | |
working-directory: ./.github/integration | |
- name: snmpget a single OID | |
run: | | |
ACTUAL=$(snmpget -On -v2c -c public 127.0.0.1:10000 iso.3.6.1.2.1.2.2.1.2.10101) | |
DESIRED=".1.3.6.1.2.1.2.2.1.2.10101 = STRING: \"GigabitEthernet0/1\"" | |
if [ "$ACTUAL" != "$DESIRED" ]; then | |
echo "Actual is: $ACTUAL" | |
echo "Desired is: $DESIRED" | |
exit 1 | |
fi | |
- name: snmpset a single OID | |
run: | | |
snmpset -On -v2c -c public 127.0.0.1:10000 iso.3.6.1.2.1.2.2.1.2.10101 s "GigabitEthernet0/2" | |
ACTUAL=$(snmpget -On -v2c -c public 127.0.0.1:10000 iso.3.6.1.2.1.2.2.1.2.10101) | |
DESIRED=".1.3.6.1.2.1.2.2.1.2.10101 = STRING: \"GigabitEthernet0/2\"" | |
if [ "$ACTUAL" != "$DESIRED" ]; then | |
echo "Actual is: $ACTUAL" | |
echo "Desired is: $DESIRED" | |
exit 1 | |
fi |