From da77b64fa22f30ccdfa18984c28d5054f89723b4 Mon Sep 17 00:00:00 2001 From: Manjunath Ranganathaiah Date: Fri, 28 Sep 2018 16:15:07 -0700 Subject: func test framework and tests for sshsm This patch adds test framework and tests for TPM based CA key protection import and signing. Change-Id: I7bdd602f7275dd8613faeced11aad6c09a8aab52 Issue-ID: AAF-527 Signed-off-by: Manjunath Ranganathaiah --- test/func/data/caservice/local/org.osaaf.aaf.cm.pkcs11 | 1 + test/func/data/caservice/local/org.osaaf.cm.ca.props | 11 +++++++++++ test/func/data/caservice/passphrase-ipass | 1 + test/func/data/caservice/passphrase-pin | 1 + test/func/data/caservice/sopin.txt | 1 + test/func/data/caservice/upin.txt | 1 + test/func/data/distcenter/passphrase | 1 + 7 files changed, 17 insertions(+) create mode 100644 test/func/data/caservice/local/org.osaaf.aaf.cm.pkcs11 create mode 100644 test/func/data/caservice/local/org.osaaf.cm.ca.props create mode 100644 test/func/data/caservice/passphrase-ipass create mode 100644 test/func/data/caservice/passphrase-pin create mode 100644 test/func/data/caservice/sopin.txt create mode 100644 test/func/data/caservice/upin.txt create mode 100644 test/func/data/distcenter/passphrase (limited to 'test/func/data') diff --git a/test/func/data/caservice/local/org.osaaf.aaf.cm.pkcs11 b/test/func/data/caservice/local/org.osaaf.aaf.cm.pkcs11 new file mode 100644 index 0000000..05fe60f --- /dev/null +++ b/test/func/data/caservice/local/org.osaaf.aaf.cm.pkcs11 @@ -0,0 +1 @@ +name = localca diff --git a/test/func/data/caservice/local/org.osaaf.cm.ca.props b/test/func/data/caservice/local/org.osaaf.cm.ca.props new file mode 100644 index 0000000..5a3fa83 --- /dev/null +++ b/test/func/data/caservice/local/org.osaaf.cm.ca.props @@ -0,0 +1,11 @@ +## +## org.osaaf.cm.ca.props +## Properties to access Certifiate Authority +## + +#Certman +cm_ca.local=org.onap.aaf.auth.cm.ca.LocalCA,/opt/app/osaaf/local/org.osaaf.aaf.cm.pkcs11;0x2222;enc:asFEWMNqjH7GktBLb9EGl6L1zfS2qMH5ZS5Zd90KVT5B9ZyRsqx7Gb73YllO8Hyw +cm_ca.local.idDomains=org.osaaf +cm_ca.local.baseSubject=/OU=OSAAF/O=ONAP/C=US +cm_ca.local.perm_type=org.osaaf.aaf.ca + diff --git a/test/func/data/caservice/passphrase-ipass b/test/func/data/caservice/passphrase-ipass new file mode 100644 index 0000000..163769d --- /dev/null +++ b/test/func/data/caservice/passphrase-ipass @@ -0,0 +1 @@ +csittestphrase diff --git a/test/func/data/caservice/passphrase-pin b/test/func/data/caservice/passphrase-pin new file mode 100644 index 0000000..163769d --- /dev/null +++ b/test/func/data/caservice/passphrase-pin @@ -0,0 +1 @@ +csittestphrase diff --git a/test/func/data/caservice/sopin.txt b/test/func/data/caservice/sopin.txt new file mode 100644 index 0000000..28d1445 --- /dev/null +++ b/test/func/data/caservice/sopin.txt @@ -0,0 +1 @@ +123456789 diff --git a/test/func/data/caservice/upin.txt b/test/func/data/caservice/upin.txt new file mode 100644 index 0000000..28d1445 --- /dev/null +++ b/test/func/data/caservice/upin.txt @@ -0,0 +1 @@ +123456789 diff --git a/test/func/data/distcenter/passphrase b/test/func/data/distcenter/passphrase new file mode 100644 index 0000000..163769d --- /dev/null +++ b/test/func/data/distcenter/passphrase @@ -0,0 +1 @@ +csittestphrase -- cgit 1.2.3-korg