Beispiel #1
0
 def test_analyze_nodes_cli(self):
     parser = root_cli.create_parser()
     args = parser.parse_args([
         "netvirt", "analyze", "nodes", "-p",
         "--path=" + tests.get_resources_path()
     ])
     with capture.capture(args.func, args) as output:
         self.assertTrue("203251201875890" in output)
Beispiel #2
0
 def test_show_neutron2(self):
     parser = root_cli.create_parser()
     args = parser.parse_args([
         "show", "neutron", "ports", "-p",
         "--path=" + tests.get_resources_path()
     ])
     with capture.capture(args.func, args) as output:
         self.assertTrue("8e3c262e-7b45-4222-ac4e-528db75e5516" in output)
Beispiel #3
0
 def test_show_idpools_cli(self):
     parser = root_cli.create_parser()
     args = parser.parse_args([
         "netvirt", "show", "id-pools", "-p",
         "--path=" + tests.get_resources_path(), "all"
     ])
     with capture.capture(args.func, args) as output:
         self.assertTrue("interfaces" in output)
Beispiel #4
0
 def test_analyze_tunnels(self):
     parser = root_cli.create_parser()
     args = parser.parse_args([
         "netvirt", "analyze", "tunnels", "-p",
         "--path=" + tests.get_resources_path()
     ])
     with capture.capture(args.func, args) as output:
         self.assertTrue("..All" in output)
         self.assertTrue("up" in output)
Beispiel #5
0
 def test_csit(self):
     parser = cli.create_parser()
     args = parser.parse_args(
         ['csit', self.DATAPATH, self.OUTPATH, '-g', '-d'])
     robotfiles.run(args)
Beispiel #6
0
 def test_parser_help(self):
     parser = cli.create_parser()
     with self.assertRaises(SystemExit) as cm:
         parser.parse_args(['-h'])
     self.assertEqual(cm.exception.code, 0)
Beispiel #7
0
 def test_analyze_nodes(self):
     parser = root_cli.create_parser()
     args = parser.parse_args(["analyze", "nodes", "-p", "--path=" + tests.get_resources_path()])
     with capture.capture(args.func, args) as output:
         self.assertTrue("203251201875890" in output)
Beispiel #8
0
 def test_csit(self):
     parser = cli.create_parser()
     args = parser.parse_args(['csit', self.DATAPATH, self.OUTPATH, '-g', '-d'])
     robotfiles.run(args)
Beispiel #9
0
 def test_parser_help(self):
     parser = cli.create_parser()
     with self.assertRaises(SystemExit) as cm:
         parser.parse_args(['-h'])
     self.assertEqual(cm.exception.code, 0)