Skip to content

Commit

Permalink
Merge pull request #750 from nolar/compact-ips-in-ssl
Browse files Browse the repository at this point in the history
Remove leading zeros from IPv4 in tests
  • Loading branch information
nolar authored May 7, 2021
2 parents 9c931fe + bfc158c commit 45eecf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/admission/test_certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_missing_certbuilder(no_certbuilder):


def test_certificate_generation():
names = ['hostname1', 'hostname2', '001.002.003.004', '0:0:0:0:0:0:0:1']
names = ['hostname1', 'hostname2', '1.2.3.4', '0:0:0:0:0:0:0:1']
cert, pkey = WebhookServer.build_certificate(names)
context = certvalidator.ValidationContext(extra_trust_roots=[cert])
validator = certvalidator.CertificateValidator(cert, validation_context=context)
Expand Down

0 comments on commit 45eecf9

Please sign in to comment.