Skip to content

Commit

Permalink
Allow bad cert or unknown authority error
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Egan <charlie@styra.com>
  • Loading branch information
charlieegan3 committed Dec 7, 2023
1 parent 7f82e16 commit 1ec66e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5144,8 +5144,8 @@ func TestCertPoolReloading(t *testing.T) {
}

_, err = client.Do(req)
if !strings.Contains(err.Error(), "bad certificate") {
t.Fatalf("expected bad certificate error, got %s", err.Error())
if !strings.Contains(err.Error(), "remote error: tls") {
t.Fatalf("expected unknown certificate authority error but got: %s", err)
}

// update the cert pool file to include the CA cert
Expand All @@ -5167,7 +5167,6 @@ func TestCertPoolReloading(t *testing.T) {
}

_, err = client.Do(req)
t.Log(err)
if err != nil {
t.Log("server still doesn't trust client cert")
retries--
Expand Down

0 comments on commit 1ec66e3

Please sign in to comment.