Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cppinttest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cppinttest
Merge requests
!1
F extern c
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
F extern c
f-extern-c
into
dev
Overview
0
Commits
5
Pipelines
10
Changes
2
Merged
Timm Fitschen
requested to merge
f-extern-c
into
dev
3 years ago
Overview
0
Commits
5
Pipelines
10
Changes
2
Expand
Summary
Tests for
caosdb-cpplib!1 (merged)
Edited
3 years ago
by
Timm Fitschen
0
0
Merge request reports
Viewing commit
d5e2e928
Prev
Next
Show latest version
2 files
+
6
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
d5e2e928
TST: rename ConnectionConfig to ConnectionConfiguration
· d5e2e928
Timm Fitschen
authored
3 years ago
test/test_ccaosdb.cpp
0 → 100644
+
42
−
0
Options
/*
* This file is a part of the CaosDB Project.
*
* Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com>
* Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include
<memory>
// for allocator, unique_ptr
#include
"ccaosdb.h"
// for caosdb_info_version_info, caosdb_...
#include
"gtest/gtest-message.h"
// for Message
#include
"gtest/gtest-test-part.h"
// for TestPartResult
#include
"gtest/gtest_pred_impl.h"
// for Test, EXPECT_EQ, SuiteApiResolver
TEST
(
test_ccaosdb
,
connection_ssl_authentication_success
)
{
caosdb_connection_connection
connection
;
caosdb_connection_connection_manager_get_default_connection
(
&
connection
);
caosdb_info_version_info
version_info
;
caosdb_connection_get_version_info
(
&
version_info
,
&
connection
);
auto
major
=
caosdb_constants_COMPATIBLE_SERVER_VERSION_MAJOR
();
auto
minor
=
caosdb_constants_COMPATIBLE_SERVER_VERSION_MINOR
();
const
auto
*
const
pre_release
=
caosdb_constants_COMPATIBLE_SERVER_VERSION_PRE_RELEASE
();
EXPECT_EQ
(
major
,
version_info
.
major
);
EXPECT_EQ
(
minor
,
version_info
.
minor
);
EXPECT_STREQ
(
pre_release
,
version_info
.
pre_release
);
}
Loading