From c0c3cce6bee0e335cf1b5528f1172b511d48ee12 Mon Sep 17 00:00:00 2001 From: Praveen Chaudhary Date: Thu, 30 Jul 2020 10:02:56 -0700 Subject: [PATCH] [config/config_mgmt.py]: Fix typo and enable test for tablesWithOutYang() (#1012) Fix typo and enable test for tablesWithOutYang() Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com --- config/config_mgmt.py | 2 +- sonic-utilities-tests/config_mgmt_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config_mgmt.py b/config/config_mgmt.py index c9db79ea90..5e35f299ae 100644 --- a/config/config_mgmt.py +++ b/config/config_mgmt.py @@ -83,7 +83,7 @@ def __init__(self, source="configDB", debug=False, allowTablesWithoutYang=True): def __del__(self): pass - def tablesWithoutYang(self): + def tablesWithOutYang(self): ''' Return tables loaded in config for which YANG model does not exist. diff --git a/sonic-utilities-tests/config_mgmt_test.py b/sonic-utilities-tests/config_mgmt_test.py index aec7f75e30..4133ab2194 100644 --- a/sonic-utilities-tests/config_mgmt_test.py +++ b/sonic-utilities-tests/config_mgmt_test.py @@ -32,7 +32,7 @@ def test_table_without_yang(self): self.updateConfig(curConfig, unknown) self.writeJson(curConfig, config_mgmt.CONFIG_DB_JSON_FILE) cm = config_mgmt.ConfigMgmt(source=config_mgmt.CONFIG_DB_JSON_FILE) - #assert "unknown_table" in cm.tablesWithoutYang() + assert "unknown_table" in cm.tablesWithOutYang() return def test_search_keys(self):