diff options
author | kooper <sergey.sachkov@est.tech> | 2019-04-29 13:09:09 +0000 |
---|---|---|
committer | kooper <sergey.sachkov@est.tech> | 2019-04-29 13:09:09 +0000 |
commit | 7480415fabbe61ef06b958c59d4a4af201b69da3 (patch) | |
tree | 9412fd818ecf816aaa094289daa6434f39e5600f /openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java | |
parent | c1835f3275dd047393e05f92085a42bd61a5bd39 (diff) |
SecurityManager test failing the build
Change-Id: I8ff3be7cdc2a1ebf2b3c8b55ac4199bd849865c9
Issue-ID: SDC-2256
Signed-off-by: kooper <sergey.sachkov@est.tech>
Diffstat (limited to 'openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java')
-rw-r--r-- | openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/security/SecurityManagerTest.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/security/SecurityManagerTest.java b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/security/SecurityManagerTest.java index eea8a3a186..597da9dd93 100644 --- a/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/security/SecurityManagerTest.java +++ b/openecomp-be/backend/openecomp-sdc-vendor-software-product-manager/src/test/java/org/openecomp/sdc/vendorsoftwareproduct/security/SecurityManagerTest.java @@ -97,8 +97,8 @@ public class SecurityManagerTest { File newFile = new File("/tmp/cert/root.cert"); newFile.createNewFile(); FileUtils.copyFile(origFile, newFile); - byte[] signature = Files.readAllBytes(Paths.get(getClass().getResource("/cert/2-file-signed-package/dummyPnfv3.cms").toURI())); - byte[] archive = Files.readAllBytes(Paths.get(getClass().getResource("/cert/2-file-signed-package/dummyPnfv3.csar").toURI())); + byte[] signature = Files.readAllBytes(Paths.get(getClass().getResource("/cert/2-file-signed-package/dummyPnfv4.cms").toURI())); + byte[] archive = Files.readAllBytes(Paths.get(getClass().getResource("/cert/2-file-signed-package/dummyPnfv4.csar").toURI())); assertTrue(securityManager.verifySignedData(signature, null, archive)); } @@ -108,8 +108,8 @@ public class SecurityManagerTest { File newFile = new File("/tmp/cert/root.cert"); newFile.createNewFile(); FileUtils.copyFile(origFile, newFile); - byte[] signature = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv3.cms").toURI())); - byte[] archive = Files.readAllBytes(Paths.get(getClass().getResource("/cert/2-file-signed-package/dummyPnfv3.csar").toURI())); + byte[] signature = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv4.cms").toURI())); + byte[] archive = Files.readAllBytes(Paths.get(getClass().getResource("/cert/2-file-signed-package/dummyPnfv4.csar").toURI())); securityManager.verifySignedData(signature, null, archive); } @@ -119,9 +119,9 @@ public class SecurityManagerTest { File newFile = new File("/tmp/cert/root.cert"); newFile.createNewFile(); FileUtils.copyFile(origFile, newFile); - byte[] signature = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv3.cms").toURI())); - byte[] archive = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv3.csar").toURI())); - byte[] cert = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv3.cert").toURI())); + byte[] signature = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv4.cms").toURI())); + byte[] archive = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv4.csar").toURI())); + byte[] cert = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv4.cert").toURI())); assertTrue(securityManager.verifySignedData(signature, cert, archive)); } @@ -131,9 +131,9 @@ public class SecurityManagerTest { File newFile = new File("/tmp/cert/root-certificate.cert"); newFile.createNewFile(); FileUtils.copyFile(origFile, newFile); - byte[] signature = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv3.cms").toURI())); - byte[] archive = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv3.csar").toURI())); - byte[] cert = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv3.cert").toURI())); + byte[] signature = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv4.cms").toURI())); + byte[] archive = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv4.csar").toURI())); + byte[] cert = Files.readAllBytes(Paths.get(getClass().getResource("/cert/3-file-signed-package/dummyPnfv4.cert").toURI())); securityManager.verifySignedData(signature, cert, archive); } @@ -143,8 +143,8 @@ public class SecurityManagerTest { File newFile = new File("/tmp/cert/root.cert"); newFile.createNewFile(); FileUtils.copyFile(origFile, newFile); - byte[] signature = Files.readAllBytes(Paths.get(getClass().getResource("/cert/tampered-signed-package/dummyPnfv3.cms").toURI())); - byte[] archive = Files.readAllBytes(Paths.get(getClass().getResource("/cert/tampered-signed-package/dummyPnfv3.csar").toURI())); + byte[] signature = Files.readAllBytes(Paths.get(getClass().getResource("/cert/tampered-signed-package/dummyPnfv4.cms").toURI())); + byte[] archive = Files.readAllBytes(Paths.get(getClass().getResource("/cert/tampered-signed-package/dummyPnfv4.csar").toURI())); securityManager.verifySignedData(signature, null, archive); } } |