problem: separate tests are not usable in the current state, better to work on improving unit tests
(cherry picked from commit 96264b839f)
This commit is contained in:
@@ -49,7 +49,7 @@ class EcdsaSignerSpec extends Specification {
|
||||
setup:
|
||||
def conf = new SignatureConfig()
|
||||
conf.enabled = true
|
||||
conf.privateKey = "testing/dshackle/test_key"
|
||||
conf.privateKey = "src/test/resources/signer/test_key"
|
||||
def signer = new ResponseSignerFactory(conf).getObject() as EcdsaSigner
|
||||
|
||||
// To verify the test, check the hash of test key above:
|
||||
@@ -114,7 +114,7 @@ class EcdsaSignerSpec extends Specification {
|
||||
|
||||
def conf = new SignatureConfig()
|
||||
conf.enabled = true
|
||||
conf.privateKey = "testing/dshackle/test_key"
|
||||
conf.privateKey = "src/test/resources/signer/test_key"
|
||||
def factory = new ResponseSignerFactory(conf)
|
||||
|
||||
def sk = factory.readKey(conf.algorithm, conf.privateKey).first
|
||||
|
||||
5
src/test/resources/signer/test_key
Normal file
5
src/test/resources/signer/test_key
Normal file
@@ -0,0 +1,5 @@
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgWz2Pxo+O3UAWFLqJ
|
||||
BMLoT8VtWNXn4FHb+VMiyrn0sfehRANCAAR7z21AewiDegaV/4zBkBbNWGOSg1Zo
|
||||
tE6HGCLMMuKP0XmOg2jVoIvnHJ1OZCIKb236HwnogF4G+o/qlCTi90P1
|
||||
-----END PRIVATE KEY-----
|
||||
4
src/test/resources/signer/test_key.pub
Normal file
4
src/test/resources/signer/test_key.pub
Normal file
@@ -0,0 +1,4 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEe89tQHsIg3oGlf+MwZAWzVhjkoNW
|
||||
aLROhxgizDLij9F5joNo1aCL5xydTmQiCm9t+h8J6IBeBvqP6pQk4vdD9Q==
|
||||
-----END PUBLIC KEY-----
|
||||
Reference in New Issue
Block a user