Skip to content

Commit

Permalink
fix race condition in PKI test (#3153)
Browse files Browse the repository at this point in the history
* fix race condition in test

* imports

* fix test 1

* fix test 2
  • Loading branch information
gerardsn authored May 30, 2024
1 parent afca9cf commit 79e7042
Show file tree
Hide file tree
Showing 16 changed files with 482 additions and 321 deletions.
10 changes: 3 additions & 7 deletions pki/pki_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ package pki

import (
"context"
"testing"
"time"

"github.com/nuts-foundation/nuts-node/core"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
"time"
)

func Test_New(t *testing.T) {
Expand Down Expand Up @@ -125,11 +126,6 @@ func TestPKI_CheckHealth(t *testing.T) {
})

t.Run("crl + denylist outdated", func(t *testing.T) {
nowFunc = func() time.Time {
return time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC)
}
defer func() { nowFunc = time.Now }()

// Check health
results := e.CheckHealth()
assert.Len(t, results, 2)
Expand Down
88 changes: 44 additions & 44 deletions pki/test/A-expired.pem
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
-----BEGIN CERTIFICATE-----
MIIDcTCCAlmgAwIBAgIBBjANBgkqhkiG9w0BAQsFADAcMRowGAYDVQQDDBFJbnRl
cm1lZGlhdGUgQSBDQTAeFw0yMzAzMjkwOTMyMjdaFw0yMzAzMzAwOTMyMjdaMBgx
MIIDcTCCAlmgAwIBAgIBBzANBgkqhkiG9w0BAQsFADAcMRowGAYDVQQDDBFJbnRl
cm1lZGlhdGUgQSBDQTAeFw0yNDA1MjkxMDQ5MTdaFw0yNDA1MzAxMDQ5MTdaMBgx
FjAUBgNVBAMMDUNlcnRBIEV4cGlyZWQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
ggEKAoIBAQCjfWDpNWcZZ3lD5Im7kAcgUhkm/t8/c8xZWW60StDxvm12M+ay1fGy
sl2v8yhhnqTQjl1oDO5RxrOPMJrINPc/rV808fbPJbushSEVEYNmxQThf2e0Ny3G
/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qLu6J579p4Cq/cN1kqwMRrsDRGZtX41CCwKBgQD3oVsllr1WhA1kDlSi
lhOzyMPWNFzXmd1U1FZk1lHX+n96pY0+pHNTZHZh3aJZCGB7OArzraWNPCx7QgWP
jEab/OF11hjAvK1wiFNlp88iy4WSt4cAkPQNgFqcpmqoww/+tj3K8mNVoxU++FUo
/UwHFUNiYn9ZQFjNJQp9iuKo5wKBgQDFM34pXOuFct7vAHJao/tJMH2cVSjGOT5m
5ry1p1hWVKp26HkEGaIRfsH0BmEO2Z6l2b2bWif1Wax2Oy0IPgjSXL5YgtybNRLW
mz+OqiUy6q+yf9N1XgXFW5U+f09unvqlWuw7LKgopcgqyl0DbRcBKUcw9c9yZtrJ
rMYG7bBrIwKBgFCBGpq7yM4pnBjdN9Krq7gVGuW2nEBTe0sqxPN/YZgvjeYXkDW/
TObdkEb8wNzlBkjIzXavC1VBLMzdh+VFG2d27O1cLyvpqxEcoNA5n/OV6tTp6W/b
sBv7kHnA+Ifo8nhCUxB5gKXEoRGZtkXfIypiVUfU8cXYT4ZR9nkd/9YdAoGBAKBf
ujCFYv0KaIdSg613QrtI9j6XeyuKDle9Oqc4yzyaam99rD1LY2R7A90i+vgKv1z9
8ZdQAMMmBH26rmrPmHkL97kf461Nwl5Jr6ykbtAz0GOIVT5UErloO72x57V9ETY8
9XVCYhd8i4dRP8ezhkvpd/43Slgtka0GF54224ylAoGAAUYjR9C7F2kBtZbQTynn
k28k+kNkqqiGOeeEgrbkliQk3kmcodkjkQsCVLwSSNLCb7LehFcZiQo8uP9uO8Qm
oaXb7jeN/SJEQbPmhaGzcoFOpG50Y4vvtq+MSEVIrTclLeAaW67f51G5lboiq3E/
F9s08fvYqIL+MVx2Dyq80xo=
-----END PRIVATE KEY-----
88 changes: 44 additions & 44 deletions pki/test/A-revoked.pem
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
-----BEGIN CERTIFICATE-----
MIIDcTCCAlmgAwIBAgIBBTANBgkqhkiG9w0BAQsFADAcM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zJFHpdNMDJjYRkcCcb3t0c/QqObRZAabNCC3EwN9CY
t2G2zg6kxe8pMkGIbzPnNQ+FTLsChG85N13aT0ECgYEA68828IGkExHu4q1GEIKa
2IN11OkE2g78+8FNo3YwyqKz9nnR057v9qVgWKUOeXWHdcNtcZ1YPxGVWasEUmex
Ig6XSbLVerrNr2acDliWIHWcSrSO0E/RujGe8uu2Olat8ElE78sLdBImxrcL1X5j
AdTJGc9r7jdppcD2WtJtYAc=
-----END PRIVATE KEY-----
88 changes: 44 additions & 44 deletions pki/test/A-valid.pem
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
-----BEGIN CERTIFICATE-----
MIIDbzCCAlegAwIBAgIBBDANBgkqhkiG9w0BAQsFADAcMRowGAYDVQQDDBFJbnRl
cm1lZGlhdGUgQSBDQTAeFw0yMzAzMjkwOTMyMjdaFw0zMzAzMjYwOTMyMjdaMBYx
MIIDbzCCAlegAwIBAgIBBTANBgkqhkiG9w0BAQsFADAcMRowGAYDVQQDDBFJbnRl
cm1lZGlhdGUgQSBDQTAeFw0yNDA1MjkxMDQ5MTdaFw0zNDA1MjcxMDQ5MTdaMBYx
FDASBgNVBAMMC0NlcnRBIFZhbGlkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEAuAq8DYAMQ+ZnEcTxO9shZ/riC3tifPA4IR0v+Llhxg3Fgigdj2IZEZAF
yDpEVdHVsh+i6v/zoNX2jIo6SyLFjL/i0ls4In++qgp/qWvYaEgvy8ZQf1nWDZO5
92ZPMAqm+im7c4QHLiSm8KfSo8FCNZp92GOtUIyl2h/db3g5rTzy8RYhw/UZA2Nk
G35TDafeJpY+Hl9R9oh0953ZFnjT/n6R3d2yftresjBtrJk53gUVhui38rdJ5KZ5
a0OCxVd24VMwmvwH5GcwHWd4OcpvHQ1WoFBE24jqc70PyVfIwHOBhxv5rJkckX31
1EipneRRjZGJyk7SNibCIi7+BFkt7wIDAQABo4HBMIG+MB8GA1UdIwQYMBaA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