Sha256: e60c3cccd9dbe8284101061ce630767b575acde2a2a7b698aa40931822945aa8
Contents?: true
Size: 869 Bytes
Versions: 8
Compression:
Stored size: 869 Bytes
Contents
module Inferno module Utils # @private module PersistInputs def persist_inputs(session_data_repo, params, test_run) available_inputs = test_run.runnable.available_inputs params[:inputs]&.each do |input_params| input = available_inputs .find { |_, runnable_input| runnable_input.name == input_params[:name] } &.last if input.nil? Inferno::Application['logger'].warn( "Unknown input `#{input_params[:name]}` for #{test_run.runnable.id}: #{test_run.runnable.title}" ) next end session_data_repo.save( test_session_id: test_run.test_session_id, name: input.name, value: input_params[:value], type: input.type ) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems