publiccloud::img_proof - Routines to run img-proof and parse its output
use publiccloud::img_proof qw(run_img_proof);
my $results = run_img_proof($provider, instance => $instance, tests => $tests);
Helper module for interacting with the img-proof tool during public cloud image testing.
run_img_proof(
$provider,
instance => $instance,
[provider => 'ec2',]
[tests => 'test_security',]
[distro => 'sles',]
[timeout => 7200,]
[results_dir => 'img_proof_results',]
[user => 'ec2-user',]
[key_name => 'my_key',]
[credentials_file => 'aws_creds.json',]
[running_instance_id => 'i-12345',]
[exclude => 'test_a, test_b',]
[beta => 0]
);
Calls the img-proof CLI tool and retrieves a hash reference containing the test results.
Updates $instance-public_ip> with the instance IP extracted from the command output. Returns a hash reference containing the parsed results (with instance_id and ip deleted from the returned hash).
--distro (default: 'sles')--results-dir (default: 'img_proof_results')-u)--ssh-key-name--service-account-file$instance-instance_id>--exclude)