[Rt-commit] [rtir] 08/08: GetKeysInfo now dispatches through RT::Crypt
Kevin Falcone
falcone at bestpractical.com
Fri Apr 18 21:20:56 EDT 2014
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch 3.2/test-fixes
in repository rtir.
commit c1dc68caa233341188fe91cd1214858c399394c7
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Apr 18 21:19:32 2014 -0400
GetKeysInfo now dispatches through RT::Crypt
---
t/gnupg/on-create.t | 8 ++++----
t/gnupg/on-incident.t | 2 +-
t/gnupg/on-update.t | 8 ++++----
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/t/gnupg/on-create.t b/t/gnupg/on-create.t
index 876b351..d2ca874 100644
--- a/t/gnupg/on-create.t
+++ b/t/gnupg/on-create.t
@@ -41,7 +41,7 @@ RT::Test->set_rights(
{
RT::Test->import_gnupg_key('rt-recipient at example.com');
RT::Test->trust_gnupg_key('rt-recipient at example.com');
- my %res = RT::Crypt::GnuPG::GetKeysInfo('rt-recipient at example.com');
+ my %res = RT::Crypt->GetKeysInfo( Key => 'rt-recipient at example.com' );
is $res{'info'}[0]{'TrustTerse'}, 'ultimate', 'ultimately trusted key';
}
@@ -75,7 +75,7 @@ diag "import first key of rt-test\@example.com";
my $fpr1 = '';
{
RT::Test->import_gnupg_key('rt-test at example.com', 'public');
- my %res = RT::Crypt::GnuPG::GetKeysInfo('rt-test at example.com');
+ my %res = RT::Crypt->GetKeysInfo('rt-test at example.com');
is $res{'info'}[0]{'TrustLevel'}, 0, 'is not trusted key';
$fpr1 = $res{'info'}[0]{'Fingerprint'};
}
@@ -122,7 +122,7 @@ diag "import a second key of rt-test\@example.com";
my $fpr2 = '';
{
RT::Test->import_gnupg_key('rt-test at example.com.2', 'public');
- my %res = RT::Crypt::GnuPG::GetKeysInfo('rt-test at example.com');
+ my %res = RT::Crypt->GetKeysInfo('rt-test at example.com');
is $res{'info'}[1]{'TrustLevel'}, 0, 'is not trusted key';
$fpr2 = $res{'info'}[2]{'Fingerprint'};
}
@@ -167,7 +167,7 @@ diag "check that things still doesn't work if two keys are not trusted";
{
RT::Test->lsign_gnupg_key( $fpr1 );
- my %res = RT::Crypt::GnuPG::GetKeysInfo('rt-test at example.com');
+ my %res = RT::Crypt->GetKeysInfo('rt-test at example.com');
ok $res{'info'}[0]{'TrustLevel'} > 0, 'trusted key';
is $res{'info'}[1]{'TrustLevel'}, 0, 'is not trusted key';
}
diff --git a/t/gnupg/on-incident.t b/t/gnupg/on-incident.t
index d2bff1e..d70a0af 100644
--- a/t/gnupg/on-incident.t
+++ b/t/gnupg/on-incident.t
@@ -68,7 +68,7 @@ diag 'import rt-recipient at example.com key and sign it';
{
RT::Test->import_gnupg_key('rt-recipient at example.com');
RT::Test->trust_gnupg_key('rt-recipient at example.com');
- my %res = RT::Crypt::GnuPG::GetKeysInfo('rt-recipient at example.com');
+ my %res = RT::Crypt->GetKeysInfo('rt-recipient at example.com');
is $res{'info'}[0]{'TrustTerse'}, 'ultimate', 'ultimately trusted key';
}
diff --git a/t/gnupg/on-update.t b/t/gnupg/on-update.t
index c844796..96681b9 100644
--- a/t/gnupg/on-update.t
+++ b/t/gnupg/on-update.t
@@ -42,7 +42,7 @@ RT::Test->set_rights(
{
RT::Test->import_gnupg_key('rt-recipient at example.com');
RT::Test->trust_gnupg_key('rt-recipient at example.com');
- my %res = RT::Crypt::GnuPG::GetKeysInfo('rt-recipient at example.com');
+ my %res = RT::Crypt->GetKeysInfo('rt-recipient at example.com');
is $res{'info'}[0]{'TrustTerse'}, 'ultimate', 'ultimately trusted key';
}
@@ -87,7 +87,7 @@ diag "import first key of rt-test\@example.com";
my $fpr1 = '';
{
RT::Test->import_gnupg_key('rt-test at example.com', 'public');
- my %res = RT::Crypt::GnuPG::GetKeysInfo('rt-test at example.com');
+ my %res = RT::Crypt->GetKeysInfo('rt-test at example.com');
is $res{'info'}[0]{'TrustLevel'}, 0, 'is not trusted key';
$fpr1 = $res{'info'}[0]{'Fingerprint'};
}
@@ -135,7 +135,7 @@ diag "import a second key of rt-test\@example.com";
my $fpr2 = '';
{
RT::Test->import_gnupg_key('rt-test at example.com.2', 'public');
- my %res = RT::Crypt::GnuPG::GetKeysInfo('rt-test at example.com');
+ my %res = RT::Crypt->GetKeysInfo('rt-test at example.com');
is $res{'info'}[1]{'TrustLevel'}, 0, 'is not trusted key';
$fpr2 = $res{'info'}[2]{'Fingerprint'};
}
@@ -181,7 +181,7 @@ diag "check that things still doesn't work if two keys are not trusted";
{
RT::Test->lsign_gnupg_key( $fpr1 );
- my %res = RT::Crypt::GnuPG::GetKeysInfo('rt-test at example.com');
+ my %res = RT::Crypt->GetKeysInfo('rt-test at example.com');
ok $res{'info'}[0]{'TrustLevel'} > 0, 'trusted key';
is $res{'info'}[1]{'TrustLevel'}, 0, 'is not trusted key';
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list