Skip to content

Commit 22c6e75

Browse files
committed
tests
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 21f8f42 commit 22c6e75

17 files changed

+22
-22
lines changed

tools/src/test/resources/1.7/informal-invalid-component-versionRange-non-extraneous-explicit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
in validators and tools digesting XML.
88
-->
99
<components>
10-
<component type="library" isExtraneous="false">
10+
<component type="library" isExternal="false">
1111
<name>InvalidVersions</name>
1212
<versionRange><![CDATA[vers:pypi/0.0.0|0.0.1|0.0.2|0.0.3|1.0|2.0pre1]]></versionRange>
13-
<description>versionRange may only exist on extraneous components, set `isExtraneous` explicit</description>
13+
<description>versionRange may only exist on extraneous components, set `isExternal` explicit</description>
1414
</component>
1515
</components>
1616
</bom>

tools/src/test/resources/1.7/informal-invalid-component-versionRange-non-extraneous-implicit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
-->
99
<components>
1010
<component type="library">
11-
<!-- @isExtraneous defaults to `false` -->
11+
<!-- @isExternal defaults to `false` -->
1212
<name>InvalidVersions</name>
1313
<versionRange><![CDATA[vers:pypi/0.0.0|0.0.1|0.0.2|0.0.3|1.0|2.0pre1]]></versionRange>
14-
<description>versionRange may only exist on extraneous components, set `isExtraneous` implicit by default value</description>
14+
<description>versionRange may only exist on extraneous components, set `isExternal` implicit by default value</description>
1515
</component>
1616
</components>
1717
</bom>

tools/src/test/resources/1.7/invalid-component-version-and-range.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"description": "may have `version` or `versionRange`, not both. This one does - it is invalid",
1212
"version": "9.0.14",
1313
"versionRange": "vers:pypi/0.0.0|0.0.1|0.0.2|0.0.3|1.0|2.0pre1",
14-
"isExtraneous": true
14+
"isExternal": true
1515
}
1616
]
1717
}

tools/src/test/resources/1.7/invalid-component-version-and-range.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1"
44
>
55
<components>
6-
<component type="library" isExtraneous="true">
6+
<component type="library" isExternal="true">
77
<name>InvalidVersions</name>
88
<version>9.0.14</version>
99
<versionRange><![CDATA[vers:pypi/0.0.0|0.0.1|0.0.2|0.0.3|1.0|2.0pre1]]></versionRange>

tools/src/test/resources/1.7/invalid-component-versionRange-non-extraneous-explicit.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
{
99
"type": "library",
1010
"name": "InvalidVersions",
11-
"description": "versionRange may only exist on extraneous components; set `.isExtraneous` explicit",
12-
"isExtraneous": false,
11+
"description": "versionRange may only exist on extraneous components; set `.isExternal` explicit",
12+
"isExternal": false,
1313
"versionRange": "vers:pypi/0.0.0|0.0.1|0.0.2|0.0.3|1.0|2.0pre1"
1414
}
1515
]

tools/src/test/resources/1.7/invalid-component-versionRange-non-extraneous-implicit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"type": "library",
1010
"name": "InvalidVersions",
11-
"description": "versionRange may only exist on extraneous components; set `.isExtraneous` implicit by default value",
11+
"description": "versionRange may only exist on extraneous components; set `.isExternal` implicit by default value",
1212
"versionRange": "vers:pypi/0.0.0|0.0.1|0.0.2|0.0.3|1.0|2.0pre1"
1313
}
1414
]

tools/src/test/resources/1.7/valid-component-extraneous-no-version-information.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type": "library",
1010
"name": "Foo",
1111
"description": "extraneous without any version constraints",
12-
"isExtraneous": true
12+
"isExternal": true
1313
}
1414
]
1515
}

tools/src/test/resources/1.7/valid-component-extraneous-no-version-information.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1"
44
>
55
<components>
6-
<component type="library" isExtraneous="true">
6+
<component type="library" isExternal="true">
77
<name>Foo</name>
88
<description>extraneous without any version constraints</description>
99
</component>
1010
</components>
11-
</bom>
11+
</bom>

tools/src/test/resources/1.7/valid-component-extraneous-with-version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type": "library",
1010
"name": "Foo",
1111
"description": "extraneous with version constraint",
12-
"isExtraneous": true,
12+
"isExternal": true,
1313
"version": "9.1.24"
1414
}
1515
]

tools/src/test/resources/1.7/valid-component-extraneous-with-version.textproto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ components {
88
type: CLASSIFICATION_LIBRARY
99
name: "Foo"
1010
description: "extraneous with version constraint",
11-
isExtraneous: true
11+
isExternal: true
1212
version: "9.1.24"
1313
}

0 commit comments

Comments
 (0)