summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-12 15:50:15 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-12 15:50:15 +0100
commit2bb0d2ab46bf8104ab6e0b96fdefbeb20aa4c9e4 (patch)
tree7bd0e7104d687206422d2d882592cd70b35ea80b /tests
parent7472e4e8e4897adc90f9e9030bb35ea07ded8b32 (diff)
Move https.* to http.*
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile4
-rw-r--r--tests/test-https.cpp28
-rw-r--r--tests/test-webserver.cpp2
3 files changed, 2 insertions, 32 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 14af291..c04cbcd 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -38,7 +38,6 @@ UNITS=\
config.cpp \
error.cpp \
http.cpp \
- https.cpp \
plugin.cpp \
privileges.cpp \
response.cpp \
@@ -52,7 +51,6 @@ TESTSRC=\
test-config.cpp \
test-environment.cpp \
test-http.cpp \
- test-https.cpp \
test-plugin.cpp \
test-privileges.cpp \
test-response.cpp \
@@ -91,8 +89,6 @@ error.o: ../error.cpp
$(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -c $< -o $@
http.o: ../http.cpp
$(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -c $< -o $@
-https.o: ../https.cpp
- $(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -c $< -o $@
plugin.o: ../plugin.cpp
$(CXX) $(CXXFLAGS) $(CXXTESTFLAGS) -c $< -o $@
privileges.o: ../privileges.cpp
diff --git a/tests/test-https.cpp b/tests/test-https.cpp
deleted file mode 100644
index cb917e9..0000000
--- a/tests/test-https.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <boost/test/unit_test.hpp>
-#include <boost/test/data/dataset.hpp>
-#include <boost/test/data/monomorphic.hpp>
-#include <boost/test/data/test_case.hpp>
-
-#include <boost/property_tree/ptree.hpp>
-#include <boost/property_tree/xml_parser.hpp>
-
-#include <sstream>
-#include <string>
-
-#include "https.h"
-
-using namespace std::string_literals;
-
-class HTTPSFixture
-{
-public:
- HTTPSFixture(){}
- ~HTTPSFixture(){}
- void setup(){}
- void teardown(){}
-};
-
-BOOST_FIXTURE_TEST_CASE(https, HTTPSFixture)
-{
-}
-
diff --git a/tests/test-webserver.cpp b/tests/test-webserver.cpp
index 727356d..85859df 100644
--- a/tests/test-webserver.cpp
+++ b/tests/test-webserver.cpp
@@ -1113,6 +1113,7 @@ echo -ne "HTTP_HOST: $HTTP_HOST\r\n"
BOOST_FIXTURE_TEST_CASE(empty_config, Fixture)
{
WebserverProcess serverProcess{""};
+ std::this_thread::sleep_for(std::chrono::milliseconds(50));
BOOST_REQUIRE_EQUAL(serverProcess.is_running(), false);
}
@@ -1123,5 +1124,6 @@ BOOST_FIXTURE_TEST_CASE(incomplete_config, Fixture)
<group>www-data</group>
</webserver>)CONFIG"};
WebserverProcess serverProcess{webserver_config};
+ std::this_thread::sleep_for(std::chrono::milliseconds(50));
BOOST_REQUIRE_EQUAL(serverProcess.is_running(), false);
}