Skip to content

Commit

Permalink
Added override of inherited test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Feb 16, 2017
1 parent f9996b2 commit 5e1f1ee
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions applications/multisite/intersite_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,23 @@ def test_basic_add_endpoint(self):
self.assertFalse(self.verify_remote_site_has_entry(mac, ip, 'intersite-testsuite-site3',
'l3out', 'intersite-testsuite-app-epg'))

def test_basic_remove_endpoint(self):
"""
Test remove endpoint
"""
mac, ip = self.setup_with_endpoint()
time.sleep(2)
self.assertTrue(self.verify_remote_site_has_entry(mac, ip, 'intersite-testsuite',
'l3out', 'intersite-testsuite-app-epg'))
self.assertFalse(self.verify_remote_site_has_entry(mac, ip, 'intersite-testsuite-site3',
'l3out', 'intersite-testsuite-app-epg'))
self.remove_endpoint(mac, ip, 'intersite-testsuite', 'app', 'epg')
time.sleep(2)
self.assertFalse(self.verify_remote_site_has_entry(mac, ip, 'intersite-testsuite',
'l3out', 'intersite-testsuite-app-epg'))
self.assertFalse(self.verify_remote_site_has_entry(mac, ip, 'intersite-testsuite-site3',
'l3out', 'intersite-testsuite-app-epg'))


class TestBasicEndpointsWithThreeRemoteSites(TestBasicEndpointsWithMultipleRemoteSites):
def create_config_file(self):
Expand Down

0 comments on commit 5e1f1ee

Please sign in to comment.