Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions csaf_2_1/mandatoryTests/mandatoryTest_6_1_13.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const inputSchema = /** @type {const} */ ({
full_product_names: {
elements: fullProductNameSchema,
},
relationships: {
product_paths: {
elements: {
additionalProperties: true,
optionalProperties: {
Expand Down Expand Up @@ -110,11 +110,11 @@ export function mandatoryTest_6_1_13(doc) {
checkFullProductName(`/product_tree/full_product_names/${index}`, name)
})

doc.product_tree?.relationships?.forEach((relationship, index) => {
const fullProductName = relationship.full_product_name
doc.product_tree?.product_paths?.forEach((productPath, index) => {
const fullProductName = productPath.full_product_name
if (!fullProductName) return
checkFullProductName(
`/product_tree/relationships/${index}/full_product_name`,
`/product_tree/product_paths/${index}/full_product_name`,
fullProductName
)
})
Expand Down
4 changes: 2 additions & 2 deletions tests/csaf_2_1/mandatoryTest_6_1_13.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ describe('mandatoryTest_6_1_13', function () {
)
})

it('validates relationships and skips invalid ones', function () {
it('validates product_paths and skips invalid ones', function () {
assert.equal(
mandatoryTest_6_1_13({
product_tree: {
relationships: [
product_paths: [
{
full_product_name: {
purls: [
Expand Down
Loading