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

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

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