@@ -502,13 +502,13 @@ mod tests {
502
502
use super :: * ;
503
503
504
504
const TEST_CERT_LIFETIME : Duration = Duration :: from_hours_unchecked ( 1 ) ;
505
- const TEST_SAN : & str = "airflow -0.airflow .default.svc.cluster.local" ;
505
+ const TEST_SAN : & str = "product -0.product .default.svc.cluster.local" ;
506
506
507
507
#[ tokio:: test]
508
508
async fn rsa_key_generation ( ) {
509
509
let mut ca = CertificateAuthority :: new_rsa ( ) . unwrap ( ) ;
510
510
let cert = ca
511
- . generate_rsa_leaf_certificate ( "Airflow " , "pod" , [ TEST_SAN ] , TEST_CERT_LIFETIME )
511
+ . generate_rsa_leaf_certificate ( "Product " , "pod" , [ TEST_SAN ] , TEST_CERT_LIFETIME )
512
512
. expect ( "Must be able to generate an RSA certificate. Perhaps there was an RNG failure" ) ;
513
513
514
514
assert_cert_attributes ( cert. certificate ( ) ) ;
@@ -518,7 +518,7 @@ mod tests {
518
518
async fn ecdsa_key_generation ( ) {
519
519
let mut ca = CertificateAuthority :: new_ecdsa ( ) . unwrap ( ) ;
520
520
let cert = ca
521
- . generate_ecdsa_leaf_certificate ( "Airflow " , "pod" , [ TEST_SAN ] , TEST_CERT_LIFETIME )
521
+ . generate_ecdsa_leaf_certificate ( "Product " , "pod" , [ TEST_SAN ] , TEST_CERT_LIFETIME )
522
522
. expect ( "ecdsa certificate generation failed" ) ;
523
523
524
524
assert_cert_attributes ( cert. certificate ( ) ) ;
@@ -529,7 +529,7 @@ mod tests {
529
529
// Test subject
530
530
assert_eq ! (
531
531
cert. subject,
532
- Name :: from_str( "CN=Airflow Certificate for pod" ) . unwrap( )
532
+ Name :: from_str( "CN=Product Certificate for pod" ) . unwrap( )
533
533
) ;
534
534
535
535
// Test SAN extension is present
0 commit comments