Skip to content

Commit

Permalink
Remove internal unit test on quagga bgpd.conf.j2
Browse files Browse the repository at this point in the history
  • Loading branch information
qiluo-msft committed Mar 30, 2022
1 parent ebf8af0 commit 00eb59f
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/sonic-config-engine/tests/test_bgp_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,6 @@ def run_diff(self, file1, file2):

return output

def run_bgpd_test(self, minigraph, portconfig, valid_result_file):
conf_template = os.path.join(self.test_dir, '..', '..', '..', 'dockers', 'docker-fpm-quagga', 'bgpd.conf.j2')
argument = '-m ' + minigraph + ' -p ' + portconfig + ' -t ' + conf_template + ' -y ' + self.deployment_id_asn_map + ' -j ' + self.device_metadata + ' > ' + self.output_file
self.run_script(argument)
original_filename = os.path.join(self.test_dir, 'sample_output', utils.PYvX_DIR, valid_result_file)
r = filecmp.cmp(original_filename, self.output_file)
diff_output = self.run_diff(original_filename, self.output_file) if not r else ""
self.assertTrue(r, "Diff:\n" + diff_output)

def test_bgpd_t1(self):
return self.run_bgpd_test(self.t1_minigraph, self.dell_s6000_port_config, 'CO4SCH04001AALF.bgpd.conf')

def test_bgpd_tycoon_t1(self):
return self.run_bgpd_test(self.tycoon_t1_minigraph, self.a7060_port_config, 'SN1-0102-0201-11T1.bgpd.conf')

def test_bgpd_m0(self):
return self.run_bgpd_test(self.m0_minigraph, self.hlx_port_config, 'MWH01-0100-0202-01M0.bgpd.conf')

def tearDown(self):
try:
os.remove(self.output_file)
Expand Down

0 comments on commit 00eb59f

Please sign in to comment.