From 367376f283b95832705b20a2361fd55ce82cf7be Mon Sep 17 00:00:00 2001 From: Filip Bucek Date: Wed, 27 Nov 2019 14:27:50 +0100 Subject: [PATCH] disabled test ( runner has access to postgresql database ) + have to add method to test wrong credentials or IP --- test/auto/database/tst_databaseapi.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/auto/database/tst_databaseapi.cpp b/test/auto/database/tst_databaseapi.cpp index b3b3d1d..82878f8 100644 --- a/test/auto/database/tst_databaseapi.cpp +++ b/test/auto/database/tst_databaseapi.cpp @@ -16,7 +16,11 @@ void DatabaseTest::open_database_test() serversdk::DatabaseManager dbManager; DatabaseAPI db(&dbManager, false); - QVERIFY(!db.open()); + // TODO: fix -> databaseAPI must be able to add credentials to check for wrong one or test wrong IP + //db.open(user, password, url, etc ); + // then test with wrong credentials + // QVERIFY(!db.open(worng usernae)); + // QVERIFY(!db.open(worng ip)); } QTEST_APPLESS_MAIN(DatabaseTest)