Skip to content

Commit 148cded

Browse files
database & endpoint in env
1 parent 60258e0 commit 148cded

File tree

5 files changed

+6
-24
lines changed

5 files changed

+6
-24
lines changed

.github/workflows/tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ jobs:
6161
group: integration-${{ github.ref }}-${{ matrix.os }}-${{ matrix.go-version }}-${{ matrix.ydb-version }}
6262
cancel-in-progress: true
6363
runs-on: ubuntu-latest
64+
env:
65+
ENDPOINT: "localhost:2136"
66+
DATABASE: "/local"
6467
strategy:
6568
fail-fast: false
6669
matrix:

tests/integration/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
set(ENDPOINT "localhost:2136")
2-
set(DATABASE "/local")
3-
configure_file(config_ydb.h.in ${CMAKE_CURRENT_SOURCE_DIR}/config_ydb.h @ONLY)
4-
51
add_subdirectory(basic_example_it)

tests/integration/basic_example_it/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "basic_example.h"
2-
#include "../config_ydb.h"
32

43
#include <src/library/getopt/last_getopt.h>
54

@@ -19,7 +18,9 @@ void StopHandler(int) {
1918

2019
TEST(Integration, BasicExample) {
2120
TOpts opts = TOpts::Default();
22-
21+
22+
std::string database = std::getenv( "DATABASE" );
23+
std::string endpoint = std::getenv( "ENDPOINT" );;
2324
std::string path;
2425
std::string certPath;
2526

tests/integration/config_ydb.h

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/integration/config_ydb.h.in

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)