generate-test-cases: drop --with-customizations option
Generating image test case with all possible blueprint customizations is supported only for `qcow2` image type. Generating `qcow2` images with customizations was not a lot of fun. One had to use a special CLI option for this case. To streamline the generation of image test cases, drop the `--with-customizations` option from the `generate-test-cases` script and move the functionality to `format-request-map.json` by defining a new `qcow2-customize` test case. This is very similar to what `*edge-rt` test case already uses. This mean that when the test case for `qcow2` image type is being generated, actually two test cases will be generated. The filesystem customizations since RHEL-8.5 are handled through distro-specific `overrides`. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
6502f527fd
commit
008dfcc5b5
4 changed files with 175 additions and 147 deletions
|
|
@ -237,6 +237,179 @@
|
|||
},
|
||||
"overrides": {}
|
||||
},
|
||||
"qcow2-customize": {
|
||||
"compose-request": {
|
||||
"distro": "",
|
||||
"arch": "",
|
||||
"image-type": "qcow2",
|
||||
"repositories": [],
|
||||
"filename": "disk.qcow2",
|
||||
"blueprint": {
|
||||
"name": "qcow2-customize-boot-test",
|
||||
"description": "Image for boot test",
|
||||
"packages": [
|
||||
{
|
||||
"name": "bash",
|
||||
"version": "*"
|
||||
}
|
||||
],
|
||||
"modules": [],
|
||||
"groups": [
|
||||
{
|
||||
"name": "core"
|
||||
}
|
||||
],
|
||||
"customizations": {
|
||||
"hostname": "my-host",
|
||||
"kernel": {
|
||||
"append": "debug"
|
||||
},
|
||||
"sshkey": [
|
||||
{
|
||||
"user": "user1",
|
||||
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC61wMCjOSHwbVb4VfVyl5sn497qW4PsdQ7Ty7aD6wDNZ/QjjULkDV/yW5WjDlDQ7UqFH0Sr7vywjqDizUAqK7zM5FsUKsUXWHWwg/ehKg8j9xKcMv11AkFoUoujtfAujnKODkk58XSA9whPr7qcw3vPrmog680pnMSzf9LC7J6kXfs6lkoKfBh9VnlxusCrw2yg0qI1fHAZBLPx7mW6+me71QZsS6sVz8v8KXyrXsKTdnF50FjzHcK9HXDBtSJS5wA3fkcRYymJe0o6WMWNdgSRVpoSiWaHHmFgdMUJaYoCfhXzyl7LtNb3Q+Sveg+tJK7JaRXBLMUllOlJ6ll5Hod root@localhost"
|
||||
}
|
||||
],
|
||||
"user": [
|
||||
{
|
||||
"name": "user2",
|
||||
"description": "description 2",
|
||||
"password": "$6$BhyxFBgrEFh0VrPJ$MllG8auiU26x2pmzL4.1maHzPHrA.4gTdCvlATFp8HJU9UPee4zCS9BVl2HOzKaUYD/zEm8r/OF05F2icWB0K/",
|
||||
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC61wMCjOSHwbVb4VfVyl5sn497qW4PsdQ7Ty7aD6wDNZ/QjjULkDV/yW5WjDlDQ7UqFH0Sr7vywjqDizUAqK7zM5FsUKsUXWHWwg/ehKg8j9xKcMv11AkFoUoujtfAujnKODkk58XSA9whPr7qcw3vPrmog680pnMSzf9LC7J6kXfs6lkoKfBh9VnlxusCrw2yg0qI1fHAZBLPx7mW6+me71QZsS6sVz8v8KXyrXsKTdnF50FjzHcK9HXDBtSJS5wA3fkcRYymJe0o6WMWNdgSRVpoSiWaHHmFgdMUJaYoCfhXzyl7LtNb3Q+Sveg+tJK7JaRXBLMUllOlJ6ll5Hod root@localhost",
|
||||
"home": "/home/home2",
|
||||
"shell": "/bin/sh",
|
||||
"groups": [
|
||||
"group1"
|
||||
],
|
||||
"uid": 1020,
|
||||
"gid": 1050
|
||||
}
|
||||
],
|
||||
"group": [
|
||||
{
|
||||
"name": "group1",
|
||||
"gid": 1030
|
||||
},
|
||||
{
|
||||
"name": "group2",
|
||||
"gid": 1050
|
||||
}
|
||||
],
|
||||
"timezone": {
|
||||
"timezone": "Europe/London",
|
||||
"ntpservers": [
|
||||
"time.example.com"
|
||||
]
|
||||
},
|
||||
"locale": {
|
||||
"languages": [
|
||||
"el_CY.UTF-8"
|
||||
],
|
||||
"keyboard": "dvorak"
|
||||
},
|
||||
"services": {
|
||||
"enabled": [
|
||||
"sshd.socket"
|
||||
],
|
||||
"disabled": [
|
||||
"bluetooth.service"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"overrides": {
|
||||
"rhel-85": {
|
||||
"blueprint": {
|
||||
"name": "qcow2-customize-boot-test",
|
||||
"description": "Image for boot test",
|
||||
"packages": [
|
||||
{
|
||||
"name": "bash",
|
||||
"version": "*"
|
||||
}
|
||||
],
|
||||
"modules": [],
|
||||
"groups": [
|
||||
{
|
||||
"name": "core"
|
||||
}
|
||||
],
|
||||
"customizations": {
|
||||
"hostname": "my-host",
|
||||
"kernel": {
|
||||
"append": "debug"
|
||||
},
|
||||
"sshkey": [
|
||||
{
|
||||
"user": "user1",
|
||||
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC61wMCjOSHwbVb4VfVyl5sn497qW4PsdQ7Ty7aD6wDNZ/QjjULkDV/yW5WjDlDQ7UqFH0Sr7vywjqDizUAqK7zM5FsUKsUXWHWwg/ehKg8j9xKcMv11AkFoUoujtfAujnKODkk58XSA9whPr7qcw3vPrmog680pnMSzf9LC7J6kXfs6lkoKfBh9VnlxusCrw2yg0qI1fHAZBLPx7mW6+me71QZsS6sVz8v8KXyrXsKTdnF50FjzHcK9HXDBtSJS5wA3fkcRYymJe0o6WMWNdgSRVpoSiWaHHmFgdMUJaYoCfhXzyl7LtNb3Q+Sveg+tJK7JaRXBLMUllOlJ6ll5Hod root@localhost"
|
||||
}
|
||||
],
|
||||
"user": [
|
||||
{
|
||||
"name": "user2",
|
||||
"description": "description 2",
|
||||
"password": "$6$BhyxFBgrEFh0VrPJ$MllG8auiU26x2pmzL4.1maHzPHrA.4gTdCvlATFp8HJU9UPee4zCS9BVl2HOzKaUYD/zEm8r/OF05F2icWB0K/",
|
||||
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC61wMCjOSHwbVb4VfVyl5sn497qW4PsdQ7Ty7aD6wDNZ/QjjULkDV/yW5WjDlDQ7UqFH0Sr7vywjqDizUAqK7zM5FsUKsUXWHWwg/ehKg8j9xKcMv11AkFoUoujtfAujnKODkk58XSA9whPr7qcw3vPrmog680pnMSzf9LC7J6kXfs6lkoKfBh9VnlxusCrw2yg0qI1fHAZBLPx7mW6+me71QZsS6sVz8v8KXyrXsKTdnF50FjzHcK9HXDBtSJS5wA3fkcRYymJe0o6WMWNdgSRVpoSiWaHHmFgdMUJaYoCfhXzyl7LtNb3Q+Sveg+tJK7JaRXBLMUllOlJ6ll5Hod root@localhost",
|
||||
"home": "/home/home2",
|
||||
"shell": "/bin/sh",
|
||||
"groups": [
|
||||
"group1"
|
||||
],
|
||||
"uid": 1020,
|
||||
"gid": 1050
|
||||
}
|
||||
],
|
||||
"group": [
|
||||
{
|
||||
"name": "group1",
|
||||
"gid": 1030
|
||||
},
|
||||
{
|
||||
"name": "group2",
|
||||
"gid": 1050
|
||||
}
|
||||
],
|
||||
"timezone": {
|
||||
"timezone": "Europe/London",
|
||||
"ntpservers": [
|
||||
"time.example.com"
|
||||
]
|
||||
},
|
||||
"locale": {
|
||||
"languages": [
|
||||
"el_CY.UTF-8"
|
||||
],
|
||||
"keyboard": "dvorak"
|
||||
},
|
||||
"services": {
|
||||
"enabled": [
|
||||
"sshd.socket"
|
||||
],
|
||||
"disabled": [
|
||||
"bluetooth.service"
|
||||
]
|
||||
},
|
||||
"filesystem": [
|
||||
{
|
||||
"mountpoint": "/usr",
|
||||
"minsize": 2147483648
|
||||
},
|
||||
{
|
||||
"mountpoint": "/var",
|
||||
"minsize": 1073741824
|
||||
},
|
||||
{
|
||||
"mountpoint": "/",
|
||||
"minsize": 2147483648
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"vhd": {
|
||||
"compose-request": {
|
||||
"distro": "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue