From 632fc96cf21381814f843e0c3160011477bef6e7 Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Feb 11 2019 02:33:15 +0000 Subject: test handling of DNs with escaped chars We were not testing handling of DNs with escaped characters. Update the csrgen test to check this. Part of: https://pagure.io/certmonger/issue/90 --- diff --git a/tests/003-csrgen/expected.out b/tests/003-csrgen/expected.out index 8e6cac6..f17783a 100644 --- a/tests/003-csrgen/expected.out +++ b/tests/003-csrgen/expected.out @@ -26,7 +26,7 @@ The last CSR (the one with everything) was: 13:d=3 hl=2 l= 20 cons: SET 15:d=4 hl=2 l= 18 cons: SEQUENCE 17:d=5 hl=2 l= 3 prim: OBJECT :commonName - 22:d=5 hl=2 l= 11 prim: PRINTABLESTRING :Babs Jensen + 22:d=5 hl=2 l= 11 prim: PRINTABLESTRING :Cloud, Inc. 35:d=2 hl=4 l= 290 cons: SEQUENCE 39:d=3 hl=2 l= 13 cons: SEQUENCE 41:d=4 hl=2 l= 9 prim: OBJECT :rsaEncryption diff --git a/tests/003-csrgen/run.sh b/tests/003-csrgen/run.sh index 7c169ed..e693381 100755 --- a/tests/003-csrgen/run.sh +++ b/tests/003-csrgen/run.sh @@ -299,7 +299,7 @@ done ns_certtype= size=2048 -subject="CN=Babs Jensen" +subject="CN=Cloud\, Inc." hostname=localhost,localhost.localdomain email=root@localhost,root@localhost.localdomain principal=root@EXAMPLE.COM,root@FOO.EXAMPLE.COM