def test_table_without_yang(self): curConfig = dict(configDbJson) unknown = {"unknown_table": {"ukey": "uvalue"}} 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() return
def test_config_validation(self): curConfig = dict(configDbJson) self.writeJson(curConfig, config_mgmt.CONFIG_DB_JSON_FILE) cm = config_mgmt.ConfigMgmt(source=config_mgmt.CONFIG_DB_JSON_FILE) assert cm.validateConfigData() == True return