sbom-cyclonedx 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +15 -0
- data/.gitlab-ci.yml +49 -0
- data/.rspec +3 -0
- data/.rubocop.yml +72 -0
- data/.vscode/settings.json +6 -0
- data/CHANGELOG.md +9 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/Gemfile +26 -0
- data/Gemfile.lock +179 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +36 -0
- data/Steepfile +14 -0
- data/bin/console +11 -0
- data/bin/rbs_spec +9 -0
- data/bin/setup +8 -0
- data/bom-1.6.schema.json +7334 -0
- data/lib/email_address_extension.rb +26 -0
- data/lib/sbom/cyclone_dx/enum.rb +2178 -0
- data/lib/sbom/cyclone_dx/field.rb +404 -0
- data/lib/sbom/cyclone_dx/pattern.rb +43 -0
- data/lib/sbom/cyclone_dx/record/advisory.rb +17 -0
- data/lib/sbom/cyclone_dx/record/annotation.rb +46 -0
- data/lib/sbom/cyclone_dx/record/attachment.rb +21 -0
- data/lib/sbom/cyclone_dx/record/base.rb +244 -0
- data/lib/sbom/cyclone_dx/record/cipher_suite.rb +23 -0
- data/lib/sbom/cyclone_dx/record/co2_measure.rb +18 -0
- data/lib/sbom/cyclone_dx/record/command.rb +18 -0
- data/lib/sbom/cyclone_dx/record/commit.rb +25 -0
- data/lib/sbom/cyclone_dx/record/component.rb +126 -0
- data/lib/sbom/cyclone_dx/record/component_data.rb +46 -0
- data/lib/sbom/cyclone_dx/record/component_evidence.rb +68 -0
- data/lib/sbom/cyclone_dx/record/component_identity_evidence.rb +36 -0
- data/lib/sbom/cyclone_dx/record/composition.rb +33 -0
- data/lib/sbom/cyclone_dx/record/condition.rb +20 -0
- data/lib/sbom/cyclone_dx/record/copyright.rb +16 -0
- data/lib/sbom/cyclone_dx/record/crypto_properties.rb +137 -0
- data/lib/sbom/cyclone_dx/record/data_governance.rb +21 -0
- data/lib/sbom/cyclone_dx/record/data_governance_responsible_party.rb +22 -0
- data/lib/sbom/cyclone_dx/record/declarations.rb +193 -0
- data/lib/sbom/cyclone_dx/record/definitions.rb +17 -0
- data/lib/sbom/cyclone_dx/record/dependency.rb +21 -0
- data/lib/sbom/cyclone_dx/record/diff.rb +18 -0
- data/lib/sbom/cyclone_dx/record/energy_consumption.rb +31 -0
- data/lib/sbom/cyclone_dx/record/energy_measure.rb +18 -0
- data/lib/sbom/cyclone_dx/record/energy_provider.rb +31 -0
- data/lib/sbom/cyclone_dx/record/environmental_consideration.rb +20 -0
- data/lib/sbom/cyclone_dx/record/event.rb +31 -0
- data/lib/sbom/cyclone_dx/record/external_reference.rb +25 -0
- data/lib/sbom/cyclone_dx/record/fairness_assessment.rb +22 -0
- data/lib/sbom/cyclone_dx/record/formula.rb +29 -0
- data/lib/sbom/cyclone_dx/record/graphic.rb +19 -0
- data/lib/sbom/cyclone_dx/record/graphics_collection.rb +19 -0
- data/lib/sbom/cyclone_dx/record/hash_data.rb +18 -0
- data/lib/sbom/cyclone_dx/record/identifiable_action.rb +21 -0
- data/lib/sbom/cyclone_dx/record/input.rb +34 -0
- data/lib/sbom/cyclone_dx/record/input_output_ml_parameter.rb +17 -0
- data/lib/sbom/cyclone_dx/record/issue.rb +36 -0
- data/lib/sbom/cyclone_dx/record/license.rb +90 -0
- data/lib/sbom/cyclone_dx/record/license_choice.rb +35 -0
- data/lib/sbom/cyclone_dx/record/metadata.rb +55 -0
- data/lib/sbom/cyclone_dx/record/model_card.rb +89 -0
- data/lib/sbom/cyclone_dx/record/note.rb +20 -0
- data/lib/sbom/cyclone_dx/record/organizational_contact.rb +26 -0
- data/lib/sbom/cyclone_dx/record/organizational_entity.rb +28 -0
- data/lib/sbom/cyclone_dx/record/output.rb +34 -0
- data/lib/sbom/cyclone_dx/record/parameter.rb +20 -0
- data/lib/sbom/cyclone_dx/record/patch.rb +23 -0
- data/lib/sbom/cyclone_dx/record/performance_metric.rb +30 -0
- data/lib/sbom/cyclone_dx/record/postal_address.rb +34 -0
- data/lib/sbom/cyclone_dx/record/property.rb +18 -0
- data/lib/sbom/cyclone_dx/record/rating.rb +27 -0
- data/lib/sbom/cyclone_dx/record/release_notes.rb +44 -0
- data/lib/sbom/cyclone_dx/record/resource_reference_choice.rb +22 -0
- data/lib/sbom/cyclone_dx/record/risk.rb +18 -0
- data/lib/sbom/cyclone_dx/record/root.rb +63 -0
- data/lib/sbom/cyclone_dx/record/secured_by.rb +20 -0
- data/lib/sbom/cyclone_dx/record/service.rb +54 -0
- data/lib/sbom/cyclone_dx/record/service_data.rb +32 -0
- data/lib/sbom/cyclone_dx/record/signature.rb +85 -0
- data/lib/sbom/cyclone_dx/record/standard.rb +72 -0
- data/lib/sbom/cyclone_dx/record/step.rb +24 -0
- data/lib/sbom/cyclone_dx/record/swid.rb +29 -0
- data/lib/sbom/cyclone_dx/record/task.rb +56 -0
- data/lib/sbom/cyclone_dx/record/tools.rb +20 -0
- data/lib/sbom/cyclone_dx/record/trigger.rb +48 -0
- data/lib/sbom/cyclone_dx/record/version.rb +24 -0
- data/lib/sbom/cyclone_dx/record/volume.rb +33 -0
- data/lib/sbom/cyclone_dx/record/vulnerability.rb +119 -0
- data/lib/sbom/cyclone_dx/record/vulnerability_source.rb +20 -0
- data/lib/sbom/cyclone_dx/record/workflow.rb +59 -0
- data/lib/sbom/cyclone_dx/record/workspace.rb +45 -0
- data/lib/sbom/cyclone_dx/record.rb +12 -0
- data/lib/sbom/cyclone_dx/validator/array_validator.rb +66 -0
- data/lib/sbom/cyclone_dx/validator/base_validator.rb +43 -0
- data/lib/sbom/cyclone_dx/validator/boolean_validator.rb +16 -0
- data/lib/sbom/cyclone_dx/validator/date_time_validator.rb +29 -0
- data/lib/sbom/cyclone_dx/validator/email_address_validator.rb +31 -0
- data/lib/sbom/cyclone_dx/validator/float_validator.rb +30 -0
- data/lib/sbom/cyclone_dx/validator/integer_validator.rb +30 -0
- data/lib/sbom/cyclone_dx/validator/record_validator.rb +26 -0
- data/lib/sbom/cyclone_dx/validator/string_validator.rb +33 -0
- data/lib/sbom/cyclone_dx/validator/union_validator.rb +39 -0
- data/lib/sbom/cyclone_dx/validator/uri_validator.rb +32 -0
- data/lib/sbom/cyclone_dx/validator.rb +32 -0
- data/lib/sbom/cyclone_dx/version.rb +7 -0
- data/lib/sbom/cyclone_dx.rb +39 -0
- data/rbs_collection.lock.yaml +288 -0
- data/rbs_collection.yaml +31 -0
- data/sbom-cyclone_dx.gemspec +32 -0
- data/sig/email_address_extension.rbs +14 -0
- data/sig/sbom/cyclone_dx/enum.rbs +93 -0
- data/sig/sbom/cyclone_dx/field.rbs +434 -0
- data/sig/sbom/cyclone_dx/pattern.rbs +24 -0
- data/sig/sbom/cyclone_dx/record/advisory.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/annotation.rbs +63 -0
- data/sig/sbom/cyclone_dx/record/attachment.rbs +24 -0
- data/sig/sbom/cyclone_dx/record/base.rbs +62 -0
- data/sig/sbom/cyclone_dx/record/cipher_suite.rbs +24 -0
- data/sig/sbom/cyclone_dx/record/co2_measure.rbs +14 -0
- data/sig/sbom/cyclone_dx/record/command.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/commit.rbs +34 -0
- data/sig/sbom/cyclone_dx/record/component.rbs +203 -0
- data/sig/sbom/cyclone_dx/record/component_data.rbs +73 -0
- data/sig/sbom/cyclone_dx/record/component_evidence.rbs +115 -0
- data/sig/sbom/cyclone_dx/record/component_identity_evidence.rbs +53 -0
- data/sig/sbom/cyclone_dx/record/composition.rbs +39 -0
- data/sig/sbom/cyclone_dx/record/condition.rbs +24 -0
- data/sig/sbom/cyclone_dx/record/copyright.rbs +14 -0
- data/sig/sbom/cyclone_dx/record/crypto_properties.rbs +268 -0
- data/sig/sbom/cyclone_dx/record/data_governance.rbs +24 -0
- data/sig/sbom/cyclone_dx/record/data_governance_responsible_party.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/declarations.rbs +352 -0
- data/sig/sbom/cyclone_dx/record/definitions.rbs +14 -0
- data/sig/sbom/cyclone_dx/record/dependency.rbs +24 -0
- data/sig/sbom/cyclone_dx/record/diff.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/energy_consumption.rbs +39 -0
- data/sig/sbom/cyclone_dx/record/energy_measure.rbs +14 -0
- data/sig/sbom/cyclone_dx/record/energy_provider.rbs +39 -0
- data/sig/sbom/cyclone_dx/record/environmental_consideration.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/event.rbs +44 -0
- data/sig/sbom/cyclone_dx/record/external_reference.rbs +29 -0
- data/sig/sbom/cyclone_dx/record/fairness_assessment.rbs +29 -0
- data/sig/sbom/cyclone_dx/record/formula.rbs +34 -0
- data/sig/sbom/cyclone_dx/record/graphic.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/graphics_collection.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/hash_data.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/identifiable_action.rbs +24 -0
- data/sig/sbom/cyclone_dx/record/input.rbs +44 -0
- data/sig/sbom/cyclone_dx/record/input_output_ml_parameter.rbs +14 -0
- data/sig/sbom/cyclone_dx/record/issue.rbs +53 -0
- data/sig/sbom/cyclone_dx/record/license.rbs +134 -0
- data/sig/sbom/cyclone_dx/record/license_choice.rbs +39 -0
- data/sig/sbom/cyclone_dx/record/metadata.rbs +82 -0
- data/sig/sbom/cyclone_dx/record/model_card.rbs +143 -0
- data/sig/sbom/cyclone_dx/record/note.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/organizational_contact.rbs +29 -0
- data/sig/sbom/cyclone_dx/record/organizational_entity.rbs +34 -0
- data/sig/sbom/cyclone_dx/record/output.rbs +44 -0
- data/sig/sbom/cyclone_dx/record/parameter.rbs +24 -0
- data/sig/sbom/cyclone_dx/record/patch.rbs +24 -0
- data/sig/sbom/cyclone_dx/record/performance_metric.rbs +43 -0
- data/sig/sbom/cyclone_dx/record/postal_address.rbs +44 -0
- data/sig/sbom/cyclone_dx/record/property.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/rating.rbs +39 -0
- data/sig/sbom/cyclone_dx/record/release_notes.rbs +64 -0
- data/sig/sbom/cyclone_dx/record/resource_reference_choice.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/risk.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/root.rbs +84 -0
- data/sig/sbom/cyclone_dx/record/secured_by.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/service.rbs +99 -0
- data/sig/sbom/cyclone_dx/record/service_data.rbs +44 -0
- data/sig/sbom/cyclone_dx/record/signature.rbs +130 -0
- data/sig/sbom/cyclone_dx/record/standard.rbs +132 -0
- data/sig/sbom/cyclone_dx/record/step.rbs +29 -0
- data/sig/sbom/cyclone_dx/record/swid.rbs +44 -0
- data/sig/sbom/cyclone_dx/record/task.rbs +84 -0
- data/sig/sbom/cyclone_dx/record/tools.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/trigger.rbs +69 -0
- data/sig/sbom/cyclone_dx/record/version.rbs +24 -0
- data/sig/sbom/cyclone_dx/record/volume.rbs +49 -0
- data/sig/sbom/cyclone_dx/record/vulnerability.rbs +209 -0
- data/sig/sbom/cyclone_dx/record/vulnerability_source.rbs +19 -0
- data/sig/sbom/cyclone_dx/record/workflow.rbs +94 -0
- data/sig/sbom/cyclone_dx/record/workspace.rbs +69 -0
- data/sig/sbom/cyclone_dx/record.rbs +161 -0
- data/sig/sbom/cyclone_dx/type.rbs +16 -0
- data/sig/sbom/cyclone_dx/validator/array_validator.rbs +31 -0
- data/sig/sbom/cyclone_dx/validator/base_validator.rbs +21 -0
- data/sig/sbom/cyclone_dx/validator/boolean_validator.rbs +9 -0
- data/sig/sbom/cyclone_dx/validator/date_time_validator.rbs +10 -0
- data/sig/sbom/cyclone_dx/validator/email_address_validator.rbs +10 -0
- data/sig/sbom/cyclone_dx/validator/float_validator.rbs +12 -0
- data/sig/sbom/cyclone_dx/validator/integer_validator.rbs +12 -0
- data/sig/sbom/cyclone_dx/validator/record_validator.rbs +12 -0
- data/sig/sbom/cyclone_dx/validator/string_validator.rbs +14 -0
- data/sig/sbom/cyclone_dx/validator/union_validator.rbs +24 -0
- data/sig/sbom/cyclone_dx/validator/uri_validator.rbs +10 -0
- data/sig/sbom/cyclone_dx/validator.rbs +66 -0
- data/sig/sbom/cyclone_dx.rbs +13 -0
- data/sig/types.rbs +45 -0
- data/spec/email_address_extension_spec.rb +27 -0
- data/spec/factories/factory_helper.rb +78 -0
- data/spec/factories/record/advisory_factory.rb +11 -0
- data/spec/factories/record/annotation_factory.rb +63 -0
- data/spec/factories/record/attachment_factory.rb +9 -0
- data/spec/factories/record/cipher_suite_factory.rb +26 -0
- data/spec/factories/record/co2_measure_factory.rb +9 -0
- data/spec/factories/record/command_factory.rb +10 -0
- data/spec/factories/record/commit_factory.rb +13 -0
- data/spec/factories/record/component_data_factory.rb +28 -0
- data/spec/factories/record/component_evidence_factory.rb +44 -0
- data/spec/factories/record/component_factory.rb +102 -0
- data/spec/factories/record/component_identity_evidence_factory.rb +25 -0
- data/spec/factories/record/composition_factory.rb +20 -0
- data/spec/factories/record/condition_factory.rb +11 -0
- data/spec/factories/record/copyright_factory.rb +9 -0
- data/spec/factories/record/crypto_properties_factory.rb +191 -0
- data/spec/factories/record/data_governance_factory.rb +11 -0
- data/spec/factories/record/data_governance_responsible_party_factory.rb +31 -0
- data/spec/factories/record/declarations_factory.rb +145 -0
- data/spec/factories/record/definitions_factory.rb +9 -0
- data/spec/factories/record/dependency_factory.rb +12 -0
- data/spec/factories/record/diff_factory.rb +24 -0
- data/spec/factories/record/energy_consumption_factory.rb +15 -0
- data/spec/factories/record/energy_measure_factory.rb +9 -0
- data/spec/factories/record/energy_provider_factory.rb +15 -0
- data/spec/factories/record/environmental_consideration_factory.rb +10 -0
- data/spec/factories/record/event_factory.rb +15 -0
- data/spec/factories/record/external_reference_factory.rb +13 -0
- data/spec/factories/record/fairness_assessment_factory.rb +12 -0
- data/spec/factories/record/formula_factory.rb +13 -0
- data/spec/factories/record/graphic_factory.rb +10 -0
- data/spec/factories/record/graphics_collection_factory.rb +10 -0
- data/spec/factories/record/hash_data_factory.rb +10 -0
- data/spec/factories/record/identifiable_action_factory.rb +11 -0
- data/spec/factories/record/input_factory.rb +36 -0
- data/spec/factories/record/input_output_ml_parameter_factory.rb +9 -0
- data/spec/factories/record/issue_factory.rb +22 -0
- data/spec/factories/record/license_choice_factory.rb +23 -0
- data/spec/factories/record/license_factory.rb +99 -0
- data/spec/factories/record/metadata_factory.rb +38 -0
- data/spec/factories/record/model_card_factory.rb +59 -0
- data/spec/factories/record/note_factory.rb +11 -0
- data/spec/factories/record/organizational_contact_factory.rb +12 -0
- data/spec/factories/record/organizational_entity_factory.rb +13 -0
- data/spec/factories/record/output_factory.rb +32 -0
- data/spec/factories/record/parameter_factory.rb +11 -0
- data/spec/factories/record/patch_factory.rb +12 -0
- data/spec/factories/record/performance_metric_factory.rb +20 -0
- data/spec/factories/record/postal_address_factory.rb +14 -0
- data/spec/factories/record/property_factory.rb +11 -0
- data/spec/factories/record/rating_factory.rb +14 -0
- data/spec/factories/record/release_notes_factory.rb +20 -0
- data/spec/factories/record/resource_reference_choice_factory.rb +27 -0
- data/spec/factories/record/risk_factory.rb +10 -0
- data/spec/factories/record/root_factory.rb +23 -0
- data/spec/factories/record/secured_by_factory.rb +10 -0
- data/spec/factories/record/service_data_factory.rb +16 -0
- data/spec/factories/record/service_factory.rb +27 -0
- data/spec/factories/record/signature_factory.rb +50 -0
- data/spec/factories/record/standard_factory.rb +37 -0
- data/spec/factories/record/step_factory.rb +12 -0
- data/spec/factories/record/swid_factory.rb +16 -0
- data/spec/factories/record/task_factory.rb +24 -0
- data/spec/factories/record/tools_factory.rb +10 -0
- data/spec/factories/record/trigger_factory.rb +21 -0
- data/spec/factories/record/version_factory.rb +19 -0
- data/spec/factories/record/volume_factory.rb +16 -0
- data/spec/factories/record/vulnerability_factory.rb +70 -0
- data/spec/factories/record/vulnerability_source_factory.rb +10 -0
- data/spec/factories/record/workflow_factory.rb +26 -0
- data/spec/factories/record/workspace_factory.rb +21 -0
- data/spec/factories/record_factory.rb +159 -0
- data/spec/fixtures/cipher_info.yml +948 -0
- data/spec/fixtures/purl_data.yml +0 -0
- data/spec/sbom/cyclone_dx/enum_spec.rb +30 -0
- data/spec/sbom/cyclone_dx/field_spec.rb +104 -0
- data/spec/sbom/cyclone_dx/pattern_spec.rb +18 -0
- data/spec/sbom/cyclone_dx/record/advisory_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/annotation_spec.rb +31 -0
- data/spec/sbom/cyclone_dx/record/attachment_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/base_spec.rb +363 -0
- data/spec/sbom/cyclone_dx/record/cipher_suite_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/co2_measure_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/command_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/commit_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/component_data_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/component_evidence_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/component_identity_evidence_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/component_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/composition_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/condition_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/copyright_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/crypto_properties_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/data_governance_responsible_party_spec.rb +19 -0
- data/spec/sbom/cyclone_dx/record/data_governance_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/declarations_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/definitions_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/dependency_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/diff_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/energy_consumption_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/energy_measure_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/energy_provider_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/environmental_consideration_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/event_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/external_reference_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/fairness_assessment_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/formula_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/graphic_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/graphics_collection_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/hash_data_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/identifiable_action_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/input_output_ml_parameter_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/input_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/issue_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/license_choice_spec.rb +26 -0
- data/spec/sbom/cyclone_dx/record/license_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/metadata_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/model_card_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/note_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/organizational_contact_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/organizational_entity_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/output_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/parameter_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/patch_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/performance_metric_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/postal_address_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/property_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/rating_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/release_notes_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/resource_reference_choice_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/risk_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/root_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/secured_by_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/service_data_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/service_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/signature_spec.rb +26 -0
- data/spec/sbom/cyclone_dx/record/standard_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/step_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/swid_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/task_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/tools_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/trigger_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/version_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/volume_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/vulnerability_source_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/vulnerability_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/workflow_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record/workspace_spec.rb +14 -0
- data/spec/sbom/cyclone_dx/record_spec.rb +7 -0
- data/spec/sbom/cyclone_dx/validator/array_validator_spec.rb +184 -0
- data/spec/sbom/cyclone_dx/validator/base_validator_spec.rb +71 -0
- data/spec/sbom/cyclone_dx/validator/boolean_validator_spec.rb +26 -0
- data/spec/sbom/cyclone_dx/validator/date_time_validator_spec.rb +28 -0
- data/spec/sbom/cyclone_dx/validator/email_address_validator_spec.rb +23 -0
- data/spec/sbom/cyclone_dx/validator/float_validator_spec.rb +71 -0
- data/spec/sbom/cyclone_dx/validator/integer_validator_spec.rb +71 -0
- data/spec/sbom/cyclone_dx/validator/record_validator_spec.rb +35 -0
- data/spec/sbom/cyclone_dx/validator/string_validator_spec.rb +94 -0
- data/spec/sbom/cyclone_dx/validator/union_validator_spec.rb +65 -0
- data/spec/sbom/cyclone_dx/validator/uri_validator_spec.rb +21 -0
- data/spec/sbom/cyclone_dx/validator_spec.rb +38 -0
- data/spec/sbom/cyclone_dx/version_spec.rb +9 -0
- data/spec/sbom/cyclone_dx_spec.rb +7 -0
- data/spec/spec_helper.rb +39 -0
- metadata +377 -6
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/component_identity_evidence"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::ComponentIdentityEvidence do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:component_identity_evidence) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:component_identity_evidence, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/component"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Component do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:component) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:component, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/composition"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Composition do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:composition) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:composition, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/condition"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Condition do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:condition) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:condition, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/copyright"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Copyright do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:copyright) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:copyright, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/crypto_properties"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::CryptoProperties do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:crypto_properties) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:crypto_properties, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/data_governance_responsible_party"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::DataGovernanceResponsibleParty do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:data_governance_responsible_party) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:data_governance_responsible_party, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
|
15
|
+
it "is valid with either organization or contact" do
|
16
|
+
expect { build(:data_governance_responsible_party, :organization) }.not_to raise_error
|
17
|
+
expect { build(:data_governance_responsible_party, :contact) }.not_to raise_error
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/data_governance"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::DataGovernance do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:data_governance) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:data_governance, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/declarations"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Declarations do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:declarations) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:declarations, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/definitions"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Definitions do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:definitions) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:definitions, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/dependency"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Dependency do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:dependency) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:dependency, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/diff"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Diff do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:diff) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:diff, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/energy_consumption"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::EnergyConsumption do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:energy_consumption) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:energy_consumption, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/energy_measure"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::EnergyMeasure do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:energy_measure) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:energy_measure, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/energy_provider"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::EnergyProvider do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:energy_provider) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:energy_provider, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/environmental_consideration"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::EnvironmentalConsideration do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:environmental_consideration) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:environmental_consideration, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/event"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Event do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:event) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:event, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/external_reference"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::ExternalReference do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:external_reference) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:external_reference, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/fairness_assessment"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::FairnessAssessment do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:fairness_assessment) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:fairness_assessment, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/formula"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Formula do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:formula) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:formula, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/graphic"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Graphic do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:graphic) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:graphic, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/graphics_collection"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::GraphicsCollection do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:graphics_collection) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:graphics_collection, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/hash_data"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::HashData do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:hash_data) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:hash_data, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/identifiable_action"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::IdentifiableAction do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:identifiable_action) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:identifiable_action, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/input_output_ml_parameter"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::InputOutputMLParameter do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:input_output_ml_parameter) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:input_output_ml_parameter, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/input"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Input do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:input) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:input, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/issue"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Issue do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:issue) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:issue, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/license_choice"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::LicenseChoice do
|
7
|
+
describe SBOM::CycloneDX::Record::LicenseChoice::LicenseExpression do
|
8
|
+
it "can be initialized with minimum required attributes" do
|
9
|
+
expect { build(:license_expression) }.not_to raise_error
|
10
|
+
end
|
11
|
+
|
12
|
+
it "can be initialized with all attributes" do
|
13
|
+
expect { build(:license_expression, :all_fields) }.not_to raise_error
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe SBOM::CycloneDX::Record::LicenseChoice::WrappedLicense do
|
18
|
+
it "can be initialized with minimum required attributes" do
|
19
|
+
expect { build(:wrapped_license) }.not_to raise_error
|
20
|
+
end
|
21
|
+
|
22
|
+
it "can be initialized with all attributes" do
|
23
|
+
expect { build(:wrapped_license, :all_fields) }.not_to raise_error
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/license"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::License do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:license) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:license, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/metadata"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Metadata do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:metadata) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:metadata, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/model_card"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::ModelCard do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:model_card) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:model_card, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/note"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Note do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:note) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:note, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/organizational_contact"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::OrganizationalContact do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:organizational_contact) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:organizational_contact, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/organizational_entity"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::OrganizationalEntity do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:organizational_entity) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:organizational_entity, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/output"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Output do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:output) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:output, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/parameter"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Parameter do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:parameter) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:parameter, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/patch"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Patch do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:patch) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:patch, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/performance_metric"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::PerformanceMetric do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:performance_metric) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:performance_metric, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/postal_address"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::PostalAddress do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:postal_address) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:postal_address, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/property"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Property do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:property) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:property, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require "sbom/cyclone_dx/record/rating"
|
5
|
+
|
6
|
+
describe SBOM::CycloneDX::Record::Rating do
|
7
|
+
it "can be initialized with minimum required attributes" do
|
8
|
+
expect { build(:rating) }.not_to raise_error
|
9
|
+
end
|
10
|
+
|
11
|
+
it "can be initialized with all attributes" do
|
12
|
+
expect { build(:rating, :all_fields) }.not_to raise_error
|
13
|
+
end
|
14
|
+
end
|