未验证 提交 a8195cdc 编写于 作者: O openharmony_ci 提交者: Gitee

!4779 电话服务用例修改增加权限

Merge pull request !4779 from 高曦/master
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsCallManagerIms2CallTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsCallManagerIms2CallTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsCallManagerIms2CallTest" hap_name = "ActsCallManagerIms2CallTest"
part_name = "call_manager"
subsystem_name = "telephony"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsCellularDataAbnormalTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsCellularDataAbnormalTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsCellularDataAbnormalTest" hap_name = "ActsCellularDataAbnormalTest"
part_name = "cellular_data"
subsystem_name = "telephony"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsDNSTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsDNSTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsDNSTest" hap_name = "ActsDNSTest"
part_name = "netmanager_ext"
subsystem_name = "communication"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsJSHTTPTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsJSHTTPTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsJSHTTPTest" hap_name = "ActsJSHTTPTest"
part_name = "netstack"
subsystem_name = "communication"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsNetworkNopermissionTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsNetworkNopermissionTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsNetworkNopermissionTest" hap_name = "ActsNetworkNopermissionTest"
part_name = "netstack"
subsystem_name = "communication"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsNetworkNowifiTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsNetworkNowifiTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsNetworkNowifiTest" hap_name = "ActsNetworkNowifiTest"
part_name = "netstack"
subsystem_name = "communication"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsNetworkWifiTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsNetworkWifiTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsNetworkWifiTest" hap_name = "ActsNetworkWifiTest"
part_name = "netstack"
subsystem_name = "communication"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsRegisterTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsRegisterTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsRegisterTest" hap_name = "ActsRegisterTest"
part_name = "netmanager_ext"
subsystem_name = "communication"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -2204,7 +2204,7 @@ ...@@ -2204,7 +2204,7 @@
done(); done();
} else { } else {
console.info(`${caseName} netCapabilitiesChange handle ` + value.netHandle.netId); console.info(`${caseName} netCapabilitiesChange handle ` + value.netHandle.netId);
expect(value.netHandle.netId > ETH_100 ).assertTrue(); expect(value.netHandle.netId >= ETH_100 ).assertTrue();
} }
}); });
netConn.on('netConnectionPropertiesChange', (value) => { netConn.on('netConnectionPropertiesChange', (value) => {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsSocketTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsSocketTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsSocketTest" hap_name = "ActsSocketTest"
part_name = "netstack"
subsystem_name = "communication"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsSystemFetchTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsSystemFetchTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsSystemFetchTest" hap_name = "ActsSystemFetchTest"
part_name = "netstack"
subsystem_name = "communication"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"bundle-name": "com.ohos.system_fetch", "bundle-name": "com.ohos.system_fetch",
"package-name": "com.ohos.system_fetch", "package-name": "com.ohos.system_fetch",
"shell-timeout": "900000", "shell-timeout": "900000",
"testcase-timeout": "30000" "testcase-timeout": "40000"
}, },
"kits": [ "kits": [
{ {
......
...@@ -65,6 +65,12 @@ ...@@ -65,6 +65,12 @@
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "entry" "moduleName": "entry"
}, },
"reqPermissions": [
{
"name":"ohos.permission.INTERNET",
"reason":"need use ohos.permission.INTERNET"
}
],
"package": "com.ohos.system_fetch", "package": "com.ohos.system_fetch",
"js": [ "js": [
{ {
......
...@@ -45,7 +45,7 @@ describe("Telephony_NetStack_HttpFetchTest", function () { ...@@ -45,7 +45,7 @@ describe("Telephony_NetStack_HttpFetchTest", function () {
http.request("https://httpbin.org/user-agent").then(function(data){ http.request("https://httpbin.org/user-agent").then(function(data){
console.info("NetStack "+ JSON.stringify(data)); console.info("NetStack "+ JSON.stringify(data));
expect(data.responseCode === NetHttp.ResponseCode.OK).assertTrue() expect(data.responseCode === NetHttp.ResponseCode.OK).assertTrue()
expect(JSON.parse(data.result)["user-agent"] === "libcurl-agent/1.0").assertTrue(); expect(JSON.parse(data.result)["user-agent"] != undefined).assertTrue();
done(); done();
}) })
}); });
...@@ -175,7 +175,7 @@ describe("Telephony_NetStack_HttpFetchTest", function () { ...@@ -175,7 +175,7 @@ describe("Telephony_NetStack_HttpFetchTest", function () {
success : function(data){ success : function(data){
console.info("NetStack fetch success "+ JSON.stringify(data)) console.info("NetStack fetch success "+ JSON.stringify(data))
expect(data.code === 200).assertTrue() expect(data.code === 200).assertTrue()
expect(JSON.parse(data.result)["user-agent"] === "libcurl-agent/1.0").assertTrue(); expect(JSON.parse(data.data)["user-agent"] != undefined).assertTrue();
done(); done();
}, },
fail : function(){ fail : function(){
...@@ -201,7 +201,7 @@ describe("Telephony_NetStack_HttpFetchTest", function () { ...@@ -201,7 +201,7 @@ describe("Telephony_NetStack_HttpFetchTest", function () {
success : function(data){ success : function(data){
console.info("NetStack fetch success "+ JSON.stringify(data)) console.info("NetStack fetch success "+ JSON.stringify(data))
expect(data.code === 200).assertTrue() expect(data.code === 200).assertTrue()
expect(JSON.parse(data.result)["user-agent"] === "libcurl-agent/1.0").assertTrue(); expect(data.data["user-agent"] != undefined).assertTrue();
done(); done();
}, },
fail : function(){ fail : function(){
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -23,6 +23,8 @@ ohos_js_hap_suite("ActsNetManagerHttpEtsTest") { ...@@ -23,6 +23,8 @@ ohos_js_hap_suite("ActsNetManagerHttpEtsTest") {
ets2abc = true ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsNetManagerHttpEtsTest" hap_name = "ActsNetManagerHttpEtsTest"
part_name = "netstack"
subsystem_name = "communication"
} }
ohos_js_assets("ace_demo_ets_assets") { ohos_js_assets("ace_demo_ets_assets") {
source_dir = "./entry/src/main/ets/MainAbility" source_dir = "./entry/src/main/ets/MainAbility"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -23,6 +23,8 @@ ohos_js_hap_suite("ActsNetManagerSocketEtsTest") { ...@@ -23,6 +23,8 @@ ohos_js_hap_suite("ActsNetManagerSocketEtsTest") {
ets2abc = true ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsNetManagerSocketEtsTest" hap_name = "ActsNetManagerSocketEtsTest"
part_name = "netstack"
subsystem_name = "communication"
} }
ohos_js_assets("ace_demo_ets_assets") { ohos_js_assets("ace_demo_ets_assets") {
source_dir = "./entry/src/main/ets/MainAbility" source_dir = "./entry/src/main/ets/MainAbility"
......
...@@ -20,6 +20,8 @@ ohos_js_hap_suite("ActsNetworkSearchTest") { ...@@ -20,6 +20,8 @@ ohos_js_hap_suite("ActsNetworkSearchTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsNetworkSearchTest" hap_name = "ActsNetworkSearchTest"
part_name = "state_registry"
subsystem_name = "telephony"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -22,6 +22,8 @@ ohos_js_hap_suite("ActsObserverEtsTest") { ...@@ -22,6 +22,8 @@ ohos_js_hap_suite("ActsObserverEtsTest") {
ets2abc = true ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsObserverEtsTest" hap_name = "ActsObserverEtsTest"
part_name = "netstack"
subsystem_name = "communication"
} }
ohos_js_assets("ace_demo_ets_assets") { ohos_js_assets("ace_demo_ets_assets") {
source_dir = "./entry/src/main/ets/MainAbility" source_dir = "./entry/src/main/ets/MainAbility"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -23,6 +23,8 @@ ohos_js_hap_suite("ActsRadiostatisticEtsTest") { ...@@ -23,6 +23,8 @@ ohos_js_hap_suite("ActsRadiostatisticEtsTest") {
ets2abc = true ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsRadiostatisticEtsTest" hap_name = "ActsRadiostatisticEtsTest"
part_name = "ril_adapter"
subsystem_name = "telephony"
} }
ohos_js_assets("ace_demo_ets_assets") { ohos_js_assets("ace_demo_ets_assets") {
source_dir = "./entry/src/main/ets/MainAbility" source_dir = "./entry/src/main/ets/MainAbility"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsSimManagerFunctionTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActsSimManagerFunctionTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsSimManagerFunctionTest" hap_name = "ActsSimManagerFunctionTest"
part_name = "core_service"
subsystem_name = "telephony"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActSmsMmsErrorTest") { ...@@ -21,6 +21,8 @@ ohos_js_hap_suite("ActSmsMmsErrorTest") {
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActSmsMmsErrorTest" hap_name = "ActSmsMmsErrorTest"
part_name = "sms_mms"
subsystem_name = "telephony"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
js2abc = true js2abc = true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册