make smtp examples compliant to spec (#706)
authorBjörn Fischer <privat@bjorn-fischer.de>
Thu, 29 Oct 2020 11:38:48 +0000 (12:38 +0100)
committerGitHub <noreply@github.com>
Thu, 29 Oct 2020 11:38:48 +0000 (11:38 +0000)
Signed-off-by: Björn Fischer <bjoern.fischer@inovex.de>
config/testdata/blackbox-good.yml
example.yml

index 8615d3c65ea4d6436b67cdb12552553b463e9788..4e044b430c45df38a602d8624c73bafeb27465a0 100644 (file)
@@ -34,14 +34,14 @@ modules:
     tcp:
       query_response:
       - expect: "^220 "
-      - send: "EHLO prober"
+      - send: "EHLO prober\r"
       - expect: "^250-STARTTLS"
-      - send: "STARTTLS"
+      - send: "STARTTLS\r"
       - expect: "^220"
       - starttls: true
-      - send: "EHLO prober"
+      - send: "EHLO prober\r"
       - expect: "^250-AUTH"
-      - send: "QUIT"
+      - send: "QUIT\r"
   irc_banner:
     prober: tcp
     timeout: 5s
index f36a2a998d92b505b979d4d53294b28757bfd93a..cdba7a14c1b3eba3fec21fcdc3085fe889cbd82a 100644 (file)
@@ -77,14 +77,14 @@ modules:
     tcp:
       query_response:
         - expect: "^220 ([^ ]+) ESMTP (.+)$"
-        - send: "EHLO prober"
+        - send: "EHLO prober\r"
         - expect: "^250-STARTTLS"
-        - send: "STARTTLS"
+        - send: "STARTTLS\r"
         - expect: "^220"
         - starttls: true
-        - send: "EHLO prober"
+        - send: "EHLO prober\r"
         - expect: "^250-AUTH"
-        - send: "QUIT"
+        - send: "QUIT\r"
   irc_banner_example:
     prober: tcp
     timeout: 5s