Commit 48fe9e92 authored by Volker Krause's avatar Volker Krause
Browse files

Actually submit a sample here

parent 03d7da84
......@@ -26,7 +26,7 @@ target_link_libraries(datasourcetest UserFeedbackCore Qt5::Gui Qt5::Test) # need
add_test(NAME datasourcetest COMMAND datasourcetest)
add_executable(providertest providertest.cpp)
target_link_libraries(providertest UserFeedbackTestUtils UserFeedbackCore)
target_link_libraries(providertest UserFeedbackTestUtils UserFeedbackCore Qt5::Gui)
add_test(NAME providertest COMMAND providertest)
set(php_test_srcs
......
......@@ -86,10 +86,12 @@ private slots:
// submit data
Provider provider;
provider.setStatisticsCollectionMode(Provider::AllStatistics); // TODO test with no stats, should not create a sample record
provider.setProductIdentifier(QStringLiteral("org.kde.UserFeedback.UnitTestProduct"));
provider.setFeedbackServer(m_server.url());
provider.addDataSource(new ScreenInfoSource, Provider::AllStatistics);
provider.submit();
QTest::qWait(10); // HACK submit is async
// retrieve data
reply = RESTApi::listSamples(&client, p);
......
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