From c1835f3275dd047393e05f92085a42bd61a5bd39 Mon Sep 17 00:00:00 2001 From: AndyWalshe Date: Thu, 25 Apr 2019 11:20:38 +0000 Subject: Update Sanity tests to verify PNF package onboarding Change-Id: Ibf7af544bf5fb9c63cf8d9c1573dafe50a395560 Issue-ID: SDC-1970 Signed-off-by: AndyWalshe --- .../Files/PNFs/sample-pnf-1.0.1-SNAPSHOT.csar | Bin 0 -> 22793 bytes .../PNFs/sample-signed-pnf-1.0.1-SNAPSHOT.zip | Bin 0 -> 23132 bytes .../sdc-api-tests/files/default/cert/root.cert | 21 +++++++++++++++++++++ .../sanityApiTests_2_setup_configuration.rb | 9 +++++++++ 4 files changed, 30 insertions(+) create mode 100644 test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/PNFs/sample-pnf-1.0.1-SNAPSHOT.csar create mode 100644 test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/PNFs/sample-signed-pnf-1.0.1-SNAPSHOT.zip create mode 100644 test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/cert/root.cert (limited to 'test-apis-ci/sdc-api-tests') diff --git a/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/PNFs/sample-pnf-1.0.1-SNAPSHOT.csar b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/PNFs/sample-pnf-1.0.1-SNAPSHOT.csar new file mode 100644 index 0000000000..6142b9bb95 Binary files /dev/null and b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/PNFs/sample-pnf-1.0.1-SNAPSHOT.csar differ diff --git a/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/PNFs/sample-signed-pnf-1.0.1-SNAPSHOT.zip b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/PNFs/sample-signed-pnf-1.0.1-SNAPSHOT.zip new file mode 100644 index 0000000000..d97e639711 Binary files /dev/null and b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/PNFs/sample-signed-pnf-1.0.1-SNAPSHOT.zip differ diff --git a/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/cert/root.cert b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/cert/root.cert new file mode 100644 index 0000000000..8db7c191a6 --- /dev/null +++ b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/cert/root.cert @@ -0,0 +1,21 @@ +-----BEGIN CERTIFICATE----- +MIIDYDCCAkigAwIBAgIJAKqOa8IS4G5sMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV +BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX +aWRnaXRzIFB0eSBMdGQwHhcNMTkwNDAxMTY1NDU0WhcNMTkwNTAxMTY1NDU0WjBF +MQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50 +ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB +CgKCAQEA4MWjUSuRVMn6LtN32JqCwIC7Gqi+drYof+uDV20jA48wohFj2nX87Eqb +W6vlz3VoEZeGCRk583l3hxctHl8t1hWwLuuCUJPOYCytkZkN0vBkfEumhg3sAy0/ +81DKO/GmEwB0H/xs6fVYFRS+KoQblCMVEcO86jsvlLi4wEaFGDWnj5YeTsYbB5Nt +gzBUGYVx0yMGIvMMZy6j2Etu4LNuiyp9Ji9kNp2/3a/eO5Q1eTOq1aIPfg75S61k +PAyraf7wreOmlbN+tV+cho0GlFOdsIs9Nl/dlf1SuIGLw6+/YEv9mhRyZQ88Gq35 +Kqx3BYna+uktKSZ/UkRfT/KyiGPNsQIDAQABo1MwUTAdBgNVHQ4EFgQUSWuR/OMI +iYFthwlP9Zw4PPAjGcEwHwYDVR0jBBgwFoAUSWuR/OMIiYFthwlP9Zw4PPAjGcEw +DwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAxKoUuvCQp52dqi0g +h818IS4lK7A/uiP4xvCitpaVitQD4qMdRhmwtkx2Y++AD1aiOG0JqcLFtas7JFCI +Fi8ZMLG2CgVE8G3p1pg2o1ORhqtM+gBr3s1kwNILi5UpcGtkgRUrjMWsYo4Igiwu +dDyvjkdwaDXjVnl12joofGJMqPkg0zKiQDLwGEaGUI8lrSyP1NI0zKJoUOiSK6ss +QwyQa4Kge0qLxvCbPHLIiSD8/hEMQnruvvL7j8MqhcU4x0f+2p87xRWrtEBYHYH9 +/jQhlGaqrBb7F40LsgqqTjMLQMnGjEEuyTxO356Bv8DwI497N+I2Hxm98UY5YzUM +bR057A== +-----END CERTIFICATE----- diff --git a/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/recipes/sanityApiTests_2_setup_configuration.rb b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/recipes/sanityApiTests_2_setup_configuration.rb index 7321155232..595b24a6d1 100644 --- a/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/recipes/sanityApiTests_2_setup_configuration.rb +++ b/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/recipes/sanityApiTests_2_setup_configuration.rb @@ -41,3 +41,12 @@ template "titan.properties" do :DC_NAME => node['cassandra']['datacenter_name']+node.chef_environment }) end + +bash "Make root cert file available" do +cwd "#{tests_base}" +code <<-EOH + cp /root/chef-solo/cookbooks/sdc-api-tests/files/default/cert/root.cert /var/lib/tests/cert/root.cert + echo "root.cert file made available for tests." +EOH +end + -- cgit 1.2.3-korg