Skip to content

Commit fc479f1

Browse files
DmitriyKarpovskiy1amvasilyev
authored andcommitted
Remove obsolete ExceptionHandler class from the MDBCI (refs #26429)
1 parent 5b2e974 commit fc479f1

13 files changed

+0
-43
lines changed

core/exception_handler.rb

-19
This file was deleted.

mdbci

-2
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,12 @@ $mdbci_exec_dir = File.expand_path(__dir__)
4444

4545
require_relative 'core/session'
4646
require_relative 'core/out'
47-
require_relative 'core/exception_handler'
4847
require_relative 'core/services/version'
4948
require_relative 'core/models/result'
5049

5150
session = Session.new
5251
$session = session
5352
session.template_file = 'instance.json'
54-
$exception_handler = ExceptionHandler.new
5553
session.ipv6 = false
5654

5755
Dir.chdir ENV['OLD_CWD'] unless ENV['OLD_CWD'].nil?

spec/unit/6641_setup_exit_code_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require 'rspec'
22
require_relative '../spec_helper'
33
require_relative '../../core/out'
4-
require_relative '../../core/exception_handler'
54
require_relative '../../core/boxes_manager'
65
require_relative '../../core/session'
76

@@ -15,7 +14,6 @@
1514
$out = Out.new($session)
1615
$session.isSilent = true
1716
$session.mdbciDir = Dir.pwd
18-
$exception_handler = ExceptionHandler.new
1917
$session.boxes_dir = 'spec/configs/boxes/'
2018
$session.boxes = BoxesManager.new $session.boxes_dir
2119
reposPath = './config/repo.d'

spec/unit/6645_public_keys_exit_code_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require 'rspec'
22
require_relative '../spec_helper'
33
require_relative '../../core/out'
4-
require_relative '../../core/exception_handler'
54
require_relative '../../core/boxes_manager'
65
require_relative '../../core/session'
76

@@ -13,7 +12,6 @@
1312
$session.isSilent = true
1413
$session.mdbciDir = Dir.pwd
1514
$out = Out.new($session)
16-
$exception_handler = ExceptionHandler.new
1715
boxesPath = './BOXES'
1816
$session.boxes = BoxesManager.new boxesPath
1917
reposPath = './config/repo.d'

spec/unit/6783_show_boxes_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
require_relative '../../core/node_product'
66
require_relative '../../core/out'
77
require_relative '../../core/services/repo_manager'
8-
require_relative '../../core/exception_handler'
98

109
describe 'Session.showBoxes' do
1110

@@ -15,7 +14,6 @@
1514
$out = Out.new($session)
1615
$session.isSilent = true
1716
$session.mdbciDir = Dir.pwd
18-
$exception_handler = ExceptionHandler.new
1917
boxesPath = './BOXES'
2018
$session.boxes = BoxesManager.new boxesPath
2119
reposPath = './config/repo.d'

spec/unit/6813_divide_show_boxes_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
require_relative '../../core/node_product'
66
require_relative '../../core/out'
77
require_relative '../../core/services/repo_manager'
8-
require_relative '../../core/exception_handler'
98

109
describe 'BoxesManager#showBoxesget' do
1110

@@ -15,7 +14,6 @@
1514
$out = Out.new($session)
1615
$session.isSilent = true
1716
$session.mdbciDir = Dir.pwd
18-
$exception_handler = ExceptionHandler.new
1917
boxesPath = './BOXES'
2018
$session.boxes = BoxesManager.new boxesPath
2119
reposPath = './config/repo.d'

spec/unit/6818_search_box_name_by_config_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
require_relative '../spec_helper'
55
require_relative '../../core/out'
6-
require_relative '../../core/exception_handler'
76
require_relative '../../core/boxes_manager'
87
require_relative '../../core/session'
98

@@ -28,7 +27,6 @@
2827
$out = Out.new($session)
2928
$session.isSilent = true
3029
$session.mdbciDir = Dir.pwd
31-
$exception_handler = ExceptionHandler.new
3230
boxesPath = './BOXES'
3331
$session.boxes = BoxesManager.new boxesPath
3432
end

spec/unit/6819_show_box_info_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
require_relative '../spec_helper'
33

44
require_relative '../../core/out'
5-
require_relative '../../core/exception_handler'
65
require_relative '../../core/boxes_manager'
76
require_relative '../../core/session'
87

@@ -14,7 +13,6 @@
1413
$out = Out.new($session)
1514
$session.isSilent = true
1615
$session.mdbciDir = Dir.pwd
17-
$exception_handler = ExceptionHandler.new
1816
boxesPath = './BOXES'
1917
$session.boxes = BoxesManager.new boxesPath
2018
end

spec/unit/6821_show_box_config_node_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
require_relative '../../core/node_product'
66
require_relative '../../core/out'
77
require_relative '../../core/services/repo_manager'
8-
require_relative '../../core/exception_handler'
98

109
describe 'Session' do
1110

@@ -17,7 +16,6 @@
1716
$session = Session.new
1817
$session.isSilent = true
1918
$session.mdbciDir = Dir.pwd
20-
$exception_handler = ExceptionHandler.new
2119
boxesPath = './BOXES'
2220
$session.boxes = BoxesManager.new boxesPath
2321
end

spec/unit/6863_tests_for_6821_show_box_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require 'rspec'
22
require_relative '../spec_helper'
33
require_relative '../../core/out'
4-
require_relative '../../core/exception_handler'
54
require_relative '../../core/boxes_manager'
65
require_relative '../../core/session'
76

@@ -13,7 +12,6 @@
1312
$out = Out.new($session)
1413
$session.isSilent = true
1514
$session.mdbciDir = Dir.pwd
16-
$exception_handler = ExceptionHandler.new
1715
boxesPath = './BOXES'
1816
$session.boxes = BoxesManager.new boxesPath
1917
reposPath = './config/repo.d'

spec/unit/boxes_manager_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
require_relative '../../core/session'
55
require_relative '../../core/boxes_manager'
6-
require_relative '../../core/exception_handler'
76
require_relative '../../core/out'
87

98
describe 'BoxesManager' do
@@ -13,7 +12,6 @@
1312
$out = Out.new($session)
1413
$session.isSilent = true
1514
$session.mdbciDir = Dir.pwd
16-
$exception_handler = ExceptionHandler.new
1715
boxesPath = './BOXES'
1816
$session.boxes = BoxesManager.new boxesPath
1917
$session.boxes.boxesManager.size().should_not eq(0)

spec/unit/repos_manager_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require_relative '../../core/session'
44
require_relative '../../core/services/repo_manager'
55
require_relative '../../core/boxes_manager'
6-
require_relative '../../core/exception_handler'
76

87
describe 'RepoManager' do
98
context '.repos' do
@@ -13,7 +12,6 @@
1312
$out = Out.new($session)
1413
$session.isSilent = true
1514
$session.mdbciDir = Dir.pwd
16-
$exception_handler = ExceptionHandler.new
1715
boxesPath = './BOXES'
1816
$session.boxes = BoxesManager.new boxesPath
1917
reposPath = './config/repo.d'

spec/unit/session_spec.rb

-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
require_relative '../../core/node_product'
77
require_relative '../../core/out'
88
require_relative '../../core/services/repo_manager'
9-
require_relative '../../core/exception_handler'
109

1110
describe 'Session' do
1211
before :all do
@@ -16,7 +15,6 @@
1615
@session = $session
1716
@session.isSilent = true
1817
@session.mdbciDir = Dir.pwd
19-
$exception_handler = ExceptionHandler.new
2018
@session.boxes = BoxesManager.new './BOXES'
2119
@session.repos = RepoManager.new './config/repo.d'
2220
end

0 commit comments

Comments
 (0)