foreman_wreckingball 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/app/controllers/foreman_wreckingball/hosts_controller.rb +15 -4
  4. data/app/helpers/concerns/foreman_wreckingball/hosts_helper_extensions.rb +1 -1
  5. data/app/jobs/update_hosts_vmware_facets.rb +1 -2
  6. data/app/lib/actions/foreman_wreckingball/host/refresh_vmware_facet.rb +5 -5
  7. data/app/lib/actions/foreman_wreckingball/host/remediate_vmware_operatingsystem.rb +39 -38
  8. data/app/lib/actions/foreman_wreckingball/vmware/sync_compute_resource.rb +12 -14
  9. data/app/lib/vsphere_os_identifiers/data.yaml +121 -10
  10. data/app/lib/vsphere_os_identifiers/os.rb +3 -2
  11. data/app/lib/vsphere_os_identifiers.rb +3 -2
  12. data/app/models/concerns/foreman_wreckingball/compute_resource_extensions.rb +1 -1
  13. data/app/models/concerns/foreman_wreckingball/host_extensions.rb +16 -3
  14. data/app/models/concerns/foreman_wreckingball/vmware_facet_host_extensions.rb +10 -6
  15. data/app/models/concerns/foreman_wreckingball/vmware_hypervisor_facet_host_extensions.rb +0 -3
  16. data/app/models/foreman_wreckingball/cpu_hot_add_status.rb +1 -1
  17. data/app/models/foreman_wreckingball/operatingsystem_status.rb +3 -3
  18. data/app/models/foreman_wreckingball/tools_status.rb +1 -1
  19. data/app/models/foreman_wreckingball/vmware_cluster.rb +15 -6
  20. data/app/models/foreman_wreckingball/vmware_facet.rb +5 -4
  21. data/app/models/foreman_wreckingball/vmware_hypervisor_facet.rb +2 -2
  22. data/app/services/foreman_wreckingball/vmware_cluster_importer.rb +6 -6
  23. data/app/services/foreman_wreckingball/vmware_hypervisor_importer.rb +7 -3
  24. data/config/routes.rb +1 -1
  25. data/lib/foreman_wreckingball/engine.rb +11 -8
  26. data/lib/foreman_wreckingball/scheduled_jobs.rb +1 -1
  27. data/lib/foreman_wreckingball/version.rb +1 -1
  28. data/lib/tasks/foreman_vmware_checks_tasks.rake +2 -4
  29. data/test/actions/foreman_wreckingball/host/refresh_vmware_facet_test.rb +57 -0
  30. data/test/actions/foreman_wreckingball/host/remediate_vmware_operatingsystem_test.rb +74 -0
  31. data/test/actions/foreman_wreckingball/vmware/schedule_vmware_sync_test.rb +27 -0
  32. data/test/actions/foreman_wreckingball/vmware/sync_compute_resource_test.rb +48 -0
  33. data/test/controllers/foreman_wreckingball/hosts_controller_test.rb +67 -0
  34. data/test/factories/compute_resource.rb +13 -0
  35. data/test/factories/foreman_wreckingball_factories.rb +45 -0
  36. data/test/factories/host.rb +38 -0
  37. data/test/models/compute_resource_test.rb +5 -0
  38. data/test/models/compute_resources/vmware_test.rb +12 -0
  39. data/test/models/foreman_wreckingball/cpu_hot_add_status_test.rb +86 -0
  40. data/test/models/foreman_wreckingball/operatingsystem_status_test.rb +95 -0
  41. data/test/models/foreman_wreckingball/tools_status_test.rb +55 -0
  42. data/test/models/foreman_wreckingball/vmware_cluster_test.rb +12 -0
  43. data/test/models/foreman_wreckingball/vmware_facet_test.rb +9 -0
  44. data/test/models/foreman_wreckingball/vmware_hypervisor_facet_test.rb +13 -0
  45. data/test/models/host_test.rb +10 -0
  46. data/test/test_plugin_helper.rb +3 -2
  47. data/test/unit/foreman_wreckingball/vmware_cluster_importer_test.rb +42 -0
  48. data/test/unit/foreman_wreckingball/vmware_hypervisor_importer_test.rb +72 -0
  49. metadata +48 -12
  50. data/test/unit/foreman_wreckingball_test.rb +0 -11
@@ -0,0 +1,86 @@
1
+ require 'test_plugin_helper'
2
+
3
+ module ForemanWreckingball
4
+ class CpuHotAddStatusTest < ActiveSupport::TestCase
5
+ setup do
6
+ User.current = users(:admin)
7
+ end
8
+
9
+ should belong_to(:host)
10
+
11
+ let(:host) do
12
+ FactoryGirl.create(:host, :managed, :with_vmware_facet)
13
+ end
14
+ let(:status) { ForemanWreckingball::CpuHotAddStatus.new(host: host) }
15
+
16
+ test 'has a host association' do
17
+ status.save!
18
+ assert_equal status, host.public_send(status.class.host_association)
19
+ end
20
+
21
+ describe 'status labels' do
22
+ test 'with possible performance degration' do
23
+ status.status = CpuHotAddStatus::PERFORMANCE_DEGRATION
24
+ assert_equal 'Possible performance degration', status.to_label
25
+ end
26
+
27
+ test 'without performance degration' do
28
+ status.status = CpuHotAddStatus::OK
29
+ assert_equal 'No Impact', status.to_label
30
+ end
31
+ end
32
+
33
+ describe 'global status' do
34
+ test 'with possible performance degration' do
35
+ status.status = CpuHotAddStatus::PERFORMANCE_DEGRATION
36
+ assert_equal HostStatus::Global::ERROR, status.to_global
37
+ end
38
+
39
+ test 'without performance degration' do
40
+ status.status = CpuHotAddStatus::OK
41
+ assert_equal HostStatus::Global::OK, status.to_global
42
+ end
43
+ end
44
+
45
+ describe '#performance_degration?' do
46
+ context 'with cpu hot add disabled' do
47
+ setup do
48
+ host.vmware_facet.cpu_hot_add = false
49
+ end
50
+
51
+ test 'status is not relevant' do
52
+ refute status.relevant?
53
+ end
54
+
55
+ test 'no performance degration is indicated' do
56
+ refute status.performance_degration?
57
+ end
58
+ end
59
+
60
+ context 'with cpu hot add enabled' do
61
+ setup do
62
+ host.vmware_facet.cpu_hot_add = true
63
+ end
64
+
65
+ test 'status is relevant' do
66
+ assert status.relevant?
67
+ end
68
+
69
+ test 'no performance degration is indicated' do
70
+ FactoryGirl.create(:vmware_hypervisor_facet, cpu_cores: 4, vmware_cluster: host.vmware_facet.vmware_cluster)
71
+ host.vmware_facet.cpus = 100
72
+ assert status.performance_degration?
73
+ end
74
+ end
75
+ end
76
+
77
+ describe '#hypervisor_min_cores' do
78
+ test 'returns the minimum core count from all hypervisors in the same cluster' do
79
+ FactoryGirl.create(:vmware_hypervisor_facet, cpu_cores: 4, vmware_cluster: host.vmware_facet.vmware_cluster)
80
+ FactoryGirl.create(:vmware_hypervisor_facet, cpu_cores: 8, vmware_cluster: host.vmware_facet.vmware_cluster)
81
+ status.host.reload
82
+ assert_equal 4, status.hypervisor_min_cores
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,95 @@
1
+ require 'test_plugin_helper'
2
+
3
+ module ForemanWreckingball
4
+ class OperatingsystemStatusTest < ActiveSupport::TestCase
5
+ setup do
6
+ User.current = users(:admin)
7
+ end
8
+
9
+ should belong_to(:host)
10
+
11
+ let(:operatingsystem) do
12
+ FactoryGirl.create(
13
+ :operatingsystem,
14
+ architectures: [architectures(:x86_64)],
15
+ major: 6,
16
+ minor: 1,
17
+ type: 'Redhat',
18
+ name: 'RedHat'
19
+ )
20
+ end
21
+ let(:host) do
22
+ FactoryGirl.create(
23
+ :host,
24
+ :managed,
25
+ :with_vmware_facet,
26
+ architecture: architectures(:x86_64),
27
+ operatingsystem: operatingsystem
28
+ )
29
+ end
30
+ let(:status) { ForemanWreckingball::OperatingsystemStatus.new(host: host) }
31
+
32
+ test 'has a host association' do
33
+ status.save!
34
+ assert_equal status, host.public_send(status.class.host_association)
35
+ end
36
+
37
+ test '#relevant is only for hosts with a vmware facet' do
38
+ h = FactoryGirl.build(:host, :managed)
39
+ refute ForemanWreckingball::ToolsStatus.new(host: h).relevant?
40
+ assert status.relevant?
41
+ end
42
+
43
+ describe 'status calculation' do
44
+ test 'when os does not match' do
45
+ status.stubs(:os_matches_identifier?).returns(false)
46
+ assert_equal OperatingsystemStatus::MISMATCH, status.to_status
47
+ end
48
+
49
+ test 'when os matches' do
50
+ status.stubs(:os_matches_identifier?).returns(true)
51
+ assert_equal OperatingsystemStatus::OK, status.to_status
52
+ end
53
+ end
54
+
55
+ describe 'status labels' do
56
+ test 'when os does not match' do
57
+ status.status = OperatingsystemStatus::MISMATCH
58
+ assert_equal 'VM OS is incorrect', status.to_label
59
+ end
60
+
61
+ test 'when os matches' do
62
+ status.status = OperatingsystemStatus::OK
63
+ assert_equal 'OK', status.to_label
64
+ end
65
+ end
66
+
67
+ describe 'global status' do
68
+ test 'when os does not match' do
69
+ status.status = OperatingsystemStatus::MISMATCH
70
+ assert_equal HostStatus::Global::WARN, status.to_global
71
+ end
72
+
73
+ test 'when os matches' do
74
+ status.status = OperatingsystemStatus::OK
75
+ assert_equal HostStatus::Global::OK, status.to_global
76
+ end
77
+ end
78
+
79
+ describe '#os_matches_identifier?' do
80
+ test 'when architecture does not match' do
81
+ host.architecture = architectures(:sparc)
82
+ refute status.os_matches_identifier?
83
+ end
84
+
85
+ test 'when operatingsystem does not match' do
86
+ host.operatingsystem = operatingsystems(:ubuntu1210)
87
+ refute status.os_matches_identifier?
88
+ end
89
+
90
+ test 'when architecture, osfamily, name and major match' do
91
+ assert status.os_matches_identifier?
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,55 @@
1
+ require 'test_plugin_helper'
2
+
3
+ module ForemanWreckingball
4
+ class ToolsStatusTest < ActiveSupport::TestCase
5
+ setup do
6
+ User.current = users(:admin)
7
+ end
8
+
9
+ should belong_to(:host)
10
+
11
+ let(:host) { FactoryGirl.create(:host, :with_vmware_facet) }
12
+ let(:status) { ForemanWreckingball::ToolsStatus.new(host: host) }
13
+
14
+ test 'has a host association' do
15
+ status.save!
16
+ assert_equal status, host.public_send(status.class.host_association)
17
+ end
18
+
19
+ test '#relevant? is only for hosts not in build mode' do
20
+ host.build = false
21
+ assert status.relevant?
22
+
23
+ host.build = true
24
+ refute status.relevant?
25
+ end
26
+
27
+ test '#relevant is only for hosts with a vmware facet' do
28
+ h = FactoryGirl.build(:host, :managed)
29
+ refute ForemanWreckingball::ToolsStatus.new(host: h).relevant?
30
+ end
31
+
32
+ describe 'status calculation' do
33
+ test 'when host is powered down' do
34
+ Host::Managed.any_instance.stubs(:supports_power_and_running?).returns(false)
35
+ assert_equal ForemanWreckingball::ToolsStatus::POWERDOWN, status.to_status
36
+ end
37
+
38
+ test 'when host is powered on' do
39
+ Host::Managed.any_instance.stubs(:supports_power_and_running?).returns(true)
40
+ assert_equal 2, status.to_status
41
+ end
42
+ end
43
+
44
+ describe 'status labels' do
45
+ test 'shows a powered down host' do
46
+ status.status = ForemanWreckingball::ToolsStatus::POWERDOWN
47
+ assert_equal 'Powered down', status.to_label
48
+ end
49
+
50
+ test 'shows ok message' do
51
+ assert_equal 'OK', status.to_label
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,12 @@
1
+ require 'test_plugin_helper'
2
+
3
+ module ForemanWreckingball
4
+ class VmwareClusterTest < ActiveSupport::TestCase
5
+ should validate_presence_of(:compute_resource)
6
+ should validate_presence_of(:name)
7
+ should belong_to(:compute_resource)
8
+ should have_many(:vmware_hypervisor_facets)
9
+ should have_many(:hosts)
10
+ should have_many(:vmware_facets)
11
+ end
12
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_plugin_helper'
2
+
3
+ module ForemanWreckingball
4
+ class VmwareFacetTest < ActiveSupport::TestCase
5
+ should validate_presence_of(:host)
6
+ should belong_to(:vmware_cluster)
7
+ should have_many(:vmware_hypervisor_facets)
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ require 'test_plugin_helper'
2
+
3
+ module ForemanWreckingball
4
+ class VmwareHypervisorFacetTest < ActiveSupport::TestCase
5
+ should validate_presence_of(:host)
6
+ should belong_to(:vmware_cluster)
7
+ should have_many(:vmware_facets)
8
+
9
+ test 'should sanitize name' do
10
+ assert_equal 'abc-server.example.com', ForemanWreckingball::VmwareHypervisorFacet.sanitize_name('abc_server.example.com.')
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_plugin_helper'
2
+
3
+ class Host::ManagedTest < ActiveSupport::TestCase
4
+ should have_one(:vmware_facet)
5
+ should have_one(:vmware_cluster)
6
+ should have_one(:vmware_hypervisor_facet)
7
+ should have_one(:vmware_tools_status_object)
8
+ should have_one(:vmware_operatingsystem_status_object)
9
+ should have_one(:vmware_cpu_hot_add_status_object)
10
+ end
@@ -1,6 +1,7 @@
1
1
  # This calls the main test_helper in Foreman-core
2
2
  require 'test_helper'
3
+ require 'dynflow/testing'
3
4
 
4
5
  # Add plugin to FactoryBot's paths
5
- FactoryBot.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
6
- FactoryBot.reload
6
+ FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
7
+ FactoryGirl.reload
@@ -0,0 +1,42 @@
1
+ require 'test_plugin_helper'
2
+
3
+ module ForemanWreckingball
4
+ class VmwareClusterImporterTest < ActiveSupport::TestCase
5
+ setup do
6
+ User.current = users(:admin)
7
+ Fog.mock!
8
+ end
9
+ teardown { Fog.unmock! }
10
+
11
+ let(:compute_resource) { FactoryGirl.create(:vmware_cr, :uuid => 'Solutions') }
12
+ let(:importer) do
13
+ VmwareClusterImporter.new(
14
+ compute_resource: compute_resource
15
+ )
16
+ end
17
+
18
+ describe '#import!' do
19
+ test 'imports clusters' do
20
+ importer.import!
21
+ clusters = ForemanWreckingball::VmwareCluster.pluck(:name)
22
+ assert_includes clusters, 'Solutionscluster'
23
+ assert_includes clusters, 'Problemscluster'
24
+ assert_includes clusters, 'Nested/Lastcluster'
25
+ end
26
+
27
+ test 'removes old clusters' do
28
+ old_cluster = FactoryGirl.create(:vmware_cluster, compute_resource: compute_resource)
29
+ importer.import!
30
+ refute ForemanWreckingball::VmwareCluster.find_by(id: old_cluster.id)
31
+ end
32
+
33
+ test 'can be run twice without a change' do
34
+ importer.import!
35
+ before = ForemanWreckingball::VmwareCluster.pluck(:updated_at)
36
+ importer.import!
37
+ after = ForemanWreckingball::VmwareCluster.pluck(:updated_at)
38
+ assert_equal before, after
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,72 @@
1
+ require 'test_plugin_helper'
2
+
3
+ module ForemanWreckingball
4
+ class VmwareHypervisorImporterTest < ActiveSupport::TestCase
5
+ setup do
6
+ User.current = users(:admin)
7
+ Fog.mock!
8
+ end
9
+ teardown { Fog.unmock! }
10
+
11
+ let(:organization) do
12
+ Organization.find_by(name: 'Organization 1')
13
+ end
14
+ let(:tax_location) do
15
+ Location.find_by(name: 'Location 1')
16
+ end
17
+ let(:compute_resource) do
18
+ FactoryGirl.create(
19
+ :vmware_cr,
20
+ uuid: 'Solutions',
21
+ organizations: [organization],
22
+ locations: [tax_location]
23
+ )
24
+ end
25
+ let(:cluster) do
26
+ FactoryGirl.create(
27
+ :vmware_cluster,
28
+ name: 'Solutionscluster',
29
+ compute_resource: compute_resource
30
+ )
31
+ end
32
+ let(:importer) do
33
+ VmwareHypervisorImporter.new(
34
+ compute_resource: compute_resource
35
+ )
36
+ end
37
+
38
+ describe '#import!' do
39
+ setup do
40
+ cluster
41
+ end
42
+
43
+ test 'imports hypervisors' do
44
+ importer.import!
45
+ host = Host::Managed.joins(:vmware_hypervisor_facet).find_by(:name => 'host1.example.com')
46
+
47
+ # Test host attributes are set correctly
48
+ assert_equal 'example.com', host.domain.name
49
+ assert_equal 'PowerEdge R730', host.model.name
50
+ assert_equal '1.2.3.4', host.ip
51
+ assert_nil host.ip6
52
+ assert_equal organization, host.organization
53
+ assert_equal tax_location, host.location
54
+
55
+ # Test facet attributes are set correctly
56
+ assert_equal cluster, host.vmware_hypervisor_facet.vmware_cluster
57
+ assert_equal 20, host.vmware_hypervisor_facet.cpu_cores
58
+ assert_equal 40, host.vmware_hypervisor_facet.cpu_threads
59
+ assert_equal 2, host.vmware_hypervisor_facet.cpu_sockets
60
+ assert_equal 824_597_241_856, host.vmware_hypervisor_facet.memory
61
+ assert_equal '4c4c4544-0051-3610-8046-c4c44f584a32', host.vmware_hypervisor_facet.uuid
62
+ end
63
+
64
+ test 'updates host by katello name' do
65
+ host = FactoryGirl.create(:host, organization: organization)
66
+ host.update_attributes!(:name => "virt-who-host1.example.com-#{organization.id}")
67
+ importer.import!
68
+ assert_equal 'host1.example.com', host.reload.name
69
+ end
70
+ end
71
+ end
72
+ end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_wreckingball
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Goebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-06 00:00:00.000000000 Z
11
+ date: 2018-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman-tasks
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.8.0
19
+ version: 0.10.9
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.8.0
26
+ version: 0.10.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdoc
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rubocop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.52.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.52.1
55
55
  description: Adds status checks of the VMWare VMs to Foreman.
56
56
  email:
57
57
  - timo.goebel@dm.de
@@ -102,8 +102,26 @@ files:
102
102
  - locale/en/foreman_wreckingball.po
103
103
  - locale/foreman_wreckingball.pot
104
104
  - locale/gemspec.rb
105
+ - test/actions/foreman_wreckingball/host/refresh_vmware_facet_test.rb
106
+ - test/actions/foreman_wreckingball/host/remediate_vmware_operatingsystem_test.rb
107
+ - test/actions/foreman_wreckingball/vmware/schedule_vmware_sync_test.rb
108
+ - test/actions/foreman_wreckingball/vmware/sync_compute_resource_test.rb
109
+ - test/controllers/foreman_wreckingball/hosts_controller_test.rb
110
+ - test/factories/compute_resource.rb
111
+ - test/factories/foreman_wreckingball_factories.rb
112
+ - test/factories/host.rb
113
+ - test/models/compute_resource_test.rb
114
+ - test/models/compute_resources/vmware_test.rb
115
+ - test/models/foreman_wreckingball/cpu_hot_add_status_test.rb
116
+ - test/models/foreman_wreckingball/operatingsystem_status_test.rb
117
+ - test/models/foreman_wreckingball/tools_status_test.rb
118
+ - test/models/foreman_wreckingball/vmware_cluster_test.rb
119
+ - test/models/foreman_wreckingball/vmware_facet_test.rb
120
+ - test/models/foreman_wreckingball/vmware_hypervisor_facet_test.rb
121
+ - test/models/host_test.rb
105
122
  - test/test_plugin_helper.rb
106
- - test/unit/foreman_wreckingball_test.rb
123
+ - test/unit/foreman_wreckingball/vmware_cluster_importer_test.rb
124
+ - test/unit/foreman_wreckingball/vmware_hypervisor_importer_test.rb
107
125
  homepage: https://github.com/dm-drogeriemarkt/foreman_wreckingball
108
126
  licenses:
109
127
  - GPL-3.0
@@ -129,5 +147,23 @@ signing_key:
129
147
  specification_version: 4
130
148
  summary: Adds status checks of the VMWare VMs to Foreman.
131
149
  test_files:
132
- - test/unit/foreman_wreckingball_test.rb
150
+ - test/unit/foreman_wreckingball/vmware_cluster_importer_test.rb
151
+ - test/unit/foreman_wreckingball/vmware_hypervisor_importer_test.rb
152
+ - test/models/compute_resource_test.rb
153
+ - test/models/host_test.rb
154
+ - test/models/foreman_wreckingball/operatingsystem_status_test.rb
155
+ - test/models/foreman_wreckingball/vmware_hypervisor_facet_test.rb
156
+ - test/models/foreman_wreckingball/cpu_hot_add_status_test.rb
157
+ - test/models/foreman_wreckingball/vmware_cluster_test.rb
158
+ - test/models/foreman_wreckingball/vmware_facet_test.rb
159
+ - test/models/foreman_wreckingball/tools_status_test.rb
160
+ - test/models/compute_resources/vmware_test.rb
161
+ - test/factories/compute_resource.rb
162
+ - test/factories/host.rb
163
+ - test/factories/foreman_wreckingball_factories.rb
164
+ - test/actions/foreman_wreckingball/host/remediate_vmware_operatingsystem_test.rb
165
+ - test/actions/foreman_wreckingball/host/refresh_vmware_facet_test.rb
166
+ - test/actions/foreman_wreckingball/vmware/sync_compute_resource_test.rb
167
+ - test/actions/foreman_wreckingball/vmware/schedule_vmware_sync_test.rb
133
168
  - test/test_plugin_helper.rb
169
+ - test/controllers/foreman_wreckingball/hosts_controller_test.rb
@@ -1,11 +0,0 @@
1
- require 'test_plugin_helper'
2
-
3
- class ForemanWreckingballTest < ActiveSupport::TestCase
4
- setup do
5
- User.current = User.find_by_login 'admin'
6
- end
7
-
8
- test 'the truth' do
9
- assert true
10
- end
11
- end