提交 ea40ef3e 编写于 作者: G gaoxi

hmos update

Signed-off-by: Ngaoxi <gaoxi785@huawei.com>
上级 5358adf7
......@@ -41,6 +41,28 @@ describe('ActsAccountCredential', function () {
done();
})
afterEach(async function (done) {
console.info("====>afterEach enter====");
var selfBundle = "com.example.actsaccounttest";
var appAccountManager = account.createAppAccountManager();
console.info("====>getAllAccounts for clean====");
try{
var acclist = await appAccountManager.getAllAccounts(selfBundle);
}
catch(err){
console.error("====>getAllAccounts err:" + JSON.stringify(err));
expect().assertFail();
done();
}
console.info("====>account list length: " + acclist.length);
if(acclist.length > 0){
for(var i = 0;i < acclist.length; i++){
await appAccountManager.deleteAccount(acclist[i].name);
}
}
done();
})
/*
* @tc.number : ActsAccountCredential_0100
* @tc.name : The correct calls setAssociatedData and getAccountCredential get the credential
......
......@@ -3385,4 +3385,14 @@ describe('ActsAccountOAuthToken', function () {
});
done();
});
it('ActsAccountOAuthToken_28500', 0, async function (done) {
console.debug("====>ActsAccountOAuthToken_28500 start====");
var appAccountManager = account.createAppAccountManager();
var dataInfo = await appAccountManager.getAuthenticatorInfo("com.example.actsaccountOauthtoken").catch((err)=>{
console.debug("====>ActsAccountOAuthToken_28500 getAuthenticatorInfo err:" + JSON.stringify(err));
expect(err.code).assertEqual(0);
});
console.debug("====>ActsAccountOAuthToken_28500 getAuthenticatorInfo dataInfo:" + JSON.stringify(dataInfo));
done();
});
})
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册