yandextank/plugins/Phantom/utils.py
def read_config(self):
        """ reads config """
        # multi-options
        self.ssl = self.get_option("ssl")
        self.tank_type = self.get_option("tank_type")
        # TODO: refactor. Maybe we should decide how to interact with
        # StepperWrapper here.
        # self.instances = self.get_option('instances')
        self.gatling = ' '.join(self.get_option('gatling_ip').split("\n"))
        self.method_prefix = self.get_option("method_prefix")
        self.method_options = self.get_option("method_options")
        self.source_log_prefix = self.get_option("source_log_prefix")

        self.phantom_http_line = self.get_option("phantom_http_line")
        self.phantom_http_field_num = self.get_option("phantom_http_field_num")
        self.phantom_http_field = self.get_option("phantom_http_field")
        self.phantom_http_entity = self.get_option("phantom_http_entity")

        self.address = self.get_option('address')
        do_test_connect = self.get_option("connection_test")
        explicit_port = self.get_option('port', '')
        self.ipv6, self.resolved_ip, self.port, self.address = self.address_wizard.resolve(
            self.address, do_test_connect, explicit_port)

        logger.info(
            "Resolved %s into %s:%s", self.address, self.resolved_ip, self.port)

        self.client_cipher_suites = self.get_option("client_cipher_suites", "")
        self.client_certificate = self.get_option("client_certificate", "")
        self.client_key = self.get_option("client_key", "")
        self.stepper_wrapper.read_config()
def read_config(self):
        """ reads config """
        # multi-options
        self.ssl = self.get_option("ssl")
        self.tank_type = self.get_option("tank_type")
        # TODO: refactor. Maybe we should decide how to interact with
        # StepperWrapper here.
        # self.instances = self.get_option('instances')
        self.gatling = ' '.join(self.get_option('gatling_ip').split("\n"))
        self.method_prefix = self.get_option("method_prefix")
        self.method_options = self.get_option("method_options")
        self.source_log_prefix = self.get_option("source_log_prefix")

        self.phantom_http_line = self.get_option("phantom_http_line")
        self.phantom_http_field_num = self.get_option("phantom_http_field_num")
        self.phantom_http_field = self.get_option("phantom_http_field")
        self.phantom_http_entity = self.get_option("phantom_http_entity")

        self.address = self.get_option('address')
        do_test_connect = self.get_option("connection_test")
        explicit_port = self.get_option('port', '')
        self.ipv6, self.resolved_ip, self.port, self.address = self.address_wizard.resolve(
            self.address, do_test_connect, explicit_port)

        logger.info(
            "Resolved %s into %s:%s", self.address, self.resolved_ip, self.port)

        self.client_cipher_suites = self.get_option("client_cipher_suites", "")
        self.client_certificate = self.get_option("client_certificate", "")
        self.client_key = self.get_option("client_key", "")
        self.stepper_wrapper.read_config()
def read_config ( self ) : # multi-options self . ssl = self . get_option ( "ssl" ) self . tank_type = self . get_option ( "tank_type" ) # TODO: refactor. Maybe we should decide how to interact with # StepperWrapper here. # self.instances = self.get_option('instances') self . gatling = ' ' . join ( self . get_option ( 'gatling_ip' ) . split ( "\n" ) ) self . method_prefix = self . get_option ( "method_prefix" ) self . method_options = self . get_option ( "method_options" ) self . source_log_prefix = self . get_option ( "source_log_prefix" ) self . phantom_http_line = self . get_option ( "phantom_http_line" ) self . phantom_http_field_num = self . get_option ( "phantom_http_field_num" ) self . phantom_http_field = self . get_option ( "phantom_http_field" ) self . phantom_http_entity = self . get_option ( "phantom_http_entity" ) self . address = self . get_option ( 'address' ) do_test_connect = self . get_option ( "connection_test" ) explicit_port = self . get_option ( 'port' , '' ) self . ipv6 , self . resolved_ip , self . port , self . address = self . address_wizard . resolve ( self . address , do_test_connect , explicit_port ) logger . info ( "Resolved %s into %s:%s" , self . address , self . resolved_ip , self . port ) self . client_cipher_suites = self . get_option ( "client_cipher_suites" , "" ) self . client_certificate = self . get_option ( "client_certificate" , "" ) self . client_key = self . get_option ( "client_key" , "" ) self . stepper_wrapper . read_config ( )
reads config
reads config