Skip to content

Commit

Permalink
Ensure FOREMAN_VERSION usage in all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren committed Aug 14, 2024
1 parent 606c599 commit bedb768
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/hammer_cli_foreman/testing/api_expectations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def initialize(params, options = {})
end
end

def api_connection(options={}, version = '1.15')
def api_connection(options={}, version = FOREMAN_VERSION)
FakeApiConnection.new({
:uri => 'https://test.org',
:apidoc_cache_dir => "test/data/#{version}",
Expand Down
2 changes: 1 addition & 1 deletion test/functional/architecture_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
end

it 'should run list command with defaults' do
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, '2.5')) }
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, FOREMAN_VERSION)) }
defaults = HammerCLI::Defaults.new(
{
organization_id: {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/bookmark_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
end

it 'should run list command with defaults' do
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, '2.5')) }
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, FOREMAN_VERSION)) }
defaults = HammerCLI::Defaults.new(
{
organization_id: {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/compute_profile_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
end

it 'should run list command with defaults' do
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, '2.5')) }
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, FOREMAN_VERSION)) }
defaults = HammerCLI::Defaults.new(
{
organization_id: {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/host_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@
end

it 'should run list command with defaults' do
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, '2.1')) }
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, FOREMAN_VERSION)) }
defaults = HammerCLI::Defaults.new(
{
organization_id: {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/mail_notification_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
end

it 'should run list command with defaults' do
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, '2.5')) }
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, FOREMAN_VERSION)) }
defaults = HammerCLI::Defaults.new(
{
organization_id: {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/model_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
end

it 'should run list command with defaults' do
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, '2.5')) }
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, FOREMAN_VERSION)) }
defaults = HammerCLI::Defaults.new(
{
organization_id: {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/operating_system_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
end

it 'should run list command with defaults' do
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, '2.5')) }
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, FOREMAN_VERSION)) }
defaults = HammerCLI::Defaults.new(
{
organization_id: {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/settings_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
end

it 'should run list command with defaults' do
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, '2.5')) }
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, FOREMAN_VERSION)) }
defaults = HammerCLI::Defaults.new(
{
organization_id: {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/usergroup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
end

it 'should run list command with defaults' do
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, '2.5')) }
providers = { 'foreman' => HammerCLIForeman::Defaults.new(api_connection({}, FOREMAN_VERSION)) }
defaults = HammerCLI::Defaults.new(
{
organization_id: {
Expand Down

0 comments on commit bedb768

Please sign in to comment.