Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Bump org.apache.maven.plugins:maven-assembly-plugin from 3.6.0 to 3.7.1 #176

Bump org.apache.maven.plugins:maven-assembly-plugin from 3.6.0 to 3.7.1

Bump org.apache.maven.plugins:maven-assembly-plugin from 3.6.0 to 3.7.1 #176

Workflow file for this run

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