* @internal * Test for not available file in a directory that is not below a path set to * StaticCompressed::setDirs() and where StaticCompressed::setServeDirsOnly() is set to @c true. */
| 344 | * StaticCompressed::setDirs() and where StaticCompressed::setServeDirsOnly() is set to @c true. |
| 345 | */ |
| 346 | void TestStaticCompressed::testFileNotInForcedDirsOnly() |
| 347 | { |
| 348 | QDir dataDir(m_dataDir.path()); |
| 349 | QVERIFY(dataDir.mkpath(u"forced"_s)); |
| 350 | const auto resp = getForcedFile(u"/notinforced.js"_s); |
| 351 | QVERIFY(resp.statusCode >= Response::BadRequest); |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | * @internal |