From c50c4ae85ba50d01e478826bb597cef22dc9956f Mon Sep 17 00:00:00 2001 From: Margo Crawford Date: Wed, 23 Mar 2022 09:33:55 -0700 Subject: [PATCH] Change whitespace in nmap tests The git commit hook seemed to have trimmed some whitespace that was necessary for the formatting Signed-off-by: Margo Crawford --- .pre-commit-config.yaml | 1 + test/integration/securetls_fips_test.go | 6 +++--- test/integration/securetls_test.go | 10 +++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 97269f7a..1b1f337a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,7 @@ repos: - id: check-json - id: end-of-file-fixer - id: trailing-whitespace + exclude: 'securetls*' - id: check-merge-conflict - id: check-added-large-files - id: check-byte-order-marker diff --git a/test/integration/securetls_fips_test.go b/test/integration/securetls_fips_test.go index c629495e..e97ff2ee 100644 --- a/test/integration/securetls_fips_test.go +++ b/test/integration/securetls_fips_test.go @@ -245,10 +245,10 @@ Nmap done: 1 IP address (1 host up) scanned in` // the "cipher preference: client" bit a bug in nmap. // https://github.com/nmap/nmap/issues/1691#issuecomment-536919978 tls12Base = ` -| TLSv1.2: -| ciphers: +| TLSv1.2: +| ciphers: %s -| compressors: +| compressors: | NULL | cipher preference: server` diff --git a/test/integration/securetls_test.go b/test/integration/securetls_test.go index 0087232d..03f8547d 100644 --- a/test/integration/securetls_test.go +++ b/test/integration/securetls_test.go @@ -238,16 +238,16 @@ Nmap done: 1 IP address (1 host up) scanned in` // the "cipher preference: client" bit a bug in nmap. // https://github.com/nmap/nmap/issues/1691#issuecomment-536919978 tls12Base = ` -| TLSv1.2: -| ciphers: +| TLSv1.2: +| ciphers: %s -| compressors: +| compressors: | NULL | cipher preference: client` tls13Base = ` -| TLSv1.3: -| ciphers: +| TLSv1.3: +| ciphers: %s | cipher preference: server`