mirror of https://gitlab.com/bashrc2/epicyon
Failing test for json signature failure
parent
e8290d99d5
commit
1a74ec6d53
3
tests.py
3
tests.py
|
@ -2030,6 +2030,9 @@ def testJsonld():
|
||||||
assert(len(signedDocument['signature']['signatureValue']) > 50)
|
assert(len(signedDocument['signature']['signatureValue']) > 50)
|
||||||
assert(signedDocument['signature']['type'] == 'RsaSignatureSuite2017')
|
assert(signedDocument['signature']['type'] == 'RsaSignatureSuite2017')
|
||||||
assert(jsonldVerify(signedDocument, publicKeyPem))
|
assert(jsonldVerify(signedDocument, publicKeyPem))
|
||||||
|
# alter the signed document
|
||||||
|
# signedDocument['object']['content'] = 'forged content'
|
||||||
|
# assert(not jsonldVerify(signedDocument, publicKeyPem))
|
||||||
|
|
||||||
|
|
||||||
def testSiteIsActive():
|
def testSiteIsActive():
|
||||||
|
|
Loading…
Reference in New Issue