]> git.proxmox.com Git - proxmox-acme.git/commitdiff
tests: make missing-plugin check proposal in JSON format
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 7 Dec 2022 10:34:53 +0000 (11:34 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 7 Dec 2022 10:35:22 +0000 (11:35 +0100)
and improve some wording/spacing for better visibillity

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/test/verify-dnsapi-plugins-in-schema.pl

index a9628612bd67951080628b734bca7dfd146ea44b..bfa1dafd9d2bd1e7f3a6fcae16384b28a4da0252 100755 (executable)
@@ -28,8 +28,8 @@ my $printed_missing = 0;
 for my $provider (sort @$acmesh_plugins) {
     my $schema = delete $defined_plugins->{$provider};
     if (!defined($schema)) {
-       print STDERR "missing (also adapt makefile!):\n" if !$printed_missing;
-       print STDERR "    '$provider' => {},\n";
+       print STDERR "\nmissing (also adapt makefile!):\n" if !$printed_missing;
+       print STDERR "    \"$provider\": {},\n";
        $printed_missing = 1;
        $ok = 0;
     }
@@ -37,13 +37,13 @@ for my $provider (sort @$acmesh_plugins) {
 
 my $printed_extra = 0;
 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";
     $printed_extra = 1;
     $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";
 exit(0);