Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: saroshali-dbx <saroshali@dropbox.com>
  • Loading branch information
saroshali-dbx committed Jun 9, 2022
1 parent d123494 commit 69f5c39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/testdata/web_config_auth_client_common_name.bad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ tls_server_config:
key_file: "server.key"
client_auth_type: "RequireAndVerifyClientCert"
client_ca_file: "client_selfsigned.pem"
client_cert_allowed_cn: "bad.example.com"
client_cert_allowed_cn: "bad"
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ tls_server_config:
cert_file: "server.crt"
key_file: "server.key"
client_auth_type: "RequireAndVerifyClientCert"
client_ca_file: "client_selfsigned.pem",
client_cert_allowed_cn: "prometheus.example.com"
client_ca_file: "client_selfsigned.pem"
client_cert_allowed_cn: "test"
2 changes: 1 addition & 1 deletion web/tls_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var (
"Bad certificate": regexp.MustCompile(`bad certificate`),
"Invalid value": regexp.MustCompile(`invalid value for`),
"Invalid header": regexp.MustCompile(`HTTP header ".*" can not be configured`),
"Invalid common-name": regexp.MustCompile(`CommonName authentication failed`),
"Invalid common-name": regexp.MustCompile(`bad certificate`),
}
)

Expand Down

0 comments on commit 69f5c39

Please sign in to comment.