Fix OPTIONS test for syslog file

pull/135/head
Simon Stürz 2018-02-10 17:19:24 +01:00 committed by Michael Zanetti
parent eafa59b32f
commit ac4eb3d8b2
2 changed files with 11 additions and 1 deletions

View File

@ -45,3 +45,13 @@ html {
font-family: "Ubuntu", Arial, Helvetica, sans-serif;
background: white;
}
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: white;
color: #676767;
text-align: center;
}

View File

@ -544,7 +544,7 @@ void TestWebserver::getDebugServer_data()
} else {
// syslog enabled, but not readable
QTest::newRow("GET /debug/syslog | server enabled | 200") << "get" << "/debug/syslog" << true << 403;
QTest::newRow("OPTIONS /debug/syslog | server enabled | 200") << "options" << "/debug/syslog" << true << 200;
QTest::newRow("OPTIONS /debug/syslog | server enabled | 200") << "options" << "/debug/syslog" << true << 403;
QTest::newRow("PUT /debug/syslog | server enabled | 405") << "put" << "/debug/syslog" << true << 405;
QTest::newRow("POST /debug/syslog | server enabled | 405") << "post" << "/debug/syslog" << true << 405;
QTest::newRow("DELETE /debug/syslog | server enabled | 405") << "delete" << "/debug/syslog" << true << 405;