Skip to content
Snippets Groups Projects
Verified Commit 548f4225 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

TST: update tests

parent ae5ab795
No related branches found
No related tags found
2 merge requests!22F remove boost rdep,!19"TST: update tests"
Pipeline #19204 passed
...@@ -84,7 +84,7 @@ TEST(test_connection, connection_ssl_authentication_error_anonymous) { ...@@ -84,7 +84,7 @@ TEST(test_connection, connection_ssl_authentication_error_anonymous) {
EXPECT_THROW_MESSAGE(connection.RetrieveVersionInfo(), AuthenticationError, EXPECT_THROW_MESSAGE(connection.RetrieveVersionInfo(), AuthenticationError,
"The attempt to execute this transaction has not been " "The attempt to execute this transaction has not been "
"executed at all because the authentication did not " "executed at all because the authentication did not "
"succeed. Original error: Please login."); "succeed. Original error: Please log in!");
} }
TEST(test_connection, connection_ssl_authentication_error_wrong_credentials) { TEST(test_connection, connection_ssl_authentication_error_wrong_credentials) {
......
...@@ -65,17 +65,14 @@ public: ...@@ -65,17 +65,14 @@ public:
*/ */
static auto generateDatetimeValues() -> std::vector<std::string> { static auto generateDatetimeValues() -> std::vector<std::string> {
std::vector<std::string> values = { std::vector<std::string> values = {
//TODO(tf) (these work, but would need conversion here in the tests due // TODO(tf) (these work, but would need conversion here in the tests due
//to the time zone information) // to the time zone information)
//"2022-12-24T18:15:00.999999+0200", //"2022-12-24T18:15:00.999999+0200",
//"2022-12-24T18:15:00.999999UTC", //"2022-12-24T18:15:00.999999UTC",
//"2022-12-24T18:15:00", //"2022-12-24T18:15:00",
//"2022-12-24T18:15:00.999999", //"2022-12-24T18:15:00.999999",
//"", //"",
"2022", "2022", "2022-12", "2022-12-24"};
"2022-12",
"2022-12-24"
};
return values; return values;
} }
...@@ -775,7 +772,7 @@ TEST_F(test_transaction, test_datetime_values) { ...@@ -775,7 +772,7 @@ TEST_F(test_transaction, test_datetime_values) {
auto values_orig = test_transaction::generateDatetimeValues(); auto values_orig = test_transaction::generateDatetimeValues();
auto props_orig = std::vector<Entity>(); auto props_orig = std::vector<Entity>();
size_t i = 0; size_t i = 0;
for (const auto& value : values_orig) { for (const auto &value : values_orig) {
auto insert_transaction(connection->CreateTransaction()); auto insert_transaction(connection->CreateTransaction());
Entity prop; Entity prop;
prop.SetRole(Role::PROPERTY); prop.SetRole(Role::PROPERTY);
...@@ -797,7 +794,7 @@ TEST_F(test_transaction, test_datetime_values) { ...@@ -797,7 +794,7 @@ TEST_F(test_transaction, test_datetime_values) {
// Retrieve and verify // Retrieve and verify
i = 0; i = 0;
for (const auto& value : values_orig) { for (const auto &value : values_orig) {
auto retrieve_transaction(connection->CreateTransaction()); auto retrieve_transaction(connection->CreateTransaction());
const auto prop = props_orig[i]; const auto prop = props_orig[i];
const auto name = std::string("Prop ") + std::to_string(i); const auto name = std::string("Prop ") + std::to_string(i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment