diff --git a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/CallManageAll.test.js b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/CallManageAll.test.js index 53bec43e9e4f478f3d24e6a32732878ed88810bf..1cfa4d11f50df6826cb4bc10a05e5d0092ce5a63 100644 --- a/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/CallManageAll.test.js +++ b/telephony/telephonyjstest/call_manager/call_manager_ims2_call/src/main/js/test/CallManageAll.test.js @@ -261,38 +261,6 @@ describe('CallManageImsCall', function () { }); - /** - * @tc.number Telephony_CallManager_controlCamera_Async_0200 - * @tc.name Dial a call and after answering the call,run function controlCamera by - * args cameraId CARMER_ID_NOT_EXIT by callback, - * the callback function return error - * @tc.desc Function test - */ - it('Telephony_CallManager_controlCamera_Async_0200', 0, function (done) { - let caseName = 'Telephony_CallManager_controlCamera_Async_0200'; - scenceInCalling({ - caseName:caseName, - phoneNumber:AUTO_ACCEPT_NUMBER2, - checkState:CALL_STATUS_DIALING - }).then(data => { - callId = data.callId; - let cameraId = CARMER_ID_NOT_EXIT; - call.controlCamera(cameraId, (error) => { - if (error) { - console.log(`${caseName} error,case success,error:${toString(error)}`); - hangupCall2(caseName, done, callId); - return; - } - console.log(`${caseName} case failed`); - expect().assertFail(); - hangupCall2(caseName, done, callId); - }); - }).catch(error => { - console.log(`${caseName} scenceInCalling error ,case failed,error:${toString(error)}`); - done(); - }); - }); - /** * @tc.number Telephony_CallManager_controlCamera_Promise_0200 * @tc.name Dial a call and after answering the call,run function controlCamera by args cameraId @@ -915,5 +883,36 @@ describe('CallManageImsCall', function () { done(); } }); + /** + * @tc.number Telephony_CallManager_controlCamera_Async_0200 + * @tc.name Dial a call and after answering the call,run function controlCamera by + * args cameraId CARMER_ID_NOT_EXIT by callback, + * the callback function return error + * @tc.desc Function test + */ + it('Telephony_CallManager_controlCamera_Async_0200', 0, function (done) { + let caseName = 'Telephony_CallManager_controlCamera_Async_0200'; + scenceInCalling({ + caseName:caseName, + phoneNumber:AUTO_ACCEPT_NUMBER2, + checkState:CALL_STATUS_DIALING + }).then(data => { + callId = data.callId; + let cameraId = CARMER_ID_NOT_EXIT; + call.controlCamera(cameraId, (error) => { + if (error) { + console.log(`${caseName} error,case success,error:${toString(error)}`); + hangupCall2(caseName, done, callId); + return; + } + console.log(`${caseName} case failed`); + expect().assertFail(); + hangupCall2(caseName, done, callId); + }); + }).catch(error => { + console.log(`${caseName} scenceInCalling error ,case failed,error:${toString(error)}`); + done(); + }); + }); }); } \ No newline at end of file diff --git a/telephony/telephonyjstest/netmanager_base/dns/signature/openharmony_sx.p7b b/telephony/telephonyjstest/netmanager_base/dns/signature/openharmony_sx.p7b index 66b4457a8a81fb8d3356cf46d67226c850944858..36610716a064376bedf0d6d75ab4dc88519db020 100644 Binary files a/telephony/telephonyjstest/netmanager_base/dns/signature/openharmony_sx.p7b and b/telephony/telephonyjstest/netmanager_base/dns/signature/openharmony_sx.p7b differ diff --git a/telephony/telephonyjstest/netmanager_base/dns/src/main/config.json b/telephony/telephonyjstest/netmanager_base/dns/src/main/config.json index 3b3b3f2540f343355597244be089b3c9faaae73f..bec05f84c56b818b408f349142426ee326ad591b 100644 --- a/telephony/telephonyjstest/netmanager_base/dns/src/main/config.json +++ b/telephony/telephonyjstest/netmanager_base/dns/src/main/config.json @@ -65,42 +65,6 @@ } ], "reqPermissions": [ - { - "name": "ohos.permission.LOCATION", - "reason": "need use ohos.permission.LOCATION" - }, - { - "name":"ohos.permission.SET_TELEPHONY_STATE", - "reason":"need use ohos.permission.SET_TELEPHONY_STATE" - }, - { - "name":"ohos.permission.GET_TELEPHONY_STATE", - "reason":"need use ohos.permission.GET_TELEPHONY_STATE" - }, - { - "name":"ohos.permission.PLACE_CALL", - "reason":"need use ohos.permission.PLACE_CALL" - }, - { - "name":"ohos.permission.READ_CONTACTS", - "reason":"need use ohos.permission.READ_CONTACTS" - }, - { - "name":"ohos.permission.WRITE_CONTACTS", - "reason":"need use ohos.permission.WRITE_CONTACTS" - }, - { - "name":"ohos.permission.SEND_MESSAGES", - "reason":"need use ohos.permission.SEND_MESSAGES" - }, - { - "name":"ohos.permission.RECEIVE_SMS", - "reason":"need use ohos.permission.RECEIVE_SMS" - }, - { - "name":"ohos.permission.READ_CALL_LOG", - "reason":"need use ohos.permission.READ_CALL_LOG" - }, { "name":"ohos.permission.GET_NETWORK_INFO", "reason":"need use ohos.permission.GET_NETWORK_INFO" diff --git a/telephony/telephonyjstest/netmanager_base/jshttp/signature/openharmony_sx.p7b b/telephony/telephonyjstest/netmanager_base/jshttp/signature/openharmony_sx.p7b index 66b4457a8a81fb8d3356cf46d67226c850944858..36610716a064376bedf0d6d75ab4dc88519db020 100644 Binary files a/telephony/telephonyjstest/netmanager_base/jshttp/signature/openharmony_sx.p7b and b/telephony/telephonyjstest/netmanager_base/jshttp/signature/openharmony_sx.p7b differ diff --git a/telephony/telephonyjstest/netmanager_base/jshttp/src/main/config.json b/telephony/telephonyjstest/netmanager_base/jshttp/src/main/config.json index d33c63f026fc9acce905558319ad79b49d077373..43df3a65d1350c484166c28e0ed899e7064f1099 100644 --- a/telephony/telephonyjstest/netmanager_base/jshttp/src/main/config.json +++ b/telephony/telephonyjstest/netmanager_base/jshttp/src/main/config.json @@ -65,42 +65,6 @@ } ], "reqPermissions": [ - { - "name": "ohos.permission.LOCATION", - "reason": "need use ohos.permission.LOCATION" - }, - { - "name":"ohos.permission.SET_TELEPHONY_STATE", - "reason":"need use ohos.permission.SET_TELEPHONY_STATE" - }, - { - "name":"ohos.permission.GET_TELEPHONY_STATE", - "reason":"need use ohos.permission.GET_TELEPHONY_STATE" - }, - { - "name":"ohos.permission.PLACE_CALL", - "reason":"need use ohos.permission.PLACE_CALL" - }, - { - "name":"ohos.permission.READ_CONTACTS", - "reason":"need use ohos.permission.READ_CONTACTS" - }, - { - "name":"ohos.permission.WRITE_CONTACTS", - "reason":"need use ohos.permission.WRITE_CONTACTS" - }, - { - "name":"ohos.permission.SEND_MESSAGES", - "reason":"need use ohos.permission.SEND_MESSAGES" - }, - { - "name":"ohos.permission.RECEIVE_SMS", - "reason":"need use ohos.permission.RECEIVE_SMS" - }, - { - "name":"ohos.permission.READ_CALL_LOG", - "reason":"need use ohos.permission.READ_CALL_LOG" - }, { "name":"ohos.permission.GET_NETWORK_INFO", "reason":"need use ohos.permission.GET_NETWORK_INFO" diff --git a/telephony/telephonyjstest/netmanager_base/system_fetch/signature/openharmony_sx.p7b b/telephony/telephonyjstest/netmanager_base/system_fetch/signature/openharmony_sx.p7b index 66b4457a8a81fb8d3356cf46d67226c850944858..36610716a064376bedf0d6d75ab4dc88519db020 100644 Binary files a/telephony/telephonyjstest/netmanager_base/system_fetch/signature/openharmony_sx.p7b and b/telephony/telephonyjstest/netmanager_base/system_fetch/signature/openharmony_sx.p7b differ