mirror of
https://gitlab.com/spaceti-app/integrations/acs/colnod-connector.git
synced 2026-07-12 13:00:41 +02:00
increase timeout to 15s
This commit is contained in:
parent
e9df6e58d0
commit
3de57f1c35
@ -6,7 +6,7 @@ void UnitTest::loginSuccessfully()
|
||||
QJsonDocument config = testAccess->getConfig();
|
||||
QSignalSpy spy(testAccess, SIGNAL(successLogin()));
|
||||
testAccess->login(host, email, password);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = testAccess->getResponse();
|
||||
@ -21,7 +21,7 @@ void UnitTest::getSubjects()
|
||||
RequestManager* testAccess = new RequestManager();
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getSubjects();
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -39,7 +39,7 @@ void UnitTest::getTokens()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getTokens();
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -56,7 +56,7 @@ void UnitTest::getTokenSubject()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getTokenSubject();
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -69,7 +69,7 @@ void UnitTest::getSubjectsUpdated()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getSubjectsUpdated(1568646217767);
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -82,7 +82,7 @@ void UnitTest::getSubjectsDeleted()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getSubjectsDeleted(1568646217767);
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -95,7 +95,7 @@ void UnitTest::getTokensUpdated()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getTokensUpdated(1570109859681);
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -108,7 +108,7 @@ void UnitTest::getTokensDeleted()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getTokensDeleted(1570109859681);
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -121,7 +121,7 @@ void UnitTest::getAccessGroups()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getAccessGroups();
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -134,7 +134,7 @@ void UnitTest::getAccessGroupsUpdated()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getAccessGroupsUpdated(1568646217767);
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -147,7 +147,7 @@ void UnitTest::getAccessGroupsDeleted()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getAccessGroupsDeleted(1568646217767);
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -160,7 +160,7 @@ void UnitTest::getAccessGroupMembership()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getAccessGroupMembership();
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -173,7 +173,7 @@ void UnitTest::getAccessGroupMembershipUpdated()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getAccessGroupMembershipUpdated(1568646217767);
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -186,7 +186,7 @@ void UnitTest::getAccessGroupMembershipDeleted()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getAccessGroupMembershipDeleted(1568646217767);
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -198,7 +198,7 @@ void UnitTest::setTokens()
|
||||
QFile jsonData(QDir::current().filePath("tokens.json"));
|
||||
|
||||
if (!jsonData.open(QIODevice::ReadOnly)) {
|
||||
qCritical() << "Couldn't open config file config.json" << QDir::current().filePath("subjects.json");
|
||||
qCritical() << "Couldn't open config file config.json" << QDir::current().filePath("tokens.json");
|
||||
QCoreApplication::exit(-1);
|
||||
return;
|
||||
}
|
||||
@ -219,7 +219,7 @@ void UnitTest::setTokens()
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->setTokens(tokens);
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -235,7 +235,7 @@ void UnitTest::deleteTokens()
|
||||
ids.append("3ff23b41-3da3-4b33-82ce-d8e2d8c9a546");
|
||||
Response* response = testAccess->deleteTokens(ids);
|
||||
QCOMPARE(spy.count(), 0);
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QVERIFY(spy.isValid());
|
||||
QCOMPARE(spy.count(), 1);
|
||||
QString json = response->reply->readAll();
|
||||
@ -260,7 +260,7 @@ void UnitTest::subjectJSONParser()
|
||||
RequestManager* testAccess = new RequestManager();
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getSubjects();
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QString json = response->reply->readAll();
|
||||
QJsonDocument doc = QJsonDocument::fromJson(json.toUtf8());
|
||||
QJsonArray arr = doc.object()["items"].toArray();
|
||||
@ -275,7 +275,7 @@ void UnitTest::tokenJSONParser()
|
||||
RequestManager* testAccess = new RequestManager();
|
||||
QSignalSpy spy(testAccess, SIGNAL(responseReady()));
|
||||
Response* response = testAccess->getTokens();
|
||||
spy.wait(10000);
|
||||
spy.wait(15000);
|
||||
QString json = response->reply->readAll();
|
||||
QJsonDocument doc = QJsonDocument::fromJson(json.toUtf8());
|
||||
QJsonArray arr = doc.object()["items"].toArray();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user