mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Fix pipeline
This commit is contained in:
parent
524952deaf
commit
6e7554d1b1
1 changed files with 9 additions and 7 deletions
|
|
@ -99,12 +99,14 @@ if [[ $res != *"9009"* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "ADD METHOD: Correct Path" >> ./funl-test-debug.log
|
echo "ADD METHOD: Correct Path" >> ./funl-test-debug.log
|
||||||
res=$(./icwmpd -c add Device.IP.Interface. 2>&1)
|
res=$(./icwmpd -c add Device.DHCPv4.Relay.Forwarding. 2>&1)
|
||||||
if [[ $res != *"Device.IP.Interface."* ]]; then
|
if [[ $res != *"Device.DHCPv4.Relay.Forwarding."* ]]; then
|
||||||
echo "Error: Add Method with correct path doesn't work correctly" >> ./funl-test-debug.log
|
echo "Error: Add Method with correct path doesn't work correctly" >> ./funl-test-debug.log
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
del_path=$(echo "${res}" | cut -d' ' -f 2)
|
||||||
|
|
||||||
echo "ADD METHOD: Wrong Path" >> ./funl-test-debug.log
|
echo "ADD METHOD: Wrong Path" >> ./funl-test-debug.log
|
||||||
res=$(./icwmpd -c add Device.DeviceInfo.VendorLogFil 2>&1)
|
res=$(./icwmpd -c add Device.DeviceInfo.VendorLogFil 2>&1)
|
||||||
if [[ $res != *"9005"* ]]; then
|
if [[ $res != *"9005"* ]]; then
|
||||||
|
|
@ -119,16 +121,16 @@ if [[ $res != *"9005"* ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "DELETE METHOD: Correct Path && one instance" >> ./funl-test-debug.log
|
echo "DELETE METHOD: Correct Path ${del_path} && one instance" >> ./funl-test-debug.log
|
||||||
res=$(./icwmpd -c del Device.IP.Interface.2. 2>&1)
|
res=$(./icwmpd -c del "${del_path}" 2>&1)
|
||||||
if [[ $res != *"Deleted Device.IP.Interface.2."* ]]; then
|
if [[ $res != *"Deleted ${del_path}"* ]]; then
|
||||||
echo "Error: Delete Method with correct path && one instance doesn't work correctly" >> ./funl-test-debug.log
|
echo "Error: Delete Method with correct path && one instance doesn't work correctly" >> ./funl-test-debug.log
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "DELETE METHOD: Correct Path && all instance" >> ./funl-test-debug.log
|
echo "DELETE METHOD: Correct Path && all instance" >> ./funl-test-debug.log
|
||||||
res=$(./icwmpd -c del Device.IP.Interface. 2>&1)
|
res=$(./icwmpd -c del Device.DHCPv4.Relay.Forwarding. 2>&1)
|
||||||
if [[ $res != *"Deleted Device.IP.Interface."* ]]; then
|
if [[ $res != *"Deleted Device.DHCPv4.Relay.Forwarding."* ]]; then
|
||||||
echo "Error: Delete Method with correct path && all instances doesn't work correctly" >> ./funl-test-debug.log
|
echo "Error: Delete Method with correct path && all instances doesn't work correctly" >> ./funl-test-debug.log
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue