From Little Bongo, 1 Week ago, written in Plain Text.
This paste will explode in 10 Months.
Embed
  1. Profile: tests from {:path=>"/home/andrewda/Development/osl-imap/test/integration/auth_sql/inspec"} (tests from {:path=>".home.andrewda.Development.osl-imap.test.integration.auth_sql.inspec"})
  2. Version: (not specified)
  3. Target:  ssh://centos@10.1.100.9:22
  4.  
  5.   File /etc/dovecot/conf.d/10-auth.conf
  6.      ✔  content is expected to match /^!include auth-sql.conf.ext$/
  7.   File /etc/dovecot/conf.d/auth-sql.conf.ext
  8.      ✔  content is expected to match /passdb {
  9.        driver = sql
  10.        args = \/etc\/dovecot\/dovecot-sql.conf.ext
  11.      }/
  12.   File /etc/dovecot/dovecot-sql.conf.ext
  13.      ✔  content is expected to match /driver = mysql/
  14.      ✔  content is expected to match /connect = host=127.0.0.1 dbname=dovecot user=dovecot_user password=dovecot_pass/
  15.      ✔  content is expected to match /default_pass_scheme = SHA512-CRYPT/
  16.   File /var/log/maillog
  17.      ×  content is expected to match /postfix\/local.* to=<foo@foo.org>.* status=sent \(delivered to maildir\)$/
  18.      expected "Oct 28 20:32:20 localhost postfix/postfix-script[1052]: starting the Postfix mail system\nOct 28 20:...oletworkstationcassor-1e5c078 dovecot: master: Warning: SIGHUP received - reloading configuration\n" to match /postfix\/local.* to=<foo@foo.org>.* status=sent \(delivered to maildir\)$/
  19.      Diff:
  20.      @@ -1,2 +1,19 @@
  21.      -/postfix\/local.* to=<foo@foo.org>.* status=sent \(delivered to maildir\)$/
  22.      +Oct 28 20:32:20 localhost postfix/postfix-script[1052]: starting the Postfix mail system
  23.      +Oct 28 20:32:20 localhost postfix/master[1054]: daemon started -- version 2.10.1, configuration /etc/postfix
  24.      +Oct 28 20:33:29 localhost postfix/postfix-script[12169]: stopping the Postfix mail system
  25.      +Oct 28 20:33:29 localhost postfix/master[1054]: terminating on signal 15
  26.      +Nov  5 22:56:22 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 postfix/postfix-script[3231]: starting the Postfix mail system
  27.      +Nov  5 22:56:22 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 postfix/master[3233]: daemon started -- version 2.10.1, configuration /etc/postfix
  28.      +Nov  5 22:56:36 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 postfix/postfix-script[3489]: stopping the Postfix mail system
  29.      +Nov  5 22:56:36 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 postfix/master[3233]: terminating on signal 15
  30.      +Nov  5 22:58:39 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 dovecot: master: Dovecot v2.2.36 (1f10bfa63) starting up for imap, pop3 (core dumps disabled)
  31.      +Nov  5 22:58:42 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 sendmail[19326]: alias database /etc/aliases rebuilt by centos
  32.      +Nov  5 22:58:42 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 sendmail[19326]: /etc/aliases: 76 aliases, longest 10 bytes, 771 bytes total
  33.      +Nov  5 22:58:43 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 sendmail[19337]: xA5MwhmK019337: from=centos, size=79, class=0, nrcpts=1, msgid=<201911052258.xA5MwhmK019337@authsqlcentos7-andrewda-violetworkstationcassor-1e5c078.novaloca>, relay=root@localhost
  34.      +Nov  5 22:58:43 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 sendmail[19337]: xA5MwhmK019337: to=foo@foo.org, ctladdr=centos (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30079, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
  35.      +Nov  5 22:58:43 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 sendmail[19352]: alias database /etc/aliases rebuilt by root
  36.      +Nov  5 22:58:43 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 sendmail[19352]: /etc/aliases: 76 aliases, longest 10 bytes, 771 bytes total
  37.      +Nov  5 22:58:43 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 postfix/postfix-script[19428]: starting the Postfix mail system
  38.      +Nov  5 22:58:43 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 postfix/master[19430]: daemon started -- version 2.10.1, configuration /etc/postfix
  39.      +Nov  5 22:58:44 authsqlcentos7-andrewda-violetworkstationcassor-1e5c078 dovecot: master: Warning: SIGHUP received - reloading configuration
  40.  
  41.   Command: `expect <<< '
  42.   spawn openssl s_client -connect localhost:993
  43.   expect {
  44.     -re "OK .* Dovecot ready." {
  45. "     send -- "1 login foo@foo.org bar
  46.       exp_continue
  47.     } -re "1 OK .* Logged in" {
  48. "     send -- "2 select inbox
  49.       exp_continue
  50.     } -re "2 OK .* Select completed" {
  51. "     send -- "3 FETCH 1:* BODY\[TEXT\]
  52.       exp_continue
  53.     } "This test email should be fetchable via IMAP" {
  54.       exit 0
  55.     } default {
  56.       exit 1
  57.     }
  58.   }'`
  59.      ×  exit_status is expected to eq 0
  60.      
  61.      expected: 0
  62.           got: 1
  63.      
  64.      (compared using ==)
  65.  
  66.      ×  stdout is expected to match /This test email should be fetchable via IMAP/
  67.      expected "spawn openssl s_client -connect localhost:993\r\nCONNECTED(00000003)\r\ndepth=0 C = US, ST = Oregon,...1:* BODY[TEXT]\r\n3 BAD Error in IMAP command FETCH: Invalid messageset (0.001 + 0.000 secs).\r\r\n" to match /This test email should be fetchable via IMAP/
  68.      Diff:
  69.      @@ -1,2 +1,93 @@
  70.      -/This test email should be fetchable via IMAP/
  71.      +spawn openssl s_client -connect localhost:993
  72.      +CONNECTED(00000003)
  73.      +depth=0 C = US, ST = Oregon, CN = OSU Open Source Lab, DC = example
  74.      +verify error:num=18:self signed certificate
  75.      +verify return:1
  76.      +depth=0 C = US, ST = Oregon, CN = OSU Open Source Lab, DC = example
  77.      +verify error:num=10:certificate has expired
  78.      +notAfter=Jul  7 02:16:16 2018 GMT
  79.      +verify return:1
  80.      +depth=0 C = US, ST = Oregon, CN = OSU Open Source Lab, DC = example
  81.      +notAfter=Jul  7 02:16:16 2018 GMT
  82.      +verify return:1
  83.      +---
  84.      +Certificate chain
  85.      + 0 s:/C=US/ST=Oregon/CN=OSU Open Source Lab/DC=example
  86.      +   i:/C=US/ST=Oregon/CN=OSU Open Source Lab/DC=example
  87.      +---
  88.      +Server certificate
  89.      +-----BEGIN CERTIFICATE-----
  90.      +MIIDIzCCAgugAwIBAgIBAjANBgkqhkiG9w0BAQUFADBVMQswCQYDVQQGEwJVUzEP
  91.      +MA0GA1UECAwGT3JlZ29uMRwwGgYDVQQDDBNPU1UgT3BlbiBTb3VyY2UgTGFiMRcw
  92.      +FQYKCZImiZPyLGQBGRYHZXhhbXBsZTAeFw0xNzA3MDcwMjE2MTZaFw0xODA3MDcw
  93.      +MjE2MTZaMFUxCzAJBgNVBAYTAlVTMQ8wDQYDVQQIDAZPcmVnb24xHDAaBgNVBAMM
  94.      +E09TVSBPcGVuIFNvdXJjZSBMYWIxFzAVBgoJkiaJk/IsZAEZFgdleGFtcGxlMIIB
  95.      +IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmTB43iXeEI9ePWj3CWp10z5B
  96.      +BRpS57d6gPvHvR0OkZC/HHGgYtrNSVZ5gP+rpt2BrhwrGFFjBrRWLYyLnoljSmsq
  97.      +wtcL4Ar1cgUCxZ0xzd+xxHETsITxQxDUfESRCzJhKz686EfUNFVPTPHn2Xmk8lxj
  98.      +P4ekiaR5CjZUI9NCe4puFIbzj2OInjopO8i4jeHdGnzOqVLgti9v6bJMG8+MkWtH
  99.      +UWKqgLalCKUVun2LtCi1q9TKJr4KGfAj9x6PoawJkNLDLYapjYwLdT5ZosmThdhE
  100.      +BDvfoVtER9f0R9HbO8+JI3nxj71AstgyiJ74HswQWkcdxY/AHdi275UG0N7iMQID
  101.      +AQABMA0GCSqGSIb3DQEBBQUAA4IBAQB3Cfbqbgb1IBMxmFkQO1tWQk5NplQpZJ6Y
  102.      +te1hdz7lsOHL6kNctw3yLIce5QWzN7lh+Obwt4jAM/b2Em/cZz78/erWjGCHTV9m
  103.      +0mTyj9vrP0J1yAaBOYQ3VLfOZJcy3fcq536ST7rCvZI5x+m5Vb67jDWqcwkQTpHD
  104.      +t1iHg6P/txUeh+TDMiANUOLHQpIp6wJDqY18gbVD/KohXGE1mzqHpV/xhCta6K8u
  105.      +f2iDyWjBCjbGQ+ISV/o0NGOdY6a5f31APhrhYipr5zQYkdjMSSdJnKL/5wtZkdKy
  106.      +n35gtugw0ekJCuKvruIYAHSLI3WNmvEPyB4W/UI/z+X2JfQeDLb1
  107.      +-----END CERTIFICATE-----
  108.      +subject=/C=US/ST=Oregon/CN=OSU Open Source Lab/DC=example
  109.      +issuer=/C=US/ST=Oregon/CN=OSU Open Source Lab/DC=example
  110.      +---
  111.      +No client certificate CA names sent
  112.      +Peer signing digest: SHA512
  113.      +Server Temp Key: ECDH, P-256, 256 bits
  114.      +---
  115.      +SSL handshake has read 1466 bytes and written 415 bytes
  116.      +---
  117.      +New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
  118.      +Server public key is 2048 bit
  119.      +Secure Renegotiation IS supported
  120.      +Compression: NONE
  121.      +Expansion: NONE
  122.      +No ALPN negotiated
  123.      +SSL-Session:
  124.      +    Protocol  : TLSv1.2
  125.      +    Cipher    : ECDHE-RSA-AES256-GCM-SHA384
  126.      +    Session-ID: B1BC39DAEC528055B8C334ACF7674CDB60220718BD4CDF21D99376AD542511A6
  127.      +    Session-ID-ctx:
  128.      +    Master-Key: 1BC4F483A31849BC0C76C604F3678FBEDFE30EA245F6034326648151CB07D2865FF940EE1D2C02668992A8D5D6E45E13
  129.      +    Key-Arg   : None
  130.      +    Krb5 Principal: None
  131.      +    PSK identity: None
  132.      +    PSK identity hint: None
  133.      +    TLS session ticket lifetime hint: 300 (seconds)
  134.      +    TLS session ticket:
  135.      +    0000 - 09 d9 fe ef 73 57 60 d8-5d a1 20 73 c3 56 29 90   ....sW`.]. s.V).
  136.      +    0010 - 29 3d 41 5f 7a c2 01 0c-14 14 3b 0b 6d de 7f 43   )=A_z.....;.m..C
  137.      +    0020 - bd 8a 01 1a b6 c8 14 cf-ae 4f 4c 4e 0c 40 e7 28   .........OLN.@.(
  138.      +    0030 - b6 e7 f2 37 c2 bc de ce-50 65 47 fd ec 5d f3 95   ...7....PeG..]..
  139.      +    0040 - ee e4 d3 9e 7d 91 8a 66-c6 72 f3 12 77 fc cd 77   ....}..f.r..w..w
  140.      +    0050 - ed 59 30 ca 39 31 89 ae-3a 82 62 e5 33 ac 1e 55   .Y0.91..:.b.3..U
  141.      +    0060 - f5 2d f1 2d e2 cb af 9f-95 37 36 eb ad 4f b1 8d   .-.-.....76..O..
  142.      +    0070 - 0c 56 f2 98 8f b2 ec 42-f2 15 aa 90 9b 38 2a 63   .V.....B.....8*c
  143.      +    0080 - 30 0e 7f 6f b7 38 71 03-19 5e 7f 2d 3c bf 31 25   0..o.8q..^.-<.1%
  144.      +    0090 - b4 a2 99 f1 ae 32 33 02-aa 1c 5a 28 83 5e 51 5e   .....23...Z(.^Q^
  145.      +
  146.      +    Start Time: 1572994726
  147.      +    Timeout   : 300 (sec)
  148.      +    Verify return code: 10 (certificate has expired)
  149.      +---
  150.      +* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
  151.      +1 login foo@foo.org bar
  152.      +1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY] Logged in
  153.      +2 select inbox
  154.      +* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
  155.      +* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
  156.      +* 0 EXISTS
  157.      +* 0 RECENT
  158.      +* OK [UIDVALIDITY 1572994727] UIDs valid
  159.      +* OK [UIDNEXT 1] Predicted next UID
  160.      +2 OK [READ-WRITE] Select completed (0.017 + 0.000 + 0.016 secs).
  161.      +3 FETCH 1:* BODY[TEXT]
  162.      +3 BAD Error in IMAP command FETCH: Invalid messageset (0.001 + 0.000 secs).