From 28e3b59fff7189bc32fd45e4cc17f7fe98318fd5 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 7 Dec 2022 11:34:53 +0100 Subject: [PATCH] tests: make missing-plugin check proposal in JSON format and improve some wording/spacing for better visibillity Signed-off-by: Thomas Lamprecht --- src/test/verify-dnsapi-plugins-in-schema.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/verify-dnsapi-plugins-in-schema.pl b/src/test/verify-dnsapi-plugins-in-schema.pl index a962861..bfa1daf 100755 --- a/src/test/verify-dnsapi-plugins-in-schema.pl +++ b/src/test/verify-dnsapi-plugins-in-schema.pl @@ -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);