Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
d8fb3d6d
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d8fb3d6d
编写于
3月 02, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 02, 2023
浏览文件
操作
浏览文件
下载
差异文件
!7766 【xts_acts】【分布式数据管理】【master】解决xts用例问题
Merge pull request !7766 from 刘皓男/master
上级
535a4149
43189937
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
39 addition
and
26 deletion
+39
-26
distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/KvStoreBackupCallbackJsTest.js
...stest/hap/src/main/js/test/KvStoreBackupCallbackJsTest.js
+4
-4
distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/KvStoreBackupPromiseJsTest.js
...jstest/hap/src/main/js/test/KvStoreBackupPromiseJsTest.js
+3
-6
distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/List.test.js
...istributedKVStorejstest/hap/src/main/js/test/List.test.js
+2
-2
distributeddatamgr/preferencesjstest/hap/src/main/js/test/StoragePromiseJsunit.test.js
...sjstest/hap/src/main/js/test/StoragePromiseJsunit.test.js
+2
-2
distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstoreBackupRestoreCallbackJsunit.test.js
.../main/js/test/RdbstoreBackupRestoreCallbackJsunit.test.js
+7
-3
distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstoreBackupRestoreWithFAContextJsunit.test.js
.../js/test/RdbstoreBackupRestoreWithFAContextJsunit.test.js
+7
-3
distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreBackupRestoreCallbackJsunit.test.js
...s/test/RelationalStoreBackupRestoreCallbackJsunit.test.js
+7
-3
distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreBackupRestoreWithFAContextJsunit.test.js
...t/RelationalStoreBackupRestoreWithFAContextJsunit.test.js
+7
-3
未找到文件。
distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/KvStoreBackupCallbackJsTest.js
浏览文件 @
d8fb3d6d
...
...
@@ -784,14 +784,14 @@ describe('kvStoreBackupCallbackJsunittest', function () {
it
(
'
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0200
'
,
0
,
async
function
(
done
)
{
try
{
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0200 before putdata
"
);
publicput
(
kvStore
,
"
key
"
,
"
value
"
)
;
await
publicput
(
kvStore
,
"
key
"
,
"
value
"
)
;
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0200 going putdata
"
);
await
publicget
(
kvStore
,
"
key
"
).
then
((
data
)
=>
{
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0200 going getdata
"
+
JSON
.
stringify
(
data
));
expect
(
true
).
assertEqual
(
data
==
"
value
"
);
done
();
}).
catch
((
err
)
=>
{
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0200 Get fail 1
"
+
err
);
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0200 Get fail 1
"
+
JSON
.
stringify
(
err
)
);
expect
(
err
).
assertFail
();
done
();
})
...
...
@@ -811,14 +811,14 @@ describe('kvStoreBackupCallbackJsunittest', function () {
it
(
'
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0300
'
,
0
,
async
function
(
done
)
{
try
{
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0300 before putdata
"
);
publicput
(
kvStore
,
"
putcallback003
"
,
"
value1
"
)
;
await
publicput
(
kvStore
,
"
putcallback003
"
,
"
value1
"
)
;
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0300 going putdata
"
);
await
publicget
(
kvStore
,
"
putcallback
"
).
then
((
data
)
=>
{
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0300 going getdata
"
+
JSON
.
stringify
(
data
));
expect
(
true
).
assertEqual
(
false
);
done
();
}).
catch
((
err
)
=>
{
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0300 Get fail 1
"
+
err
);
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_CALLBACK_0300 Get fail 1
"
+
JSON
.
stringify
(
err
)
);
expect
(
true
).
assertEqual
(
true
);
done
();
})
...
...
distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/KvStoreBackupPromiseJsTest.js
浏览文件 @
d8fb3d6d
...
...
@@ -192,9 +192,6 @@ describe('kvStoreBackupPromiseJsunittest', function () {
console
.
info
(
'
afterAll: Test suite-level cleanup condition,
'
+
'
which is executed after the test suite is executed
'
);
publiccloseKvStore
();
await
kvManager
.
getAllKVStoreId
(
TEST_BUNDLE_NAME
).
then
((
data
)
=>
{
console
.
info
(
data
.
length
);
})
kvManager
=
null
;
console
.
info
(
"
Test kvstore =
"
+
kvStore
)
})
...
...
@@ -779,7 +776,7 @@ describe('kvStoreBackupPromiseJsunittest', function () {
expect
(
true
).
assertEqual
(
data
==
"
value
"
);
done
();
}).
catch
((
err
)
=>
{
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_PROMISE_0200 Get fail 1
"
+
err
);
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_PROMISE_0200 Get fail 1
"
+
JSON
.
stringify
(
err
)
);
expect
(
err
).
assertFail
();
done
();
})
...
...
@@ -799,14 +796,14 @@ describe('kvStoreBackupPromiseJsunittest', function () {
it
(
'
SUB_DDM_DKV_KVBACKUP_PUT_PROMISE_0300
'
,
0
,
async
function
(
done
)
{
try
{
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_PROMISE_0300 before putdata
"
);
publicput
(
kvStore
,
"
PutPromise0004
"
,
"
value1
"
)
;
await
publicput
(
kvStore
,
"
PutPromise0004
"
,
"
value1
"
)
;
console
.
log
(
"
KvStoreBackupestDbBuckupPutPromiseTest004t going putdata
"
);
await
publicget
(
kvStore
,
"
PutPromise
"
).
then
((
data
)
=>
{
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_PROMISE_0300 going getdata
"
+
JSON
.
stringify
(
data
));
expect
(
true
).
assertEqual
(
JSON
.
stringify
(
data
)
==
'
{}
'
);
done
();
}).
catch
((
err
)
=>
{
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_PROMISE_0300 Get fail 1
"
+
err
);
console
.
log
(
"
SUB_DDM_DKV_KVBACKUP_PUT_PROMISE_0300 Get fail 1
"
+
JSON
.
stringify
(
err
)
);
console
.
log
(
JSON
.
stringify
(
err
));
expect
(
true
).
assertEqual
(
err
.
code
==
15100004
);
done
();
...
...
distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/List.test.js
浏览文件 @
d8fb3d6d
...
...
@@ -35,8 +35,8 @@ export default function testsuite() {
queryTest
()
SingleKvStoreCallbackTest
()
FieldNodeTest
()
kvStoreBackupCallbackJsunittest
()
kvStoreBackupPromiseJsunittest
()
schemaTest
()
singleKvStoreEnumTest
()
kvStoreBackupPromiseJsunittest
()
kvStoreBackupCallbackJsunittest
()
}
distributeddatamgr/preferencesjstest/hap/src/main/js/test/StoragePromiseJsunit.test.js
浏览文件 @
d8fb3d6d
...
...
@@ -21,8 +21,8 @@ const KEY_TEST_LONG_ELEMENT = 'key_test_long';
const
KEY_TEST_FLOAT_ELEMENT
=
'
key_test_float
'
;
const
KEY_TEST_BOOLEAN_ELEMENT
=
'
key_test_boolean
'
;
const
KEY_TEST_STRING_ELEMENT
=
'
key_test_string
'
;
const
MAX_KEY_LENGTH
=
'
X
'
.
repeat
(
32
)
const
MAX_VALUE_LENGTH
=
'
y
'
.
repeat
(
819
1
)
const
MAX_KEY_LENGTH
=
'
X
'
.
repeat
(
80
)
const
MAX_VALUE_LENGTH
=
'
y
'
.
repeat
(
819
2
)
var
mPref
;
export
default
function
storagePromiseTest
()
{
...
...
distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstoreBackupRestoreCallbackJsunit.test.js
浏览文件 @
d8fb3d6d
...
...
@@ -114,9 +114,13 @@ export default function rdbStoreBackupRestoreCallbackTest() {
afterEach
(
async
function
()
{
console
.
info
(
TAG
+
'
afterEach
'
)
try
{
await
dataRdb
.
deleteRdbStore
(
context
,
STORE_CONFIG
.
name
)
await
dataRdb
.
deleteRdbStore
(
context
,
DATABASE_BACKUP_NAME
)
await
dataRdb
.
deleteRdbStore
(
context
,
"
BackupTest003.db
"
)
}
catch
(
err
)
{
console
.
info
(
TAG
+
"
deleteRdbStore err
"
+
JSON
.
stringify
(
err
))
}
})
afterAll
(
async
function
()
{
...
...
distributeddatamgr/relationalStoretest/RdbJstest/hap/src/main/js/test/RdbstoreBackupRestoreWithFAContextJsunit.test.js
浏览文件 @
d8fb3d6d
...
...
@@ -112,9 +112,13 @@ export default function rdbStoreBackupRestorePromiseTest() {
afterEach
(
async
function
()
{
console
.
info
(
TAG
+
'
afterEach
'
)
try
{
await
dataRdb
.
deleteRdbStore
(
context
,
STORE_CONFIG
.
name
)
await
dataRdb
.
deleteRdbStore
(
context
,
DATABASE_BACKUP_NAME
)
await
dataRdb
.
deleteRdbStore
(
context
,
"
BackupTest003.db
"
)
}
catch
(
err
)
{
console
.
info
(
TAG
+
"
deleteRdbStore err
"
+
JSON
.
stringify
(
err
))
}
})
afterAll
(
async
function
()
{
...
...
distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreBackupRestoreCallbackJsunit.test.js
浏览文件 @
d8fb3d6d
...
...
@@ -114,9 +114,13 @@ export default function relationalStoreBackupRestoreCallbackTest() {
afterEach
(
async
function
()
{
console
.
info
(
TAG
+
'
afterEach
'
)
try
{
await
data_Rdb
.
deleteRdbStore
(
context
,
STORE_CONFIG
.
name
)
await
data_Rdb
.
deleteRdbStore
(
context
,
DATABASE_BACKUP_NAME
)
await
data_Rdb
.
deleteRdbStore
(
context
,
"
BackupTest003.db
"
)
}
catch
(
err
)
{
console
.
info
(
TAG
+
"
deleteRdbStore err
"
+
JSON
.
stringify
(
err
))
}
})
afterAll
(
async
function
()
{
...
...
distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/src/main/js/test/RelationalStoreBackupRestoreWithFAContextJsunit.test.js
浏览文件 @
d8fb3d6d
...
...
@@ -112,9 +112,13 @@ describe('relationalStoreBackupRestorePromiseTest', function () {
afterEach
(
async
function
()
{
console
.
info
(
TAG
+
'
afterEach
'
)
try
{
await
data_Rdb
.
deleteRdbStore
(
context
,
STORE_CONFIG
.
name
)
await
data_Rdb
.
deleteRdbStore
(
context
,
DATABASE_BACKUP_NAME
)
await
data_Rdb
.
deleteRdbStore
(
context
,
"
BackupTest003.db
"
)
}
catch
(
err
)
{
console
.
info
(
TAG
+
"
deleteRdbStore err
"
+
JSON
.
stringify
(
err
))
}
})
afterAll
(
async
function
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录