beaker-benchmark 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad458e9ac88b6a8bd55c65a43f5af149db783f55
4
- data.tar.gz: 4f5d4fcc934e32b208a11a11ab08367a7fd280f0
3
+ metadata.gz: 651d9621a1bdf6acc1d12a57e1011526cbe7fa4a
4
+ data.tar.gz: 4c04290744b4f8be630c9735c3523168b09ef2ea
5
5
  SHA512:
6
- metadata.gz: bcff00e5ba53f4248c64266863f6e67c600b964391c353b3f84dd441ced9bd0da5783f6054cdb9589e299eefdcc2ea29c8f31042a3e50d2d9ea43531db8a1fd2
7
- data.tar.gz: c8cd012068de23ec1c350c4974957d6d0125a849708e85e16e655a8fbc8c4054e0f9338dafa5db8d5e7969c140a2d4c0bf1bfc43bae9e1099eb7c56eaac52184
6
+ metadata.gz: 7ea37a4d1d1ba3b017ff16eeda109acbd42c93bda73fa22295e4cf5ef4dcf16b4cba2ecdebebeff28d419c1ff36c1eca85272f5bb651d3096aa394ed878b87f4
7
+ data.tar.gz: 91c51fffb05ea8de439b778cd7ba3069e2a74d2b3ecd51073d3c451b15d5787295dfe837108a14cf1ee52a02e1e2b61fd3b5460315bc154e3f45a00783431381
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.email = ["silver-team@puppetlabs.com"]
10
10
  s.homepage = "https://github.com/puppetlabs/beaker-benchmark"
11
11
  s.summary = %q{Beaker benchmark Helpers!}
12
- s.description = %q{Used to monitor performance on a puppet infrastructure node}
12
+ s.description = %q{Used to monitor performance on a puppet infrastructure node in a Beaker test}
13
13
  s.license = 'Apache2'
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
@@ -209,7 +209,7 @@ module Beaker
209
209
  file.write "#{@action_name},#{@duration},#{@avg_cpu},#{@avg_mem},#{@avg_disk_read},#{@avg_disk_write}\n\n"
210
210
  file.write "Process pid,command,Avg CPU,Avg MEM,Avg DSK read,Avg DSK Write\n"
211
211
  @processes.keys.each do |key|
212
- file.write "#{key},'#{@processes[key][:cmd]}','#{@processes[key][:avg_cpu]},#{@processes[key][:avg_mem]},#{@processes[key][:avg_disk_read]},#{@processes[key][:avg_disk_write]}\n"
212
+ file.write "#{key},'#{@processes[key][:cmd]}',#{@processes[key][:avg_cpu]},#{@processes[key][:avg_mem]},#{@processes[key][:avg_disk_read]},#{@processes[key][:avg_disk_write]}\n"
213
213
  end
214
214
  file.close
215
215
  file.path
@@ -3,7 +3,7 @@ module Beaker
3
3
  module BeakerBenchmark
4
4
 
5
5
  module Version
6
- STRING = '0.0.3'
6
+ STRING = '0.0.4'
7
7
  end
8
8
 
9
9
  end
@@ -54,13 +54,16 @@ describe ClassMixedWithDSLHelpers do
54
54
  it 'prints out the results in CSV format' do
55
55
  file_path = subject.log_csv
56
56
  file = File.open file_path
57
- csv_file_content = file.readlines
57
+ csv_file_content = file.read
58
58
  expected_content = <<-EOS
59
+ Action,Duration,Avg CPU,Avg MEM,Avg DSK read,Avg DSK Write
60
+ test_action,10,50,5000,,500
61
+
59
62
  Process pid,command,Avg CPU,Avg MEM,Avg DSK read,Avg DSK Write
60
- 1000,'proc1','15,1500,,150
61
- 2000,'proc2','30,3000,,300
63
+ 1000,'proc1',15,1500,,150
64
+ 2000,'proc2',30,3000,,300
62
65
  EOS
63
- expect(csv_file_content == expected_content)
66
+ expect(csv_file_content).to eq(expected_content)
64
67
  end
65
68
 
66
69
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-benchmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-16 00:00:00.000000000 Z
11
+ date: 2018-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -150,7 +150,8 @@ dependencies:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.0.0
153
- description: Used to monitor performance on a puppet infrastructure node
153
+ description: Used to monitor performance on a puppet infrastructure node in a Beaker
154
+ test
154
155
  email:
155
156
  - silver-team@puppetlabs.com
156
157
  executables: