class TCellAgent::Tests::ConfigurationBuilder
Public Class Methods
new()
click to toggle source
# File spec/support/builders.rb, line 7 def initialize @configuration = TCellAgent::ConfigInitializer.new @configuration.fetch_policies_from_tcell = false @configuration.max_csp_header_bytes = nil @configuration.app_id = 'TestAppId-AppId' @configuration.api_key = 'TestAppId-AppId' @configuration.tcell_api_url = 'https://api.tcell-preview.io/agents/api/v1' @configuration.tcell_input_url = 'https://input.tcell-preview.io/api/v1' @configuration.hmac_key = nil @configuration.password_hmac_key = nil @configuration.allow_payloads = true @configuration.js_agent_api_base_url = @configuration.tcell_api_url @configuration.js_agent_url = 'https://jsagent.tcell.io/tcellagent.min.js' @configuration.agent_log_dir = 'tcell/logs' @configuration.logging_options = { :enabled => false } @configuration.host_identifier = 'python-test-suite' @configuration.reverse_proxy_ip_address_header = 'X-Forwarded-For' @configuration.enable_intercept_requests = true @configuration.enabled = true end
Public Instance Methods
build()
click to toggle source
# File spec/support/builders.rb, line 34 def build @configuration end
update_attribute(attribute, setting)
click to toggle source
# File spec/support/builders.rb, line 28 def update_attribute(attribute, setting) @configuration.send("#{attribute}=", setting) self end