summaryrefslogtreecommitdiffstats
path: root/csarvalidation/src/test
AgeCommit message (Collapse)AuthorFilesLines
2020-07-14use YAML schema validator in rule R816745Bartosz Gardziejewski12-9/+226
Issue-ID: VNFSDK-594 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I70c6150662b69833d4e190a6adc1047840a78975
2020-07-14Add validation of YAML documents, with use of schemaBartosz Gardziejewski6-5/+296
Issue-ID: VNFSDK-594 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I4afc573f564c642a349736e50b50c591b9b18650
2020-07-14Convert yaml schema into tree structureBartosz Gardziejewski8-11/+476
Issue-ID: VNFSDK-594 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I071095347fbdf824205e63ab9771cdf47d2ad29d
2020-07-07Merge "Extend R01123 to support ZIP files"Bogumil Zebek4-22/+51
2020-07-07Merge "Add wrappers for yaml generic objects"Bogumil Zebek2-0/+239
2020-07-07Extend R01123 to support ZIP filesBartosz Gardziejewski4-22/+51
Issue-ID: VNFSDK-583 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ie63d1ff3f38d10643bd895b5ed720997c189920a
2020-07-03Add R01123 to pnf validationBartosz Gardziejewski1-1/+3
Issue-ID: VNFSDK-583 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I2e4ba82e55dc366ea7c5ffb0944fc467ab530076
2020-07-02Change R130206 warning messageMichal Banka1-3/+3
Change-Id: I0160fb47414d6b04d2ef649bbacb5125f3ad3335 Issue-ID: VNFSDK-595 Signed-off-by: Michal Banka <michal.banka@nokia.com>
2020-07-01Add wrappers for yaml generic objectsBartosz Gardziejewski2-0/+239
Issue-ID: VNFSDK-594 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ic6e2f291a0f8d5a34b75208f7cff68c4262f6cbf
2020-07-01Merge "Add multi document Yaml file loading"Bogumil Zebek2-0/+260
2020-06-30Add multi document Yaml file loadingBartosz Gardziejewski2-0/+260
Issue-ID: VNFSDK-594 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: Ic4feb908b57bd6ff4f2903559dbc5b92836e2c33
2020-06-30Make rule 130206 less restrictiveAleksandra Maciaga3-3/+19
Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com> Issue-ID: VNFSDK-595 Change-Id: I39beb48d958b0589837f4d960ca7edded0e1e22e
2020-06-25Skip YAML validation in rule R816745, if onap_pm_dictionary is not present ↵Bartosz Gardziejewski3-0/+37
in non_mano_artifact_sets Issue-ID: VNFSDK-594 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I0e52bcc84583a65243fd821f6434f986d12fdadd
2020-06-24Merge "Create new Rule (R816745) that will be used for PM_Dictionary content ↵Bogumil Zebek1-0/+41
validation"
2020-06-24Create new Rule (R816745) that will be used for PM_Dictionary content validationBartosz Gardziejewski1-0/+41
Issue-ID: VNFSDK-594 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I38dd04621e9cef39126a19b760079f79de13b5ac
2020-06-24Add new rule for validation, if every files located in CSAR are listed in ↵Bartosz Gardziejewski5-0/+126
manifest Issue-ID: VNFSDK-583 Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I96bf65b1988cd0a9549f2cd536f29a467f50a51f
2020-05-21Add file extension checking to R972082Michal Banka2-0/+16
Change-Id: If67fce758fdeac29bbb1450892d89a424fdb7c84 Signed-off-by: Michal Banka <michal.banka@nokia.com> Issue-ID: VNFSDK-585
2020-05-20Fix validation processBogumil Zebek1-14/+101
Resolve problem that one failed rule has impact on other valid rules. Change-Id: Ib36eed71b16fbfc48af88faaf07bb7293fefaf38 Issue-ID: VNFSDK-586 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2020-05-18Merge "Fix R972082 bug"Bogumil Zebek2-12/+9
2020-05-15Fix R972082 bugMichal Banka2-12/+9
Fixed bug that was showing errors during validation of CSAR, when any other non_mano_artifact_set than onap_pnf_sw_information was present in manifest file. Change-Id: Iebf4f586c3069bc8c22796ec0f809fc95e561159 Signed-off-by: Michal Banka <michal.banka@nokia.com> Issue-ID: VNFSDK-585
2020-05-15Merge "Fix VNF/PNF package integrity issue with CMS signature not containing ↵Bogumil Zebek3-0/+37
certificate"
2020-05-14Fix VNF/PNF package integrity issue with CMS signature not containing ↵Aleksandra Maciaga3-0/+37
certificate Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com> Issue-ID: VNFSDK-582 Change-Id: Id3dc6c8e1ead183449fcf903d9b9b886e4796e84
2020-05-13Merge "Fix package integrity issue with non mano arifacts"Bogumil Zebek2-12/+25
2020-05-13Increase code coverage of R972082 ruleMichal Banka3-0/+35
Change-Id: I6d8174842128ba7fa8aa1b2167c048d00edaf9fa Signed-off-by: Michal Banka <michal.banka@nokia.com> Issue-ID: VNFSDK-585
2020-05-13Fix package integrity issue with non mano arifactsedyta2-12/+25
Issue-ID: VNFSDK-581 Signed-off-by: Edyta Krukowska <edyta.krukowska@nokia.com> Change-Id: Ia07e5ed9b188a689381e95485dd8f32d13b77258
2020-03-21Set version 1.2.3Kanagaraj Manickam1-1/+1
Issue-ID: VNFSDK-565 Change-Id: I4abe480328684f28032035ff6b3c3b3c2c85d4b5 Signed-off-by: Kanagaraj Manickam <kanagaraj.manickam@huawei.com>
2020-03-13Migrate to gsonpriyanka.akhade1-0/+11
Issue-ID: VNFSDK-553 Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Change-Id: Ideb0e20ebe09945f221cc31560922aae9e375dde
2020-03-04removed slf4j-log4j12, added log4j-slf4j-implpriyanka.akhade1-6/+12
Issue-ID: VNFSDK-553 Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Change-Id: I751b24860993381076e12741896c7dd2d1f3fd33
2019-12-13Implement PNF package validation on PNF software versionvasraz8-18/+147
1. New requirement (R-972082) 2. Edit requirement (R-146092) 3. Remove unused dependencies. Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I0518da5cdbf22b0086cf2c4f50194b47994273f7 Issue-ID: VNFSDK-531
2019-11-22Support non DOS/Windows format CSAR manifest fileLianhao Lu2-4/+29
When recreating the csar manifest file during signature verification, we should use the same newline charater as the original file instead of using the DOS/Windows newline charater to avoid false positive signature verfication failure. Issue-ID: VNFSDK-520 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Change-Id: I7bdf0a7f6b46c7def0a92d7ec7f245e268355959
2019-11-22Tolerate subdirectory zip entries in csarLianhao Lu2-1/+34
Issue-ID: VNFSDK-516 Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Change-Id: Ic14e713522871fba5ebce92870ff796624f4a820
2019-10-08Merge "Sonar fix"Weitao Gao2-1/+189
2019-09-18Sonar fixBogumil Zebek2-1/+189
Change-Id: I7c39a2d83d067382ffb91ed136ad840dab85ccd8 Issue-ID: VNFSDK-477 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-09-17Non mano artifactsBogumil Zebek2-3/+5
Change-Id: I4d7eefc999f9cd6cb5255b764da3c5ae7e84f0af Issue-ID: VNFSDK-476 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-09-04Merge "CMS signature validation"Weitao Gao11-33/+195
2019-08-29Set the product to onap-dublinKanagaraj Manickam k003651061-3/+3
Issue-ID: VNFSDK-424 Change-Id: If9b32e045bb282c0f3cfdf12564ceb529453cc5a Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
2019-08-22CMS signature validationBogumil Zebek11-33/+195
Change-Id: Ie5d1c835d0e6a760f1b7de651a3833cb87b727e0 Issue-ID: VNFSDK-396 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-08-09Improve code qualityBogumil Zebek3-1/+149
Change-Id: I60090d9da403bf8e6c3e5ba77ef4acfd6f41ec2b Issue-ID: VNFSDK-449 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-07-31Option 1 - vnf onlyBogumil Zebek13-35/+185
Change-Id: I281dddab930328f24b9267aa6afc6ae08fd9ed01 Issue-ID: VNFSDK-396 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-07-08Option 1 - pnf onlyBogumil Zebek14-19/+465
Change-Id: I9af3bb9b0682d7babed16042c5cac948db5dd822 Issue-ID: VNFSDK-396 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-07-03Merge "Non_mano_artifact"Gao Weitao18-7/+15
2019-06-13Non_mano_artifactBogumil Zebek18-7/+15
Change-Id: I0a47aac7935f12e406998fcdc3ae1eba6c5a2adc Issue-ID: VNFSDK-418 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-06-11Security verificationBogumil Zebek4-135/+36
Change-Id: I759e3698a25dd4f84dc345c3fd4c0d201b75d233 Issue-ID: VNFSDK-395 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-06-06Merge "Specification change"dublinGao Weitao3-19/+9
2019-05-31Handle signature in cmsBogumil Zebek7-111/+18
Change-Id: Ied997305efe347859cbd069f2887f792adc775c0 Issue-ID: VNFSDK-414 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-05-30Specification changeBogumil Zebek3-19/+9
Change-Id: I7810f0310d6c2ae178c6d865494fff88c8751634 Issue-ID: VNFSDK-410 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-05-29Clearer messageBogumil Zebek5-2/+95
Change-Id: I1ca7c3596e55c4b6c58d3ccb8224929e8575176d Issue-ID: VNFSDK-412 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-05-07Fix internal errorsBogumil Zebek6-0/+134
Change-Id: Ifdc6995fdadfc4e0ef575e9688b4e331afedce73 Issue-ID: VNFSDK-404 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-04-26Basic PNFD validationBogumil Zebek1-5/+5
Change-Id: I959324f3fc0ba89d99a291d0608aa5a5ba778077 Issue-ID: VNFSDK-341 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
2019-04-18Security TC op2Bogumil Zebek6-1/+387
Change-Id: I247c1223b5731c8dbea1480ca88db1cff78cb633 Issue-ID: VNFSDK-342 Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>