diff --git a/config/routes.rb b/config/routes.rb index 1a0431e4f..22e3899ca 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,7 +8,7 @@ :apiv => /v2/, :constraints => ApiConstraints.new(version: 2, default: true) do constraints(:id => %r{[^\/]+}) do - resources :hosts, :only => [] do + resources :hosts, :except => [:new, :edit] do member do post :play_roles get :ansible_roles diff --git a/test/test_plugin_helper.rb b/test/test_plugin_helper.rb index 968cd77e9..ff5ca6341 100644 --- a/test/test_plugin_helper.rb +++ b/test/test_plugin_helper.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require 'test_helper' -require 'facets' def ansible_fixture_file(filename) File.join(