Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Sep 5, 2022
1 parent 468aa81 commit 90d5a96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/models/external_usergroup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ExternalUsergroupTest < ActiveSupport::TestCase
test 'update_usergroups matches LDAP gids with external user groups case insensitively' do
setup_ldap_stubs

@auth_source_ldap.expects(:valid_group?).with('IPAUSERS').returns(true)
@auth_source_ldap.expects(:valid_group?).with('IPAUSERS').returns(true).twice
external = FactoryBot.create(:external_usergroup, :auth_source => @auth_source_ldap, :name => 'IPAUSERS')
ldap_user = FactoryBot.create(:user, :login => 'JohnSmith', :mail => '[email protected]', :auth_source => @auth_source_ldap)
AuthSourceLdap.any_instance.expects(:users_in_group).with('IPAUSERS').returns(['JohnSmith'])
Expand Down
4 changes: 2 additions & 2 deletions test/models/host_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2500,8 +2500,8 @@ def to_managed!
refute_nil host.provision_interface
primary = host.primary_interface

nic = FactoryBot.build_stubbed(:nic_managed, :host => host, :mac => '00:00:00:AA:BB:CC', :ip => '192.168.0.1',
:name => 'host2', :domain => host.domain)
nic = FactoryBot.build(:nic_managed, :host => host, :mac => '00:00:00:AA:BB:CC', :ip => '192.168.0.1',
:name => 'host2', :domain => host.domain)
nic.primary = true
nic.provision = true

Expand Down

0 comments on commit 90d5a96

Please sign in to comment.