Skip to content

Commit

Permalink
test: update manifests
Browse files Browse the repository at this point in the history
Edge and IoT manifests are modified from the new option handling.  The
"parent" commit ID isn't specified in the options anymore, but it is
(fake) resolved by the manifest generator.

Of particular note is the iot-raw-image manifest that now properly uses
the commit ID in the copy stage for the firmware.

The resolved ostree commits are now stored in the content part of the
manifest metadata alongside package specs and containers.
  • Loading branch information
achilleas-k committed Jun 7, 2023
1 parent be49683 commit db6d72a
Show file tree
Hide file tree
Showing 140 changed files with 2,150 additions and 694 deletions.
22 changes: 15 additions & 7 deletions test/data/manifests/centos_8-aarch64-edge_installer-boot.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ostree": {
"ref": "test/edge",
"url": "http://edge.example.com/repo",
"parent": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"parent": "",
"rhsm": true
},
"blueprint": {}
Expand Down Expand Up @@ -9014,7 +9014,7 @@
"type": "org.osbuild.ostree",
"origin": "org.osbuild.source",
"references": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"ref": "test/edge"
}
}
Expand Down Expand Up @@ -11499,12 +11499,9 @@
},
"org.osbuild.ostree": {
"items": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"remote": {
"url": "http://edge.example.com/repo",
"secrets": {
"name": "org.osbuild.rhsm.consumer"
}
"url": "http://edge.example.com/repo"
}
}
}
Expand Down Expand Up @@ -22207,5 +22204,16 @@
}
]
},
"ostree-commits": {
"bootiso-tree": [
{
"Ref": "test/edge",
"URL": "http://edge.example.com/repo",
"ContentURL": "",
"Secrets": "",
"Checksum": "8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad"
}
]
},
"no-image-info": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ostree": {
"ref": "test/edge",
"url": "http://edge.example.com/repo",
"parent": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"parent": "",
"rhsm": false
},
"blueprint": {
Expand Down Expand Up @@ -9044,7 +9044,7 @@
"type": "org.osbuild.ostree",
"origin": "org.osbuild.source",
"references": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"ref": "test/edge"
}
}
Expand Down Expand Up @@ -11551,7 +11551,7 @@
},
"org.osbuild.ostree": {
"items": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"remote": {
"url": "http://edge.example.com/repo"
}
Expand Down Expand Up @@ -22256,5 +22256,16 @@
}
]
},
"ostree-commits": {
"bootiso-tree": [
{
"Ref": "test/edge",
"URL": "http://edge.example.com/repo",
"ContentURL": "",
"Secrets": "",
"Checksum": "8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad"
}
]
},
"no-image-info": true
}
17 changes: 14 additions & 3 deletions test/data/manifests/centos_8-aarch64-edge_raw_image-boot.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ostree": {
"ref": "test/edge",
"url": "http://edge.example.com/repo",
"parent": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"parent": "",
"rhsm": false
},
"blueprint": {}
Expand Down Expand Up @@ -2059,7 +2059,7 @@
"type": "org.osbuild.ostree",
"origin": "org.osbuild.source",
"references": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"ref": "test/edge"
}
}
Expand Down Expand Up @@ -3320,7 +3320,7 @@
},
"org.osbuild.ostree": {
"items": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"remote": {
"url": "http://edge.example.com/repo"
}
Expand Down Expand Up @@ -5813,5 +5813,16 @@
}
]
},
"ostree-commits": {
"ostree-deployment": [
{
"Ref": "test/edge",
"URL": "http://edge.example.com/repo",
"ContentURL": "",
"Secrets": "",
"Checksum": "8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad"
}
]
},
"no-image-info": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ostree": {
"ref": "test/edge",
"url": "http://edge.example.com/repo",
"parent": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"parent": "",
"rhsm": false
},
"blueprint": {
Expand Down Expand Up @@ -2411,7 +2411,7 @@
"type": "org.osbuild.ostree",
"origin": "org.osbuild.source",
"references": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"ref": "test/edge"
}
}
Expand Down Expand Up @@ -7212,7 +7212,7 @@
},
"org.osbuild.ostree": {
"items": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"remote": {
"url": "http://edge.example.com/repo"
}
Expand Down Expand Up @@ -13647,5 +13647,16 @@
}
]
},
"ostree-commits": {
"ostree-deployment": [
{
"Ref": "test/edge",
"URL": "http://edge.example.com/repo",
"ContentURL": "",
"Secrets": "",
"Checksum": "8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad"
}
]
},
"no-image-info": true
}
22 changes: 15 additions & 7 deletions test/data/manifests/centos_8-x86_64-edge_installer-boot.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ostree": {
"ref": "test/edge",
"url": "http://edge.example.com/repo",
"parent": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"parent": "",
"rhsm": true
},
"blueprint": {}
Expand Down Expand Up @@ -9216,7 +9216,7 @@
"type": "org.osbuild.ostree",
"origin": "org.osbuild.source",
"references": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"ref": "test/edge"
}
}
Expand Down Expand Up @@ -11754,12 +11754,9 @@
},
"org.osbuild.ostree": {
"items": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"remote": {
"url": "http://edge.example.com/repo",
"secrets": {
"name": "org.osbuild.rhsm.consumer"
}
"url": "http://edge.example.com/repo"
}
}
}
Expand Down Expand Up @@ -22682,5 +22679,16 @@
}
]
},
"ostree-commits": {
"bootiso-tree": [
{
"Ref": "test/edge",
"URL": "http://edge.example.com/repo",
"ContentURL": "",
"Secrets": "",
"Checksum": "8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad"
}
]
},
"no-image-info": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ostree": {
"ref": "test/edge",
"url": "http://edge.example.com/repo",
"parent": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"parent": "",
"rhsm": false
},
"blueprint": {
Expand Down Expand Up @@ -9246,7 +9246,7 @@
"type": "org.osbuild.ostree",
"origin": "org.osbuild.source",
"references": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"ref": "test/edge"
}
}
Expand Down Expand Up @@ -11806,7 +11806,7 @@
},
"org.osbuild.ostree": {
"items": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"remote": {
"url": "http://edge.example.com/repo"
}
Expand Down Expand Up @@ -22731,5 +22731,16 @@
}
]
},
"ostree-commits": {
"bootiso-tree": [
{
"Ref": "test/edge",
"URL": "http://edge.example.com/repo",
"ContentURL": "",
"Secrets": "",
"Checksum": "8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad"
}
]
},
"no-image-info": true
}
17 changes: 14 additions & 3 deletions test/data/manifests/centos_8-x86_64-edge_raw_image-boot.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ostree": {
"ref": "test/edge",
"url": "http://edge.example.com/repo",
"parent": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"parent": "",
"rhsm": false
},
"blueprint": {}
Expand Down Expand Up @@ -2171,7 +2171,7 @@
"type": "org.osbuild.ostree",
"origin": "org.osbuild.source",
"references": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"ref": "test/edge"
}
}
Expand Down Expand Up @@ -3501,7 +3501,7 @@
},
"org.osbuild.ostree": {
"items": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"remote": {
"url": "http://edge.example.com/repo"
}
Expand Down Expand Up @@ -6134,5 +6134,16 @@
}
]
},
"ostree-commits": {
"ostree-deployment": [
{
"Ref": "test/edge",
"URL": "http://edge.example.com/repo",
"ContentURL": "",
"Secrets": "",
"Checksum": "8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad"
}
]
},
"no-image-info": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ostree": {
"ref": "test/edge",
"url": "http://edge.example.com/repo",
"parent": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"parent": "",
"rhsm": false
},
"blueprint": {
Expand Down Expand Up @@ -2459,7 +2459,7 @@
"type": "org.osbuild.ostree",
"origin": "org.osbuild.source",
"references": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"ref": "test/edge"
}
}
Expand Down Expand Up @@ -7403,7 +7403,7 @@
},
"org.osbuild.ostree": {
"items": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"remote": {
"url": "http://edge.example.com/repo"
}
Expand Down Expand Up @@ -13988,5 +13988,16 @@
}
]
},
"ostree-commits": {
"ostree-deployment": [
{
"Ref": "test/edge",
"URL": "http://edge.example.com/repo",
"ContentURL": "",
"Secrets": "",
"Checksum": "8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad"
}
]
},
"no-image-info": true
}
15 changes: 13 additions & 2 deletions test/data/manifests/centos_9-aarch64-edge_ami-boot.json
Original file line number Diff line number Diff line change
Expand Up @@ -2123,7 +2123,7 @@
"type": "org.osbuild.ostree",
"origin": "org.osbuild.source",
"references": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"ref": "test/edge"
}
}
Expand Down Expand Up @@ -3466,7 +3466,7 @@
},
"org.osbuild.ostree": {
"items": {
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff": {
"8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad": {
"remote": {
"url": "http://edge.example.com/repo"
}
Expand Down Expand Up @@ -6039,5 +6039,16 @@
}
]
},
"ostree-commits": {
"ostree-deployment": [
{
"Ref": "test/edge",
"URL": "http://edge.example.com/repo",
"ContentURL": "",
"Secrets": "",
"Checksum": "8119013dc0bbd4a0140d7392c3a07395399d5a12112f911bd3fc37ba6b7df6ad"
}
]
},
"no-image-info": true
}
Loading

0 comments on commit db6d72a

Please sign in to comment.