5 from changes import Changes
7 REMOTE_URL = 'ssh://git.opendaylight.org:29418'
8 NETVIRT_PROJECTS = ["netvirt", "controller", "dlux", "dluxapps", "genius", "infrautils", "mdsal", "netconf",
9 "neutron", "odlparent", "openflowplugin", "ovsdb", "sfc", "yangtools"]
10 PROJECT_NAMES = NETVIRT_PROJECTS
11 DISTRO_PATH = "/tmp/distribution-karaf"
17 class TestChanges(unittest.TestCase):
20 print("Starting test: %s" % self.id())
23 def run_cmd(branch, distro_patch, limit, qlimit, project_names, remote_url):
24 changes = Changes(branch, distro_patch, limit, qlimit, project_names, remote_url, 3)
25 projects = changes.run_cmd()
26 changes.pretty_print_projects(projects)
28 def test_run_cmd_single(self):
29 project_names = ['netconf']
30 self.run_cmd(BRANCH, DISTRO_PATH, LIMIT, QLIMIT, project_names, REMOTE_URL)
32 def test_run_cmd_multiple(self):
33 project_names = PROJECT_NAMES
34 self.run_cmd(BRANCH, DISTRO_PATH, LIMIT, QLIMIT, project_names, REMOTE_URL)
37 if __name__ == '__main__':