Пример #1
0
 def setUp(self):
     runner = Runner(files=[
         inputpath + "setup_lxc.json",
     ],
                     logpath=self.folder)
     runner.prepare()
     runner.run()
Пример #2
0
 def test_fru_configure(self):
     runner = Runner(files= [inputpath+"start_cli.json",
                             inputpath+"fru.json",
                             inputpath+"close_session.json",], 
                     logpath=self.folder)
     runner.prepare()
     runner.run()
     runner.shutdown()
Пример #3
0
    def testLogDirectoryCreated(self):
        runner = Runner(files='test_file.json', logpath=self.folder)
        runner.prepare()

        #Directories should exist
        self.assertTrue(os.path.isdir(self.folder))
        self.assertTrue(os.path.isfile(self.folder + '/OUT_LOG_1.script'))
        self.assertTrue(os.path.isfile(self.folder + '/OUT_LOG_2.script'))
        runner.shutdown()
Пример #4
0
 def test_vpls_sd_eth_pw(self):
     self.print_function("test_vpls_sd_eth_pw")
     files = [
         'attach_lxc', 'common', 'ldp_lsp', 'CONFIG_VPLS_SD_ETH_PW',
         'detach_lxc'
     ]
     files = [inputpath + f + '.json' for f in files]
     runner = Runner(files=files, logpath=self.folder)
     runner.prepare()
     runner.run()
     runner.shutdown()
Пример #5
0
 def test_static_config_nhop_own_interface(self):
     self.print_function("test_static_config_nhop_own_interface")
     files = ['attach_lxc',
              'CONFIG_NHOP_OWN_INTERFACE',
              'detach_lxc']
     files = [inputpath+f+'.json' for f in files]
     runner = Runner(files=files, 
                     logpath=self.folder)
     runner.prepare()
     runner.run()
     runner.shutdown()
Пример #6
0
 def test_static_config_ingress_invalid_interface(self):
     self.print_function("test_static_config_ingress_invalid_interface")
     files = ['attach_lxc',
              'CONFIG_INGRESS_INVALID_INTERFACE',
              'detach_lxc']
     files = [inputpath+f+'.json' for f in files]
     runner = Runner(files=files, 
                     logpath=self.folder)
     runner.prepare()
     runner.run()
     runner.shutdown()
Пример #7
0
 def test_static_config_egress(self):
     self.print_function("test_static_config_egress")
     files = ['attach_lxc',
              'common',
              'CONFIG_EGRESS',
              'detach_lxc']
     files = [inputpath+f+'.json' for f in files]
     runner = Runner(files=files, 
                     logpath=self.folder)
     runner.prepare()
     runner.run()
     runner.shutdown()
Пример #8
0
 def test_static_config_ingress_modify_label(self):
     self.print_function("test_static_config_ingress_three_label")
     files = ['attach_lxc',
              'common',
              'CONFIG_INGRESS_MODIFY_LABEL',
              'detach_lxc']
     files = [inputpath+f+'.json' for f in files]
     runner = Runner(files=files, 
                     logpath=self.folder)        
     runner.prepare()
     runner.run()
     runner.shutdown()
Пример #9
0
 def test_static_config_mpls_disable(self):
     self.print_function("test_static_config_mpls_disable")
     files = ['attach_lxc',
              'common',
              'CONFIG_MPLS_DISABLE',
              'detach_lxc']
     files = [inputpath+f+'.json' for f in files]
     runner = Runner(files=files, 
                     logpath=self.folder)
     runner.prepare()
     runner.run()
     runner.shutdown()
Пример #10
0
 def testLXCAttach(self):
     runner = Runner(files=[inputpath + "ssh_to_target.json"],
                     logpath=self.folder)
     runner.prepare()
     runner.run()
     runner.shutdown()
Пример #11
0
 def tearDown(self):
     runner = Runner(files= [inputpath+"teardown_lxc.json",], 
                     logpath=self.folder)
     runner.prepare()
     runner.run()
     runner.shutdown()