use strict;
use warnings;

use Test::More;

use Net::FreeIPA;

my $f = Net::FreeIPA->new("host", debugapi => 1);

diag "Net::FreeIPA instance ", explain $b;

foreach my $mod ('', qw(Base API RPC Convert Common)) {
    my $module = "Net::FreeIPA";
    $module .= "::$mod" if $mod;
    isa_ok($f, "$module", "instance is a $module instance");
}

isa_ok($f->{log}, 'Net::FreeIPA::DummyLogger',
       "Log atribute is initialized with a DummyLogger");

ok($f->{debugapi}, "debugapi attribute is set");

done_testing();

use strict;
use warnings;

use Test::More;

use Net::FreeIPA;

my $f = Net::FreeIPA->new(undef, debugapi => 1);

diag "Net::FreeIPA instance ", explain $f;

foreach my $mod ('', qw(Base API RPC Convert Common)) {
    my $module = "Net::FreeIPA";
    $module .= "::$mod" if $mod;
    isa_ok($f, "$module", "instance is a $module instance");
}

isa_ok($f->{log}, 'Net::FreeIPA::DummyLogger',
       "Log atribute is initialized with a DummyLogger");

ok($f->{debugapi}, "debugapi attribute is set");

done_testing();

Fix unittest issue with non-mocked REST::Client
Fix unittest issue with non-mocked REST::Client
