From: Björn Fischer Date: Thu, 29 Oct 2020 11:38:48 +0000 (+0100) Subject: make smtp examples compliant to spec (#706) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=068b38468de8f3c844f7f7d8cec758c90675b1b3;p=blackbox_exporter.git make smtp examples compliant to spec (#706) Signed-off-by: Björn Fischer --- diff --git a/config/testdata/blackbox-good.yml b/config/testdata/blackbox-good.yml index 8615d3c..4e044b4 100644 --- a/config/testdata/blackbox-good.yml +++ b/config/testdata/blackbox-good.yml @@ -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 diff --git a/example.yml b/example.yml index f36a2a9..cdba7a1 100644 --- a/example.yml +++ b/example.yml @@ -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