[Pkg-privacy-commits] [msva-perl] 09/15: add a test for multiple keyserver entries in gpg.conf

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository msva-perl.

commit 808789ed3403994416b7573000cfbe8f20d6ad5c
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Mon Sep 9 00:54:13 2013 -0400

    add a test for multiple keyserver entries in gpg.conf
    
    see https://labs.riseup.net/code/issues/6252
---
 Changelog                              |  7 +++++++
 Crypt/Monkeysphere/MSVA.pm             |  2 +-
 unit-tests/10.keyserver/10.gnupghome.t | 14 +++++++++++++-
 3 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/Changelog b/Changelog
index 4f968c9..d4ab87a 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,10 @@
+msva-perl (0.9.2) upstream;
+
+  * tweak POD to declare charset
+  * openpgp2x509: a bit more clean up and features (needs more work)
+
+ -- Daniel Kahn Gillmor <dkg at fifthhorseman.net>  Fri, 23 Aug 2013 10:20:28 -0400
+
 msva-perl (0.9.1) upstream;
 
   * Bug Fix Release:
diff --git a/Crypt/Monkeysphere/MSVA.pm b/Crypt/Monkeysphere/MSVA.pm
index 8c65296..173a041 100755
--- a/Crypt/Monkeysphere/MSVA.pm
+++ b/Crypt/Monkeysphere/MSVA.pm
@@ -45,7 +45,7 @@
   # we need the version of GnuPG::Interface that knows about pubkey_data, etc:
   use GnuPG::Interface 0.43;
 
-  $VERSION = '0.9.1';
+  $VERSION = '0.9.2';
 
   my $gnupg = GnuPG::Interface::->new();
   $gnupg->options->quiet(1);
diff --git a/unit-tests/10.keyserver/10.gnupghome.t b/unit-tests/10.keyserver/10.gnupghome.t
index c8ec61b..d562a89 100644
--- a/unit-tests/10.keyserver/10.gnupghome.t
+++ b/unit-tests/10.keyserver/10.gnupghome.t
@@ -8,7 +8,7 @@ use strict;
 use warnings;
 
 my $fpr='762B57BB784206AD';
-plan tests =>5;
+plan tests =>7;
 
 {
 
@@ -37,3 +37,15 @@ my $ks=new Crypt::Monkeysphere::Keyserver(gnupg=>$gnupg,
 isa_ok($ks,'Crypt::Monkeysphere::Keyserver');
 
 is($ks->{keyserver},$testks);
+
+open GPGCONF, '>', "$tempdir/gpg.conf";
+print GPGCONF "keyserver $testks\n";
+print GPGCONF "keyserver $testks.example\n";
+close GPGCONF;
+
+$ks=new Crypt::Monkeysphere::Keyserver(gnupg=>$gnupg,
+                                       loglevel=>'debug');
+
+isa_ok($ks,'Crypt::Monkeysphere::Keyserver');
+
+is($ks->{keyserver},"$testks.example");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/msva-perl.git



More information about the Pkg-privacy-commits mailing list