Skip to content

Commit

Permalink
yang
Browse files Browse the repository at this point in the history
  • Loading branch information
wen587 committed Dec 17, 2024
1 parent 8652555 commit 32692ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sonic-config-engine/tests/test_j2files.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

class TestJ2Files(TestCase):
def setUp(self):
self.yang = utils.YangWrapper()
self.test_dir = os.path.dirname(os.path.realpath(__file__))
self.script_file = [utils.PYTHON_INTERPRETTER, os.path.join(self.test_dir, '..', 'sonic-cfggen')]
self.simple_minigraph = os.path.join(self.test_dir, 'simple-sample-graph.xml')
Expand Down Expand Up @@ -322,6 +323,7 @@ def test_l2switch_template_dualtor(self):

def test_t1_smartswitch_template(self):
argument = ['-k', 'SSwitch-32x1000Gb', '--preset', 't1-smartswitch', '-p', self.t1_ss_port_config]
self.assertTrue(self.yang.validate(argument))
output = self.run_script(argument)
output_json = json.loads(output)

Expand Down

0 comments on commit 32692ea

Please sign in to comment.