Ansible-Util
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
t/21-util-run-testset2.t view on Meta::CPAN
use Test::More;
use Modern::Perl;
use Data::Printer alias => 'pdump';
use lib 't/';
use Local::Ansible::Test2;
#########################################
use_ok('Ansible::Util::Run');
my $run = Ansible::Util::Run->new;
isa_ok( $run, 'Ansible::Util::Run' );
my $Test2 = Local::Ansible::Test2->new;
SKIP: {
skip "ansible-playbook executable not found"
unless $Test2->ansiblePlaybookExeExists;
$Test2->chdir;
eval {
my ( $stdout, $stderr, $exit ) =
$run->ansiblePlaybook( playbook => 'dump.yml' );
};
ok($@); # no vault password files found
$run->vaultPasswordFiles( $Test2->vaultPasswordFiles );
eval {
my ( $stdout, $stderr, $exit ) =
$run->ansiblePlaybook( playbook => 'dump.yml' );
};
ok( !$@ );
};
done_testing();
view all matches for this distributionview release on metacpan - search on metacpan
( run in 2.776 seconds using v1.00-cache-2.02-grep-82fe00e-cpan-d29e8ade9f55 )