Skip to content

Commit

Permalink
Configure db config file for mgmt-framework and mgmt-common PR tests (s…
Browse files Browse the repository at this point in the history
…onic-net#170)

Multi db enhancements in sonic-mgmt-common requires database_config.json
file for running tests. Updated mgmt-common and mgmt-framework PR test
runner scripts to setup the a dummy database_config.json file.
It includes only 1 local redis instance, running on standard port 6379.
  • Loading branch information
sachinholla authored Oct 9, 2020
1 parent 9d34835 commit 6dbce1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/common/sonic-mgmt-common-build/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
STATUS=0
DEBDIR=$(realpath sonic-mgmt-common/debian/sonic-mgmt-common)

[[ -f sonic-mgmt-common/tools/test/database_config.json ]] && \
export DB_CONFIG_PATH=${PWD}/sonic-mgmt-common/tools/test/database_config.json

# Run CVL tests

pushd sonic-mgmt-common/build/tests/cvl
Expand Down
3 changes: 3 additions & 0 deletions scripts/common/sonic-mgmt-framework-build/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
STATUS=0
DEBDIR=$(realpath sonic-mgmt-common/debian/sonic-mgmt-common)

[[ -f sonic-mgmt-common/tools/test/database_config.json ]] && \
export DB_CONFIG_PATH=${PWD}/sonic-mgmt-common/tools/test/database_config.json

pushd sonic-mgmt-framework/build/tests/rest

export CVL_SCHEMA_PATH=${DEBDIR}/usr/sbin/schema
Expand Down

0 comments on commit 6dbce1f

Please sign in to comment.