提交 5ece04a5 编写于 作者: L lihao

新增电话接口覆盖率用例

Signed-off-by: Nlihao <lihao334@huawei.com>
上级 45e21909
......@@ -94,6 +94,7 @@ export default function Http2Test() {
let httpRequestOptions ={
method: net_http.RequestMethod.GET,
extraData: null,
expectDataType: net_Http.HttpDataType.STRING,
header: "content-type': 'application/json",
readTimeout: 6000,
connectTimeout: 6000,
......@@ -103,6 +104,7 @@ export default function Http2Test() {
httpRequest.request("https://httpbin/anything", httpRequestOptions, (err,data) => {
console.info(CaseName + Json.stringify(err)+ "data"+ Json.stringify(data));
expect(data.responseCode === net_http.ResponseCode.Ok).assertTrue();
expect(data.resultType == net_Http.HttpDataType.STRING).assertTrue();
done();
});
} catch(err){
......
......@@ -34,7 +34,7 @@ let options = {
protocols: [socket.Protocol.TLSv12, socket.Protocol.TLSv13],
useRemoteCipherPrefer: true,
signatureAlgorithms: "rsa_pss_rsae_sha256:ECDSA+SHA256",
cipherSuites: "AES256-SHA256"
cipherSuite: "AES256-SHA256"
},
}
......@@ -88,7 +88,7 @@ export default function networkManagerSocketTest() {
expect(options.secureOptions.protocols[1] == "TLSv1.3").assertEqual(true);
expect(options.secureOptions.useRemoteCipherPrefer != undefined).assertEqual(true);
expect(options.secureOptions.signatureAlgorithms != undefined).assertEqual(true);
expect(options.secureOptions.cipherSuites != undefined).assertEqual(true);
expect(options.secureOptions.cipherSuite != undefined).assertEqual(true);
expect(socket.X509CertRawData == undefined).assertEqual(true);
if (err == undefined) {
expect().assertFail();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册