Skip to content

Commit

Permalink
FI-3395 Fix suite describe with routes (#577)
Browse files Browse the repository at this point in the history
* draft client dev suite

* use SuiteEndpoint

* fix describe suite command and comment

* rm dev_client_suites

* create lib/inferno/route_storage.rb

* clean
  • Loading branch information
Shaumik-Ashraf authored Dec 23, 2024
1 parent 2bb20b5 commit 0d17cd0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 1 addition & 3 deletions lib/inferno.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
module Inferno
def self.routes
@routes ||= []
end
end

require_relative 'inferno/config/application'
Expand All @@ -14,3 +11,4 @@ def self.routes
require_relative 'inferno/test_runner'
require_relative 'inferno/version'
require_relative 'inferno/utils/static_assets'
require_relative 'inferno/route_storage'
2 changes: 0 additions & 2 deletions lib/inferno/apps/cli/suites.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ class Suites
def run
ENV['NO_DB'] = 'true'

require_relative '../../../inferno'

Inferno::Application.start(:suites)

suites = Inferno::Repositories::TestSuites.new.all
Expand Down
1 change: 1 addition & 0 deletions lib/inferno/config/boot/suites.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
require 'inferno/entities/test_group'
require 'inferno/entities/test_suite'
require 'inferno/entities/test_kit'
require 'inferno/route_storage'

files_to_load = Dir.glob(File.join(Dir.pwd, 'lib', '*.rb'))

Expand Down
10 changes: 10 additions & 0 deletions lib/inferno/route_storage.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Inferno
# @private
module RouteStorage
def routes
@routes ||= []
end
end

extend RouteStorage
end

0 comments on commit 0d17cd0

Please sign in to comment.