Only validates values if present in options. Fixing authority test to parse plugin information. (#713)
This commit is contained in:
parent
038beafb5e
commit
602c5580d3
|
@ -35,6 +35,9 @@ def validate_options(options):
|
||||||
interval = get_plugin_option('interval', options)
|
interval = get_plugin_option('interval', options)
|
||||||
unit = get_plugin_option('unit', options)
|
unit = get_plugin_option('unit', options)
|
||||||
|
|
||||||
|
if not interval and not unit:
|
||||||
|
return
|
||||||
|
|
||||||
if interval == 'month':
|
if interval == 'month':
|
||||||
unit *= 30
|
unit *= 30
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ def test_authority_input_schema(client, role):
|
||||||
'owner': 'jim@example.com',
|
'owner': 'jim@example.com',
|
||||||
'description': 'An example authority.',
|
'description': 'An example authority.',
|
||||||
'commonName': 'AnExampleAuthority',
|
'commonName': 'AnExampleAuthority',
|
||||||
'pluginName': {'slug': 'verisign-issuer'},
|
'plugin': {'slug': 'verisign-issuer', 'plugin_options': [{'name': 'test', 'value': 'blah'}]},
|
||||||
'type': 'root',
|
'type': 'root',
|
||||||
'signingAlgorithm': 'sha256WithRSA',
|
'signingAlgorithm': 'sha256WithRSA',
|
||||||
'keyType': 'RSA2048',
|
'keyType': 'RSA2048',
|
||||||
|
|
Loading…
Reference in New Issue