Add unit test helpers for building certificate-related data.

Review Request #13257 — Created Sept. 5, 2023 and submitted

Information

Review Board
release-6.x

Reviewers

This introduces three new test helper methods:

  • TestCase.create_certificate()
  • TestCase.create_certificate_bundle()
  • TestCase.create_certificate_fingerprints()

These are used to create certificate-related objects for testing, with
pre-populated data.

create_certificate() defaults to hard-coded certificate values but no
certificate data. If cert_data is passed in, then default values are
loaded from the data instead.

Unit tests pass.

Used some of these in in-progress code.

Summary
Add unit test helpers for building certificate-related data.
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-6.x (772e475)
Loading...