Skip to content

Commit

Permalink
Address comment about redis-cli vs sonic-db-cli.
Browse files Browse the repository at this point in the history
This failed the test:

admin@vlab-01:~$ sonic-db-cli CONFIG_DB KEYS "TELEMETRY|*"
TELEMETRY|gnmi
TELEMETRY|certs

After configuration. Unknown reason but indeed reflect a problem about
the previous process.
  • Loading branch information
hdwhdw committed Oct 7, 2024
1 parent 3a729c4 commit 2f64840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/l2/test_l2_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_l2_config_and_upgrade(request, duthosts, rand_one_dut_hostname, localho
# Step 4: Verifies no config fro minigraph is written into ConfigDB.
try:
for table in ["TELEMETRY", "RESTAPI", "DEVICE_METADATA"]:
count = int(duthost.shell('redis-cli --scan --pattern "{}*" | wc -l'.format(table))['stdout'])
count = int(duthost.shell('sonic-db-cli CONFIG_DB KEYS "{}|* | wc -l'.format(table))['stdout'])
pytest_assert(count == 0, "{} table is not empty!".format(table))
except Exception:
raise
Expand Down

0 comments on commit 2f64840

Please sign in to comment.