Commit ed39d279 authored by Adriaan de Groot's avatar Adriaan de Groot 💬 Committed by Kurt Hindenburg
Browse files

autotests: add examples of numeric IPv4 host and port combinations

parent 59290e12
Pipeline #193502 passed with stage
in 2 minutes and 37 seconds
......@@ -21,6 +21,14 @@ void HotSpotFilterTest::testUrlFilterRegex_data()
<< "https://api.kde.org" << true;
QTest::newRow("url_with_port") << "\nhttps://api.kde.org:2098"
<< "https://api.kde.org:2098" << true;
QTest::newRow("url_with_port_trailing_slash") << "\nhttps://api.kde.org:2098/"
<< "https://api.kde.org:2098/" << true;
QTest::newRow("url_with_numeric_host") << "\nhttp://127.0.0.1"
<< "http://127.0.0.1" << true;
QTest::newRow("url_with_numeric_host_port") << "\nhttp://127.0.0.1:4000"
<< "http://127.0.0.1:4000" << true;
QTest::newRow("url_with_numeric_host_port_slash") << "\nhttp://127.0.0.1:4000/"
<< "http://127.0.0.1:4000/" << true;
QTest::newRow("url_with_path") << "https://api.kde.org/path/to/somewhere"
<< "https://api.kde.org/path/to/somewhere" << true;
QTest::newRow("url_with_query") << "https://user:pass@api.kde.org?somequery=foo"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment