mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
cwmp runtime configuration present in /var/state/ directory, with uci/libuci -c option commit changes(including standard uci) to runtime path, this change to segregate the standard uci changes flow with run time config changes.
31 lines
947 B
Bash
Executable file
31 lines
947 B
Bash
Executable file
#!/bin/bash
|
|
|
|
source ./test/script/common.sh
|
|
source ./gitlab-ci/shared.sh
|
|
|
|
TEST_NAME="DELETE RPC Method"
|
|
|
|
echo "Running: $TEST_NAME"
|
|
|
|
remove_icwmp_log
|
|
curl $connection_request_path -X POST --data '{"name": "deleteObject","objectName":"Device.SSH.Server.2"}' >/dev/null 2>&1
|
|
check_ret $?
|
|
sleep 2
|
|
check_session "DeleteObject"
|
|
status=$(print_tag_value "cwmp:DeleteObjectResponse" "Status")
|
|
if [ "$status" != "1" ]; then
|
|
echo "Error: Delete Object Method doesn't work correctly, current_value($status) expected_value(1)" >> ./funl-test-debug.log
|
|
exit 1
|
|
fi
|
|
|
|
remove_icwmp_log
|
|
curl $connection_request_path -X POST --data '{"name": "getParameterValues", "parameterNames": ["Device.SSH.Server"] }' >/dev/null 2>&1
|
|
check_ret $?
|
|
sleep 2
|
|
check_session "GetParameterValues"
|
|
if grep -q "Device.SSH.Server.2" "$icwmp_log_file"; then
|
|
echo "Error: 'Device.SSH.Server.2' object is not really deleted" >> ./funl-test-debug.log
|
|
exit 1
|
|
fi
|
|
|
|
echo "PASS: $TEST_NAME"
|