• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

roundup-tracker / roundup / 7378899365
74%

Build:
DEFAULT BRANCH: master
Ran 01 Jan 2024 05:36PM UTC
Jobs 1
Files 114
Run time 8s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Dec 2023 08:13PM UTC coverage: 74.97% (+0.06%) from 74.912%
7378899365

push

github

rouilj
fix(db): Make using pg_service work again.

When I did the merge of schema support I broke pg_service.conf support
by replacing get_database_name with db_schema_split.  This commit
fixes it.

Also this commit returns the schema if one is specified in
pg_service.conf.

back_postgresql.py:

  Replace calls to db_schema_split() with get_database_schema_names()
  (new name for get_database_name()).  Rename db_schema_split to
  _db_schema_split. It now returns a tuple (dbname, schema) rather
  than a list. It is used only by get_database_schema_names() which
  also returns tuples.

  get_database_schema_names() can also get schema info for the service

  (if present) as specified by pg_service.conf.

  Add get_database_user() to get the user from either RDBMS_USER or
  pg_service.conf. (User needed for creating schema, so not needed
  before schema patch.

  import re at the top of file and remove lower import.

  Remove some schema code from db_command as it's not needed. The
  database conection is done to either postgresql or template1
  existing databases. This command never connects to the roundp
  specified db.

test/test_postgresql.py:

  Reorganize top level imports, add import os.  Replace import of
  db_schema_split with get_database_schema_names. Also replace calls
  to db_schema_split.

  Create new Opener for the service file. Set PGSERVICEFILE to point
  to test/pg_service.conf.

  Add three new classes to test Service:

    1) using regular db
    2) using schema within db
    3) Unable to parse schema name from pg_service.conf.

  The last doesn't need a db. Number 1 and 2 reuse the tests in ROTest
  to verify db connectivity.

test/pg_service.conf:

  three service connections for: db only, db and schema, and incorrectly
  specified schema test cases.

doc/upgrading.txt:

  updated to current status. Included example schema definition in
  service file.

17768 of 23700 relevant lines covered (74.97%)

3.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7378899365.1 01 Jan 2024 05:36PM UTC 0
74.97
GitHub Action Run
Source Files on build 7378899365
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #7378899365
  • c8eb6dbd on github
  • Prev Build on master (#7344417796)
  • Next Build on master (#7564097942)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc