From 605dd0f56c7546184c4f707cace4544fc96508fc Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Thu, 18 Apr 2024 21:45:50 +0300 Subject: [PATCH] wip --- .github/workflows/ci.yml | 16 ---------------- CMakeLists.txt | 1 + configs/config_vars.testing.yaml | 2 ++ configs/config_vars.yaml | 2 +- 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4651f19..ee72d50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,22 +25,6 @@ jobs: name: '${{matrix.os}}: ${{matrix.info}}' runs-on: ${{matrix.os}} - services: - postgres: - image: postgres - - env: - POSTGRES_PASSWORD: password - POSTGRES_USER: uservice_dynconf - POSTGRES_DB: uservice_dynconf - - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 5432:5432 steps: - uses: actions/checkout@v2 with: diff --git a/CMakeLists.txt b/CMakeLists.txt index 5785ede..b31825b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,7 @@ if(NOT userver_FOUND) # Fallback to subdirectory usage endif() endif() userver_setup_environment() +enable_testing() # Service target file( diff --git a/configs/config_vars.testing.yaml b/configs/config_vars.testing.yaml index 9adc21b..b19b7df 100644 --- a/configs/config_vars.testing.yaml +++ b/configs/config_vars.testing.yaml @@ -3,4 +3,6 @@ logger-level: debug is_testing: true +server-port: 8083 + dbconnection: 'postgresql://testsuite@localhost:15433/testdb_uservice_dynconf' diff --git a/configs/config_vars.yaml b/configs/config_vars.yaml index 9424715..6a8de8d 100644 --- a/configs/config_vars.yaml +++ b/configs/config_vars.yaml @@ -1,5 +1,5 @@ worker-threads: 4 -logger-level: debug +logger-level: info is_testing: false