Exemplo n.º 1
0
 def test_output_sanitization_17_1_1(self, cleanup):
     netscaler_conv(config_file_name=setup.get('config_file_name'),
                    controller_version=setup.get('controller_version_v17'),
                    output_file_path=setup.get('output_file_path'))
     
     xlsx_file = '%s/ns-ConversionStatus.xlsx' %setup.get('output_file_path')
     json_file = '%s/ns-Output.json' %setup.get('output_file_path')
     output_sanitization(xlsx_file, json_file)
Exemplo n.º 2
0
 def test_output_sanitization_v11(self, cleanup):
     f5_conv(bigip_config_file=setup.get('config_file_name_v11'),
             f5_config_version=setup.get('file_version_v11'),
             controller_version=setup.get('controller_version_v17'),
             output_file_path=output_file)
     self.excel_path = os.path.abspath(
         os.path.join(output_file, 'bigip_v11-ConversionStatus.xlsx'))
     self.json_path = os.path.abspath(
         os.path.join(output_file, 'bigip_v11-Output.json'))
     self.log_path = os.path.abspath(
         os.path.join(output_file, 'converter.log'))
     assert output_sanitization(self.excel_path, self.json_path,
                                self.log_path)
Exemplo n.º 3
0
    def test_output_sanitization_v10(self):
        self.excel_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
                                                       'output/bigip_v10-ConversionStatus.xlsx'))
        self.json_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
                                                      'output/bigip_v10-Output.json'))
        self.log_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
                                                     'output/converter.log'))

        f5_conv(bigip_config_file=setup.get('config_file_name_v10'),
                f5_config_version=setup.get('file_version_v10'),
                controller_version=setup.get('controller_version_v17'),
                output_file_path='output')
        assert output_sanitization(self.excel_path,
                                   self.json_path,
                                   self.log_path)
Exemplo n.º 4
0
 def test_output_sanitization_17_1_1(self, cleanup):
     netscaler_conv(config_file_name=setup.get('config_file_name'),
                    controller_version=setup.get('controller_version_v17'),
                    output_file_path='output')
     output_sanitization('./output/ns-ConversionStatus.xlsx',
                         './output/ns-Output.json')
Exemplo n.º 5
0
 def test_output_sanitization_17_1_1(self, cleanup):
     netscaler_conv(config_file_name=setup.get('config_file_name'),
                    controller_version=setup.get('controller_version_v17'),
                    output_file_path='output')
     output_sanitization('./output/ns-ConversionStatus.xlsx',
                         './output/ns-Output.json')