Fix pipeline

This commit is contained in:
vdutta 2023-03-20 14:19:31 +05:30
parent bcda1bd606
commit 32511db9d9
4 changed files with 10 additions and 300 deletions

View file

@ -29,10 +29,6 @@ echo "Validate X_IOPSYS_EU_Dropbear JSON Plugin"
./tools/validate_json_plugin.py test/files/etc/bbfdm/json/X_IOPSYS_EU_Dropbear.json
check_ret $?
echo "Validate UserInterface JSON Plugin"
./tools/validate_json_plugin.py test/files/etc/bbfdm/json/UserInterface.json
check_ret $?
echo "Validate X_IOPSYS_EU_TEST JSON Plugin"
./tools/validate_json_plugin.py test/files/etc/bbfdm/json/X_IOPSYS_EU_TEST.json
check_ret $?

View file

@ -124,26 +124,26 @@ static void test_api_bbfdm_get_set_json_parameter(void **state)
int fault = 0;
// get value ==> expected "0" error
fault = dm_entry_param_method(ctx, CMD_GET_VALUE, "Device.UserInterface.CurrentLanguage", NULL, NULL);
assert_int_equal(fault, 0);
//fault = dm_entry_param_method(ctx, CMD_GET_VALUE, "Device.UserInterface.CurrentLanguage", NULL, NULL);
//assert_int_equal(fault, 0);
// validate parameter : name, type, value
validate_parameter(ctx, "Device.UserInterface.CurrentLanguage", "en", "xsd:string");
//validate_parameter(ctx, "Device.UserInterface.CurrentLanguage", "en", "xsd:string");
// set value ==> expected "0" error
fault = dm_entry_param_method(ctx, CMD_SET_VALUE, "Device.UserInterface.CurrentLanguage", "fr", NULL);
assert_int_equal(fault, 0);
//fault = dm_entry_param_method(ctx, CMD_SET_VALUE, "Device.UserInterface.CurrentLanguage", "fr", NULL);
//assert_int_equal(fault, 0);
// apply value ==> expected "0" error
fault = dm_entry_apply(ctx, CMD_SET_VALUE);
assert_int_equal(fault, 0);
//fault = dm_entry_apply(ctx, CMD_SET_VALUE);
//assert_int_equal(fault, 0);
// get value ==> expected "0" error
fault = dm_entry_param_method(ctx, CMD_GET_VALUE, "Device.UserInterface.CurrentLanguage", NULL, NULL);
assert_int_equal(fault, 0);
//fault = dm_entry_param_method(ctx, CMD_GET_VALUE, "Device.UserInterface.CurrentLanguage", NULL, NULL);
//assert_int_equal(fault, 0);
// validate parameter after setting to fr: name, type, value
validate_parameter(ctx, "Device.UserInterface.CurrentLanguage", "fr", "xsd:string");
//validate_parameter(ctx, "Device.UserInterface.CurrentLanguage", "fr", "xsd:string");
// get value ==> expected "0" error
fault = dm_entry_param_method(ctx, CMD_GET_VALUE, "Device.WiFi.X_IOPSYS_EU_Radio.1.Noise", NULL, NULL);

View file

@ -1,285 +0,0 @@
{
"Device.UserInterface.": {
"type": "object",
"version": "2.14",
"protocols": [
"cwmp",
"usp"
],
"access": false,
"array": false,
"Enable": {
"type": "boolean",
"version": "2.14",
"read": true,
"write": true,
"protocols": [
"cwmp",
"usp"
],
"mapping": [
{
"type": "uci",
"uci": {
"file": "userinterface",
"section": {
"name": "global"
},
"option": {
"name": "enable"
}
}
}
]
},
"PasswordRequired": {
"type": "boolean",
"version": "2.14",
"read": true,
"write": true,
"protocols": [
"cwmp",
"usp"
],
"mapping": [
{
"type": "uci",
"uci": {
"file": "userinterface",
"section": {
"name": "global"
},
"option": {
"name": "password_required"
}
}
}
]
},
"PasswordUserSelectable": {
"type": "boolean",
"version": "2.14",
"read": true,
"write": true,
"protocols": [
"cwmp",
"usp"
],
"mapping": [
{
"type": "uci",
"uci": {
"file": "userinterface",
"section": {
"name": "global"
},
"option": {
"name": "password_user_selectable"
}
}
}
]
},
"TextColor": {
"type": "hexBinary",
"version": "2.14",
"read": true,
"write": true,
"protocols": [
"cwmp",
"usp"
],
"range": [
{
"min": 3,
"max": 3
}
],
"mapping": [
{
"type": "uci",
"uci": {
"file": "userinterface",
"section": {
"name": "global"
},
"option": {
"name": "text_color"
}
}
}
]
},
"BackgroundColor": {
"type": "hexBinary",
"version": "2.14",
"read": true,
"write": true,
"protocols": [
"cwmp",
"usp"
],
"range": [
{
"min": 3,
"max": 3
}
],
"mapping": [
{
"type": "uci",
"uci": {
"file": "userinterface",
"section": {
"name": "global"
},
"option": {
"name": "background_color"
}
}
}
]
},
"ButtonColor": {
"type": "hexBinary",
"version": "2.14",
"read": true,
"write": true,
"protocols": [
"cwmp",
"usp"
],
"range": [
{
"min": 3,
"max": 3
}
],
"mapping": [
{
"type": "uci",
"uci": {
"file": "userinterface",
"section": {
"name": "global"
},
"option": {
"name": "button_color"
}
}
}
]
},
"ButtonTextColor": {
"type": "hexBinary",
"version": "2.14",
"read": true,
"write": true,
"protocols": [
"cwmp",
"usp"
],
"range": [
{
"min": 3,
"max": 3
}
],
"mapping": [
{
"type": "uci",
"uci": {
"file": "userinterface",
"section": {
"name": "global"
},
"option": {
"name": "button_text_color"
}
}
}
]
},
"AvailableLanguages": {
"type": "string",
"version": "2.14",
"read": true,
"write": false,
"protocols": [
"cwmp",
"usp"
],
"list": {
"datatype": "string",
"maxsize": 256
},
"mapping": [
{
"type": "uci",
"uci": {
"file": "userinterface",
"section": {
"name": "global"
},
"option": {
"name": "available_languages"
}
}
}
]
},
"CurrentLanguage": {
"type": "string",
"version": "2.14",
"read": true,
"write": true,
"protocols": [
"cwmp",
"usp"
],
"range": [
{
"max": 16
}
],
"mapping": [
{
"type": "uci",
"uci": {
"file": "userinterface",
"section": {
"name": "global"
},
"option": {
"name": "current_language"
}
}
}
]
},
"X_IOPSYS_EU_Theme": {
"type": "string",
"version": "2.14",
"read": true,
"write": true,
"protocols": [
"cwmp",
"usp"
],
"mapping": [
{
"type": "uci",
"uci": {
"file": "userinterface",
"section": {
"name": "global"
},
"option": {
"name": "theme"
}
}
}
]
}
}
}

View file

@ -69,7 +69,6 @@
"obuspa/files/etc/bbfdm/json/USPAgent.json",
"obuspa/files/etc/bbfdm/json/TransferComplete.json",
"icwmp/files/etc/bbfdm/json/CWMPManagementServer.json",
"bbf/files/etc/bbfdm/json/UserInterface.json",
"ponmngr/files/etc/bbfdm/json/xpon.json"
]
},