tests: make missing-plugin check proposal in JSON format

and improve some wording/spacing for better visibillity

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-12-07 11:34:53 +01:00
parent 831d879ba5
commit 28e3b59fff

View File

@ -28,8 +28,8 @@ my $printed_missing = 0;
for my $provider (sort @$acmesh_plugins) { for my $provider (sort @$acmesh_plugins) {
my $schema = delete $defined_plugins->{$provider}; my $schema = delete $defined_plugins->{$provider};
if (!defined($schema)) { if (!defined($schema)) {
print STDERR "missing (also adapt makefile!):\n" if !$printed_missing; print STDERR "\nmissing (also adapt makefile!):\n" if !$printed_missing;
print STDERR " '$provider' => {},\n"; print STDERR " \"$provider\": {},\n";
$printed_missing = 1; $printed_missing = 1;
$ok = 0; $ok = 0;
} }
@ -37,13 +37,13 @@ for my $provider (sort @$acmesh_plugins) {
my $printed_extra = 0; my $printed_extra = 0;
for my $provider (sort keys %$defined_plugins) { for my $provider (sort keys %$defined_plugins) {
print STDERR "extra:\n" if !$printed_extra; print STDERR "\nplugins that got removed or renamed upstream:\n" if !$printed_extra;
print STDERR " $provider\n"; print STDERR " $provider\n";
$printed_extra = 1; $printed_extra = 1;
$ok = 0; $ok = 0;
} }
die "schema not in sync with available plugins!\n" if !$ok; die "\nERROR: schema not in sync with available plugins!\n\n" if !$ok;
print STDERR "OK: DNS challenge schema in sync with available plugins.\n"; print STDERR "OK: DNS challenge schema in sync with available plugins.\n";
exit(0); exit(0);