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

WIP: retrieve simple entity

parent fbd385f0
No related branches found
No related tags found
No related merge requests found
Pipeline #10015 failed
......@@ -4,8 +4,7 @@ services:
image: "$CPPINTTEST_REGISTRY_IMAGE"
environment:
CAOSDB_SERVER_HOST: caosdb-server
CAOSDB_SERVER_PORT: 8443
CAOSDB_SERVER_CA_PEM: /cert/caosdb.cert.pem
CAOSDB_SERVER_CERT: /cert/caosdb.cert.pem
networks:
- docker_caosnet
volumes:
......
......@@ -107,7 +107,7 @@ TEST(test_connection, connection_ssl_authentication_error_wrong_credentials) {
}
TEST(test_connection, connection_ssl_authentication_success) {
auto pConnection = get_test_connection();
const auto &pConnection = get_test_connection();
auto major = 0;
auto minor = 5;
......
......@@ -18,17 +18,11 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#include <gtest/gtest-message.h> // for Message
#include <gtest/gtest-test-part.h> // for SuiteApiResolver, TestPartResult
#include <memory> // for make_shared, allocator, shared_ptr
#include <string> // for string
#include <memory> // for allocator, make_shared, shared_ptr
#include <string> // for stoi, string
#include "caosdb/authentication.h" // for PlainPasswordAuthenticator
#include "caosdb/connection.h" // for InsecureCaosDBConnectionConfig
#include "caosdb/exceptions.h" // for AuthenticationError, ConnectionError
#include "caosdb/info.h" // for VersionInfo
#include "caosdb/connection.h" // for PemFileCACertProvider, SslCaosDBC...
#include "caosdb/utils.h" // for get_env_var
#include "gtest/gtest_pred_impl.h" // for Test, TEST, EXPECT_EQ, EXPECT_THROW
#include "caosdb_test_utility.h"
namespace caosdb::connection {
using caosdb::authentication::PlainPasswordAuthenticator;
......
......@@ -20,20 +20,17 @@
*/
#include <gtest/gtest-message.h> // for Message
#include <gtest/gtest-test-part.h> // for SuiteApiResolver, TestFactoryImpl
#include <memory> // for allocator, make_shared, static_po...
#include <string> // for stoi
#include "caosdb/authentication.h" // for PlainPasswordAuthenticator
#include "caosdb/connection.h" // for InsecureCaosDBConnectionConfig
#include <memory> // for allocator, static_pointer_cast
#include "caosdb/connection.h" // for CaosDBConnection
#include "caosdb/entity.h" // for Entity, EntityID
#include "caosdb/transaction.h" // for Transaction, UniqueResult, Entity
#include "caosdb/utils.h" // for get_env_var
#include "gtest/gtest_pred_impl.h" // for Test, TestInfo, EXPECT_EQ, TEST
#include "test_connection.h"
#include "test_connection.h" // for get_test_connection
namespace caosdb::transaction {
TEST(test_transaction, first_test) {
const auto& connection = caosdb::connection::get_test_connection();
const auto &connection = caosdb::connection::get_test_connection();
const auto *description = "This is an entity";
auto transaction(connection->CreateTransaction());
......
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