Skip to content

Commit

Permalink
Stop preparing a new authority before tainting (#5614)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Yacob <marcosyacob@gmail.com>
  • Loading branch information
MarcosDY authored Oct 31, 2024
1 parent 2287067 commit 714110d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/server/ca/manager/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,14 +393,10 @@ func TestUpstreamProcessTaintedAuthority(t *testing.T) {
test.initAndActivateUpstreamSignedManager(ctx, upstreamAuthority)
require.True(t, test.m.IsUpstreamAuthority())

// Prepared must be tainted too
err := test.m.PrepareX509CA(ctx)
require.NoError(t, err)

go test.m.ProcessBundleUpdates(ctx)

// Taint first root
err = fakeUA.TaintAuthority(0)
err := fakeUA.TaintAuthority(0)
require.NoError(t, err)

// Get the roots again and verify that the first X.509 authority is tainted
Expand Down

0 comments on commit 714110d

Please sign in to comment.