command
Version:
v0.0.0-...-964e2e4
Opens a new window with list of versions in this module.
Published: May 16, 2025
License: MIT
Opens a new window with license information.
Imports: 27
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
This is a test area for DBS unit tests. It includes the following files:
data foler contains data used by unit tests, e.g.
data/insert.yaml represents list of insert/look-up APIs to be included with
TestInsertSQL unit tests (see sql_test.go file)
data/primarydataset.json represent data record used by injection
DBS API to insert primary dataset
sql.yaml contains list of APIs and parameters for look-up SQL tests, see
sql_test.go TestSQL api
xxx_test.go represent individual test files for different DBS APIs
Integration Testing
Running make integration will run the integration tests contained in the following files:
integration_test.go contains the main test workflow for integration tests
integration_cases.go contains the logic for implementing the table-driven integration tests
int_*.go represents files that contains the tables for integration tests
data/integration/integration_data.json is the initial data to be populated into the test case tables
Requirements
The following environment variables are required:
PKG_CONFIG_PATH: This is the location of the oci8.pc file
DYLD_LIBRARY_PATH: This is the location of the Oracle instantclient files
DBS_API_PARAMETERS_FILE: DBS API parameters file for DBS server; default static/parameters.json
DBS_READER_LEXICON_FILE: Lexicon file for DBSReader server; default: static/lexicon_reader.json
DBS_WRITER_LEXICON_FILE: Lexicon file for DBSWriter server; default: static/lexicon_writer.json
INTEGRATION_DATA_FILE: File for initial data for test case tables; default: test/data/integration/integration_data.json
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.