test: Wait for a successful pkilint connection before continuing integration tests (#7574)

I occasionally receive timeouts due to pkilint being unresponsive during
local integration tests. Typically this happens after rebooting my
machine, with no containers previously running due to the reboot, and no
container data in disk/memory cache.

Example timeout
```
16:14:40.485848 3 boulder-ca _PeZ5w0 [AUDIT] Preparing precert failed: issuer=[int rsa b] serial=[7f2ba75acba0b729fc4e1ba5e2f6aacd5921] regID=[1] names=[rand.3ce2c964.xyz] certProfileName=[defaultBoulderCertificateProfile] certProfileHash=[de4c8c8866ed46b1d4af0d79e6b7ecf2d1ea625e26adcbbd3979ececd8fbd05a] err=[tbsCertificate linting failed: failed lint(s): e_pkilint_lint_cabf_serverauth_cert (making POST request to pkilint API: Post "http://10.77.77.9/certificate/cabf-serverauth": context deadline exceeded)]
```
This commit is contained in:
Phil Porada 2024-07-09 12:38:44 -04:00 committed by GitHub
parent 9c88e49fb1
commit 3caa8988c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ service rsyslog start
# make sure we can reach the proxysql.
./test/wait-for-it.sh bproxysql 6032
# make sure we can reach pkilint
./test/wait-for-it.sh bpkilint 80
# create the database
MYSQL_CONTAINER=1 $DIR/create_db.sh