mirror of
https://git.proxmox.com/git/proxmox-acme
synced 2025-04-30 02:50:47 +00:00
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:
parent
831d879ba5
commit
28e3b59fff
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user