Skip to content

Commit

Permalink
v0.13.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
rmammina committed Dec 7, 2021
1 parent c4bc4ff commit 3e90ff3
Show file tree
Hide file tree
Showing 185 changed files with 195 additions and 191 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Kanrisuru 0.13.0 (December 06, 2021) ##
* Add functional test cases for `Kanrisuru::Result` class.
* Refactor integration tests for better parallelization with the `parallel_tests` gem. This dropped overall test time from 35 minutes, to 22 minutes after first integration with 1 processor. After scaling upto 8 core machine, the run time dropped to 16 minutes, but was still sending the entire test file to a processor. By splitting up each host test into a seperate file, the run time dropped to a little over 9 minutes. There's probably a way to optimize which test gets run together, but overall a much better scenario.

## Kanrisuru 0.12.1 (December 05, 2021) ##
* Fix typo in spec.
* Cleanup bad code style.
Expand Down
2 changes: 1 addition & 1 deletion lib/kanrisuru/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Kanrisuru
VERSION = '0.12.1'
VERSION = '0.13.0'
end
2 changes: 1 addition & 1 deletion spec/functional/result_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
command.handle_status(0)

result = described_class.new(command)
expect(result).to be_instance_of(Kanrisuru::Result)
expect(result).to be_instance_of(described_class)
end

it 'initializes with block and return struct fields' do
Expand Down
16 changes: 8 additions & 8 deletions spec/helper/simplecov.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# frozen_string_literal: true

require 'simplecov'
require 'simplecov-cobertura'

SimpleCov.start do
command_name "kanrisuru-tests#{ENV['TEST_ENV_NUMBER'] || ''}"
merge_timeout 2400
merge_timeout 2400

formatter SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::CoberturaFormatter
])
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::CoberturaFormatter
])
end

if ENV['TEST_ENV_NUMBER'] # parallel specs
SimpleCov.at_exit do
result = SimpleCov.result
if ParallelTests.number_of_running_processes <= 1
result.format!
end
result.format! if ParallelTests.number_of_running_processes <= 1
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/apt/debian_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[debian]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Apt do
include_examples "apt", os_name, host_json, spec_dir
include_examples 'apt', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/apt/ubuntu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[ubuntu]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Apt do
include_examples "apt", os_name, host_json, spec_dir
include_examples 'apt', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/archive/centos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[centos]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Archive do
include_examples "archive", os_name, host_json, spec_dir
include_examples 'archive', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/archive/debian_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[debian]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Archive do
include_examples "archive", os_name, host_json, spec_dir
include_examples 'archive', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/archive/fedora_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[fedora]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Archive do
include_examples "archive", os_name, host_json, spec_dir
include_examples 'archive', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/archive/opensuse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[opensuse]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Archive do
include_examples "archive", os_name, host_json, spec_dir
include_examples 'archive', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/archive/rhel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[rhel]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Archive do
include_examples "archive", os_name, host_json, spec_dir
include_examples 'archive', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/archive/sles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[sles]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Archive do
include_examples "archive", os_name, host_json, spec_dir
include_examples 'archive', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/archive/ubuntu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[ubuntu]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Archive do
include_examples "archive", os_name, host_json, spec_dir
include_examples 'archive', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/disk/centos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[centos]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Disk do
include_examples "disk", os_name, host_json, spec_dir
include_examples 'disk', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/disk/debian_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[debian]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Disk do
include_examples "disk", os_name, host_json, spec_dir
include_examples 'disk', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/disk/fedora_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[fedora]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Disk do
include_examples "disk", os_name, host_json, spec_dir
include_examples 'disk', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/disk/opensuse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[opensuse]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Disk do
include_examples "disk", os_name, host_json, spec_dir
include_examples 'disk', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/disk/rhel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[rhel]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Disk do
include_examples "disk", os_name, host_json, spec_dir
include_examples 'disk', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/disk/sles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[sles]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Disk do
include_examples "disk", os_name, host_json, spec_dir
include_examples 'disk', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/disk/ubuntu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[ubuntu]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Disk do
include_examples "disk", os_name, host_json, spec_dir
include_examples 'disk', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/dmi/centos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[centos]) do |os_name, host_json|
RSpec.describe Kanrisuru::Core::Dmi do
include_examples "dmi", os_name, host_json
include_examples 'dmi', os_name, host_json
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/dmi/debian_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[debian]) do |os_name, host_json|
RSpec.describe Kanrisuru::Core::Dmi do
include_examples "dmi", os_name, host_json
include_examples 'dmi', os_name, host_json
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/dmi/fedora_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[fedora]) do |os_name, host_json|
RSpec.describe Kanrisuru::Core::Dmi do
include_examples "dmi", os_name, host_json
include_examples 'dmi', os_name, host_json
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/dmi/opensuse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[opensuse]) do |os_name, host_json|
RSpec.describe Kanrisuru::Core::Dmi do
include_examples "dmi", os_name, host_json
include_examples 'dmi', os_name, host_json
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/dmi/rhel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[rhel]) do |os_name, host_json|
RSpec.describe Kanrisuru::Core::Dmi do
include_examples "dmi", os_name, host_json
include_examples 'dmi', os_name, host_json
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/dmi/sles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[sles]) do |os_name, host_json|
RSpec.describe Kanrisuru::Core::Dmi do
include_examples "dmi", os_name, host_json
include_examples 'dmi', os_name, host_json
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/dmi/ubuntu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[ubuntu]) do |os_name, host_json|
RSpec.describe Kanrisuru::Core::Dmi do
include_examples "dmi", os_name, host_json
include_examples 'dmi', os_name, host_json
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/file/centos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[centos]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::File do
include_examples "file", os_name, host_json, spec_dir
include_examples 'file', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/file/debian_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[debian]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::File do
include_examples "file", os_name, host_json, spec_dir
include_examples 'file', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/file/fedora_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[fedora]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::File do
include_examples "file", os_name, host_json, spec_dir
include_examples 'file', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/file/opensuse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[opensuse]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::File do
include_examples "file", os_name, host_json, spec_dir
include_examples 'file', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/file/rhel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[rhel]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::File do
include_examples "file", os_name, host_json, spec_dir
include_examples 'file', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/file/sles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[sles]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::File do
include_examples "file", os_name, host_json, spec_dir
include_examples 'file', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/file/ubuntu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[ubuntu]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::File do
include_examples "file", os_name, host_json, spec_dir
include_examples 'file', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/find/centos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[centos]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Find do
include_examples "find", os_name, host_json, spec_dir
include_examples 'find', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/find/debian_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[debian]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Find do
include_examples "find", os_name, host_json, spec_dir
include_examples 'find', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/find/fedora_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[fedora]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Find do
include_examples "find", os_name, host_json, spec_dir
include_examples 'find', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/find/opensuse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[opensuse]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Find do
include_examples "find", os_name, host_json, spec_dir
include_examples 'find', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/find/rhel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[rhel]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Find do
include_examples "find", os_name, host_json, spec_dir
include_examples 'find', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/find/sles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[sles]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Find do
include_examples "find", os_name, host_json, spec_dir
include_examples 'find', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/find/ubuntu_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[ubuntu]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Find do
include_examples "find", os_name, host_json, spec_dir
include_examples 'find', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/group/centos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[centos]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Group do
include_examples "group", os_name, host_json, spec_dir
include_examples 'group', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/group/debian_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[debian]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Group do
include_examples "group", os_name, host_json, spec_dir
include_examples 'group', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/group/fedora_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[fedora]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Group do
include_examples "group", os_name, host_json, spec_dir
include_examples 'group', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/group/opensuse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[opensuse]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Group do
include_examples "group", os_name, host_json, spec_dir
include_examples 'group', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/group/rhel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[rhel]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Group do
include_examples "group", os_name, host_json, spec_dir
include_examples 'group', os_name, host_json, spec_dir
end
end
2 changes: 1 addition & 1 deletion spec/integration/core/group/sles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

TestHosts.each_os(only: %w[sles]) do |os_name, host_json, spec_dir|
RSpec.describe Kanrisuru::Core::Group do
include_examples "group", os_name, host_json, spec_dir
include_examples 'group', os_name, host_json, spec_dir
end
end
Loading

0 comments on commit 3e90ff3

Please sign in to comment.