mirror of
https://gitee.com/openharmony/xts_dcts
synced 2024-11-23 07:39:59 +00:00
426 dcts
Signed-off-by: wuxiaodan <wuxiaodan5@huawei-partners.com>
This commit is contained in:
parent
73c29f4daf
commit
1403ef43fc
@ -4463,7 +4463,7 @@ export default function kvSyncTestS1() {
|
||||
let name = new factory.FieldNode('name');
|
||||
name.type = factory.ValueType.INTEGER;
|
||||
name.nullable = false;
|
||||
name.default = 0;
|
||||
name.default = '0';
|
||||
|
||||
let schema = new factory.Schema();
|
||||
schema.root.appendChild(name);
|
||||
@ -4562,7 +4562,7 @@ export default function kvSyncTestS1() {
|
||||
let name = new factory.FieldNode('name');
|
||||
name.type = factory.ValueType.INTEGER;
|
||||
name.nullable = false;
|
||||
name.default = 0;
|
||||
name.default = '0';
|
||||
|
||||
let schema = new factory.Schema();
|
||||
schema.root.appendChild(name);
|
||||
|
@ -4474,7 +4474,7 @@ export default function kvSyncTestS1Ets() {
|
||||
let name: factory.FieldNode = new factory.FieldNode('name');
|
||||
name.type = factory.ValueType.INTEGER;
|
||||
name.nullable = false;
|
||||
name.default = "str";
|
||||
name.default = '0';
|
||||
|
||||
let schema = new factory.Schema();
|
||||
schema.root.appendChild(name);
|
||||
@ -4573,7 +4573,7 @@ export default function kvSyncTestS1Ets() {
|
||||
let name = new factory.FieldNode('name');
|
||||
name.type = factory.ValueType.INTEGER;
|
||||
name.nullable = false;
|
||||
name.default = "str";
|
||||
name.default = '0';
|
||||
|
||||
let schema = new factory.Schema();
|
||||
schema.root.appendChild(name);
|
||||
|
@ -133,9 +133,9 @@ export default class RemoteHelper{
|
||||
// To avoid unknown errors, it is recommended to pass in only values of string type
|
||||
// If insert data successful,it will return true, otherwise it will return errInfo
|
||||
console.info(logTag + "_methodName is kvPut");
|
||||
console.info(logTag + "_methodName is String(value)" + String(value));
|
||||
let message = new ApiMessage("openHarmony","testApi","kvPut"," ",
|
||||
["string",valueType,"string"],[String(key),value.toString(),String(valueType)]," ");
|
||||
console.info(logTag + " test key is: " + key + " value is " + value.toString())
|
||||
["string",valueType,"string"],[String(key),String(value),String(valueType)]," ");
|
||||
let resGetReq = await this.getReq(message);
|
||||
return resGetReq;
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ export default class TestApi{
|
||||
let name = new disData.FieldNode('name');
|
||||
name.type = disData.ValueType.INTEGER;
|
||||
name.nullable = false;
|
||||
name.default = "str";
|
||||
name.default = '0';
|
||||
|
||||
let schema = new disData.Schema();
|
||||
schema.root.appendChild(name);
|
||||
|
@ -133,9 +133,9 @@ export default class RemoteHelper{
|
||||
// To avoid unknown errors, it is recommended to pass in only values of string type
|
||||
// If insert data successful,it will return true, otherwise it will return errInfo
|
||||
console.info(logTag + "_methodName is kvPut");
|
||||
console.info(logTag + "_methodName is String(value)" + String(value));
|
||||
let message = new ApiMessage("openHarmony","testApi","kvPut"," ",
|
||||
["string",valueType,"string"],[String(key),value.toString(),String(valueType)]," ");
|
||||
console.info(logTag + " test key is: " + key + " value is " + value.toString())
|
||||
["string",valueType,"string"],[String(key),String(value),String(valueType)]," ");
|
||||
let resGetReq = await this.getReq(message);
|
||||
return resGetReq;
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ export default class TestApi{
|
||||
let name = new disData.FieldNode('name');
|
||||
name.type = disData.ValueType.INTEGER;
|
||||
name.nullable = false;
|
||||
name.default = 0;
|
||||
name.default = '0';
|
||||
|
||||
let schema = new disData.Schema();
|
||||
schema.root.appendChild(name);
|
||||
|
Loading…
Reference in New Issue
Block a user