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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 651d9621a1bdf6acc1d12a57e1011526cbe7fa4a
|
4
|
+
data.tar.gz: 4c04290744b4f8be630c9735c3523168b09ef2ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ea37a4d1d1ba3b017ff16eeda109acbd42c93bda73fa22295e4cf5ef4dcf16b4cba2ecdebebeff28d419c1ff36c1eca85272f5bb651d3096aa394ed878b87f4
|
7
|
+
data.tar.gz: 91c51fffb05ea8de439b778cd7ba3069e2a74d2b3ecd51073d3c451b15d5787295dfe837108a14cf1ee52a02e1e2b61fd3b5460315bc154e3f45a00783431381
|
data/beaker-benchmark.gemspec
CHANGED
@@ -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]}'
|
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
|
@@ -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.
|
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',
|
61
|
-
2000,'proc2',
|
63
|
+
1000,'proc1',15,1500,,150
|
64
|
+
2000,'proc2',30,3000,,300
|
62
65
|
EOS
|
63
|
-
expect(csv_file_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.
|
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-
|
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:
|