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

!6000 新增电话接口xts覆盖

Merge pull request !6000 from 李昊/master
......@@ -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.
先完成此消息的编辑!
想要评论请 注册