aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qcoaprequest/tst_qcoaprequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qcoaprequest/tst_qcoaprequest.cpp')
-rw-r--r--tests/auto/qcoaprequest/tst_qcoaprequest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qcoaprequest/tst_qcoaprequest.cpp b/tests/auto/qcoaprequest/tst_qcoaprequest.cpp
index 1a5c413..5ac0b6d 100644
--- a/tests/auto/qcoaprequest/tst_qcoaprequest.cpp
+++ b/tests/auto/qcoaprequest/tst_qcoaprequest.cpp
@@ -88,6 +88,14 @@ void tst_QCoapRequest::adjustUrl_data()
<< QUrl("coap://vs0.inf.ethz.ch:5683/test") << false;
QTest::newRow("no_scheme_no_port_secure") << QUrl("vs0.inf.ethz.ch/test")
<< QUrl("coaps://vs0.inf.ethz.ch:5684/test") << true;
+
+ QUrl ipv6Host;
+ ipv6Host.setHost("::1");
+ ipv6Host.setPath("/path");
+ QTest::newRow("no_scheme_no_port_ipv6") << ipv6Host << QUrl("coap://[::1]:5683/path")
+ << false;
+ QTest::newRow("no_scheme_no_port_ipv6_secure") << ipv6Host << QUrl("coaps://[::1]:5684/path")
+ << true;
}
void tst_QCoapRequest::adjustUrl()