canonical / self-signed-certificates-operator

A charm to provide self-signed X.509 certificates in the Juju ecosystem.
https://charmhub.io/self-signed-certificates
Apache License 2.0
0 stars 6 forks source link

test: use scenario for unit testing #220

Closed gruyaume closed 3 months ago

gruyaume commented 3 months ago

Description

Here we replace harness with scenario for unit testing. Doing so, I identified an issue with self-signed certificates where the CA certificate expiry was not handled properly in charm code.

Rationale

The scenario framework enforces our current approach with:

This makes tests easier to read, to write, and to parameterise .

Reference

Checklist: