Sha256: 73322a2c9c562350a111db25868762a8303a955919428114c5a32e275e1cc6bd
Contents?: true
Size: 719 Bytes
Versions: 7
Compression:
Stored size: 719 Bytes
Contents
# To run: jruby -S bundle exec rspec -fd spec require "logstash/devutils/rspec/spec_helper" require_relative '../../lib/logstash/inputs/perfmon_proc_getter.rb' describe 'UnitTests' do describe 'PerfmonProcGetter' do subject(:getter) { PerfmonProcGetter.new } describe 'get_typeperf_command' do it 'should be expected command' do result = getter.get_typeperf_command(["test_counter", "test_counter_2"], 1) expect(result).to eq 'typeperf "test_counter" "test_counter_2" -si 1' end end describe 'get_all_counters_command' do it 'should be expected command' do result = getter.get_all_counters_command expect(result).to eq 'typeperf -q' end end end end
Version data entries
7 entries across 7 versions & 1 rubygems