Rename test files.

- Rename test files to reflect the commands they are testing.
This commit is contained in:
Neal H. Walfield 2024-10-18 09:47:02 +02:00
parent a779fbb277
commit 1f50f6fd79
No known key found for this signature in database
GPG Key ID: 6863C9AD5B4D22D3
3 changed files with 10 additions and 10 deletions

View File

@ -20,10 +20,10 @@ mod integration {
mod sq_key_subkey_password;
mod sq_key_userid;
mod sq_pki;
mod sq_pki_certify;
mod sq_pki_authorize;
mod sq_pki_link;
mod sq_pki_link_authorize;
mod sq_pki_vouch_certify;
mod sq_pki_vouch_authorize;
mod sq_sign;
mod sq_toolbox_keyring_filter;
mod sq_toolbox_packet_decrypt;

View File

@ -1,7 +1,7 @@
use super::common::Sq;
#[test]
fn sq_pki_authorize_then_authenticate() {
fn sq_pki_vouch_authorize_then_authenticate() {
let mut sq = Sq::new();
let otto_somewhere_com = "<otto@somewhere.com>";
@ -252,7 +252,7 @@ fn sq_pki_authorize_then_authenticate() {
}
#[test]
fn sq_pki_authorize_all_revoked() {
fn sq_pki_vouch_authorize_all_revoked() {
// When we don't provide any user IDs, `sq pki vouch authorize`
// certifies all of the self signed user IDs. Make sure this
// works in the presence of a revoked user ID, which should be

View File

@ -20,7 +20,7 @@ use super::common::Sq;
const P: &StandardPolicy = &StandardPolicy::new();
#[test]
fn sq_pki_certify() -> Result<()> {
fn sq_pki_vouch_certify() -> Result<()> {
let mut sq = Sq::new();
let (alice, alice_pgp, _alice_rev)
@ -255,7 +255,7 @@ fn sq_pki_certify() -> Result<()> {
}
#[test]
fn sq_pki_certify_creation_time() -> Result<()>
fn sq_pki_vouch_certify_creation_time() -> Result<()>
{
// $ date +'%Y%m%dT%H%M%S%z'; date +'%s'
let t = 1642692756;
@ -321,7 +321,7 @@ fn sq_pki_certify_creation_time() -> Result<()>
}
#[test]
fn sq_pki_certify_with_expired_key() -> Result<()>
fn sq_pki_vouch_certify_with_expired_key() -> Result<()>
{
let seconds_in_day = 24 * 60 * 60;
@ -365,7 +365,7 @@ fn sq_pki_certify_with_expired_key() -> Result<()>
}
#[test]
fn sq_pki_certify_with_revoked_key() -> Result<()>
fn sq_pki_vouch_certify_with_revoked_key() -> Result<()>
{
let seconds_in_day = 24 * 60 * 60;
@ -427,7 +427,7 @@ fn sq_pki_certify_with_revoked_key() -> Result<()>
// Certify a certificate in the cert store.
#[test]
fn sq_pki_certify_using_cert_store() -> Result<()>
fn sq_pki_vouch_certify_using_cert_store() -> Result<()>
{
let mut sq = Sq::new();
@ -484,7 +484,7 @@ fn sq_pki_certify_using_cert_store() -> Result<()>
// Make sure we reject making self signatures.
#[test]
fn sq_pki_certify_no_self_signatures() -> Result<()>
fn sq_pki_vouch_certify_no_self_signatures() -> Result<()>
{
let sq = Sq::new();