Fix missing ACME provisioner option

This commit is contained in:
Herman Slatman 2022-04-08 16:10:26 +02:00
parent 9797b3350e
commit 0bb15e16f9
No known key found for this signature in database
GPG key ID: F4D8A44EA0A75A4F
2 changed files with 2 additions and 1 deletions

View file

@ -139,6 +139,7 @@ func (p *ACME) AuthorizeOrderIdentifier(ctx context.Context, identifier ACMEIden
// on the resulting certificate.
func (p *ACME) AuthorizeSign(ctx context.Context, token string) ([]SignOption, error) {
opts := []SignOption{
p,
// modifiers / withOptions
newProvisionerExtensionOption(TypeACME, p.Name, ""),
newForceCNOption(p.ForceCN),

View file

@ -176,7 +176,7 @@ func TestACME_AuthorizeSign(t *testing.T) {
}
} else {
if assert.Nil(t, tc.err) && assert.NotNil(t, opts) {
assert.Len(t, 6, opts) // number of SignOptions returned
assert.Equals(t, 7, len(opts)) // number of SignOptions returned
for _, o := range opts {
switch v := o.(type) {
case *ACME: