Skip to content

Commit

Permalink
Add valid formulation files
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdrz committed May 9, 2024
1 parent ad84d67 commit 41986c1
Show file tree
Hide file tree
Showing 4 changed files with 1,107 additions and 0 deletions.
294 changes: 294 additions & 0 deletions cyclonedx-bom/tests/spec/1.5/valid-formulation-1.5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,294 @@
{
"bomFormat": "CycloneDX",
"specVersion": "1.5",
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
"version": 1,
"components": [
{
"type": "library",
"publisher": "Acme Inc",
"group": "org.example",
"name": "mylibrary",
"version": "1.0.0"
}
],
"formulation": [
{
"bom-ref": "formula-1",
"components": [
{
"bom-ref": "component-1",
"type": "platform",
"name": "Pipeline controller image",
"version": "v0.47.0"
}
],
"workflows": [
{
"bom-ref": "workflow-1",
"uid": "8edb2b08-e2c7-11ed-b5ea-0242ac120002",
"name": "My workflow",
"description": "Workflow description here",
"resourceReferences": [
{
"ref": "component-a"
}
],
"tasks": [
{
"bom-ref": "task-1",
"uid": "task-uid-1",
"name": "fetch-repository",
"description": "Description here",
"resourceReferences": [
{
"ref": "component-a"
}
],
"taskTypes": [ "clone", "build" ],
"trigger": {
"bom-ref": "trigger-1",
"uid": "trigger-1",
"type": "api"
},
"steps": [
{
"name": "My step"
}
],
"inputs": [
{
"resource": {
"ref": "component-a"
}
}
],
"outputs": [
{
"resource": {
"ref": "component-b"
}
}
],
"timeStart": "2023-01-01T00:00:00+00:00",
"timeEnd": "2023-01-01T00:00:00+00:00",
"workspaces": [
{
"bom-ref": "workspace-1",
"uid": "workspace-uid-1",
"name": "workspace"
}
],
"runtimeTopology": [
{
"ref": "task-1",
"dependsOn": [ "task-2" ]
}
]
}
],
"taskDependencies": [
{
"ref": "task-1",
"dependsOn": ["task-2"]
}
],
"taskTypes": [ "clone", "build" ],
"trigger": {
"bom-ref": "trigger-2",
"uid": "trigger-uid-2",
"name": "My trigger",
"description": "Description here",
"resourceReferences": [
{
"ref": "component-a"
}
],
"type": "api",
"event": {
"uid": "event-1",
"description": "Description here",
"timeReceived": "2023-01-01T00:00:00+00:00",
"data": {
"contentType": "text/plain",
"content": "Foo/Bar"
},
"source": {
"ref": "component-g"
},
"target": {
"ref": "component-h"
},
"properties": [
{
"name": "Foo",
"value": "Bar"
}
]
},
"conditions": [
{
"description": "Description here",
"expression": "1 == 1",
"properties": [
{
"name": "Foo",
"value": "Bar"
}
]
}
],
"timeActivated": "2023-01-01T00:00:00+00:00",
"inputs": [
{
"resource": {
"ref": "component-10"
},
"source": {
"ref": "component-11"
},
"target": {
"ref": "component-12"
}
}
],
"outputs": [
{
"resource": {
"ref": "component-14"
},
"type": "artifact",
"source": {
"ref": "component-15"
},
"target": {
"ref": "component-16"
}
}
],
"properties": [
{
"name": "Foo",
"value": "Bar"
}
]
},
"steps": [
{
"name": "My step",
"description": "Description here",
"commands": [
{
"executed": "ls -las",
"properties": [
{
"name": "Foo",
"value": "Bar"
}
]
}
],
"properties": [
{
"name": "Foo",
"value": "Bar"
}
]
}
],
"inputs": [
{
"environmentVars": [
{
"name": "Foo",
"value": "Bar"
}
]
},
{
"environmentVars": [
"FooBar"
]
},
{
"environmentVars": [
{
"name": "Foo",
"value": "Bar"
},
"FooBar"
]
}
],
"outputs": [
{
"environmentVars": [
{
"name": "Foo",
"value": "Bar"
}
]
},
{
"environmentVars": [
"FooBar"
]
},
{
"environmentVars": [
{
"name": "Foo",
"value": "Bar"
},
"FooBar"
]
}
],
"timeStart": "2023-01-01T00:00:00+00:00",
"timeEnd": "2023-01-01T00:00:00+10:00",
"workspaces": [
{
"bom-ref": "workspace-1",
"uid": "workspace-1",
"name": "My workspace",
"aliases": [ "default-workspace" ],
"description": "Description here",
"resourceReferences": [
{
"ref": "component-t"
}
],
"accessMode": "read-write",
"mountPath": "/tmp/workspace",
"managedDataType": "ConfigMap",
"volumeRequest": "requestedVolumeClaim",
"volume": {
"uid": "volume-1",
"name": "My volume",
"mode": "filesystem",
"path": "/",
"sizeAllocated": "10GB",
"persistent": true,
"remote": false
}
}
],
"runtimeTopology": [
{
"ref": "component-s",
"dependsOn": [
"component-r"
]
}
],
"properties": [
{
"name": "Foo",
"value": "Bar"
}
]
}
]
}
]
}
Loading

0 comments on commit 41986c1

Please sign in to comment.