Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add iot-simplified-installer test case #5690

Merged
merged 1 commit into from
Nov 28, 2023
Merged
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
64 changes: 63 additions & 1 deletion check-ostree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,27 @@
when:
- "'/dev/mapper/rootvg-rootlv' in result_sysroot_source.stdout"
- fdo_credential == "true"
- ansible_facts['distribution'] == 'RedHat'

# on fedora, it grows to 18.49G
- name: "pv size should bigger than 18G"
block:
- assert:
that:
- "'18' in result_pv_size.stdout"
fail_msg: "pv size is not bigger than 18G"
success_msg: "pv size is bigger than 18G"
always:
- set_fact:
total_counter: "{{ total_counter | int + 1 }}"
rescue:
- name: failed count + 1
set_fact:
failed_counter: "{{ failed_counter | int + 1 }}"
when:
- "'/dev/mapper/rootvg-rootlv' in result_sysroot_source.stdout"
- fdo_credential == "true"
- ansible_facts['distribution'] == "Fedora"

# raw image does not have coreos-installer to grow fs to 19G
- name: "pv size should keep at 9G for raw image"
Expand Down Expand Up @@ -253,7 +274,28 @@
- name: failed count + 1
set_fact:
failed_counter: "{{ failed_counter | int + 1 }}"
when: "'/dev/mapper/rootvg-rootlv' in result_sysroot_source.stdout"
when:
- "'/dev/mapper/rootvg-rootlv' in result_sysroot_source.stdout"
- ansible_facts['distribution'] == 'RedHat'

# lv size on fedora is 7.8G, https://github.com/osbuild/osbuild-composer/issues/3529
- name: "/sysroot lv size should be 7.8G on fedora"
block:
- assert:
that:
- "'7.8G' in result_sysroot_lv_size.stdout"
fail_msg: "lv size is not 7.8G"
success_msg: "lv size is 7.8G"
always:
- set_fact:
total_counter: "{{ total_counter | int + 1 }}"
rescue:
- name: failed count + 1
set_fact:
failed_counter: "{{ failed_counter | int + 1 }}"
when:
- "'/dev/mapper/rootvg-rootlv' in result_sysroot_source.stdout"
- ansible_facts['distribution'] == "Fedora"

# case: check /sysroot mount status
- name: check /sysroot mount status
Expand Down Expand Up @@ -1108,6 +1150,7 @@
when:
- fdo_credential == "true"
- ansible_facts['architecture'] == "x86_64"
- ansible_facts['distribution'] == 'RedHat'

# Check re-encryption status on aarch64
- name: wait for FDO re-encryption
Expand All @@ -1129,6 +1172,25 @@
- fdo_credential == "true"
- ansible_facts['architecture'] == "aarch64"

# Check re-encryption status on fedora
- name: wait for FDO re-encryption
block:
- shell: cryptsetup luksDump /dev/vda3
register: result
until: not result.stdout_lines is search("cipher_null-ecb")
retries: 30
delay: 60
always:
- set_fact:
total_counter: "{{ total_counter | int + 1 }}"
rescue:
- name: failed count + 1
set_fact:
failed_counter: "{{ failed_counter | int + 1 }}"
when:
- fdo_credential == "true"
- ansible_facts['distribution'] == "Fedora"

# Check FDO status and task status
- name: check fdo-client-linuxapp logs
command: journalctl -u fdo-client-linuxapp
Expand Down
8 changes: 7 additions & 1 deletion files/fedora-39.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
"x86_64": [
{
"name": "fedora",
"baseurl": "https://dl.fedoraproject.org/pub/fedora/linux/development/39/Everything/x86_64/os/",
"baseurl": "https://dl.fedoraproject.org/pub/fedora/linux/releases/39/Everything/x86_64/os/",
"gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGLykg8BEADURjKtgQpQNoluifXia+U3FuqGCTQ1w7iTqx1UvNhLX6tb9Qjy\nl/vjl1iXxucrd2JBnrT/21BdtaABhu2hPy7bpcGEkG8MDinAMZBzcyzHcS/JiGHZ\nd/YmMWQUgbDlApbxFSGWiXMgT0Js5QdcywHI5oiCmV0lkZ+khZ4PkVWmk6uZgYWf\nJOG5wp5TDPnoYXlA4CLb6hu2691aDm9b99XYqEjhbeIzS9bFQrdrQzR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ntfqCWFSowwFHAZM4gblOikq2B5zHoIntCiJlPGuaJiVSw9ZpEc\n+IEQfmXJjKGSkMbU9tmNfLR9skVQJizMTtoUQ12DWC+14anxnnR2hxnhUDAabV6y\nJ5dGeb/ArmxQj3IMrajdNwjuk9GMeMSSS2EMY8ryOuYwRbFhBOLhGAnmM5OOSUxv\nA4ipWraXDW0bK/wXI7yHMkc6WYrdV3SIXEqJBTp7npimv3JC+exWEbTLcgvV70FP\nX55M9nDtzUSayJuEcfFP2c9KQCE=\n=J4qZ\n-----END PGP PUBLIC KEY BLOCK-----\n",
"check_gpg": true
},
{
"name": "updates",
"baseurl": "https://dl.fedoraproject.org/pub/fedora/linux/updates/39/Everything/x86_64/",
"gpgkey": "-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBGLykg8BEADURjKtgQpQNoluifXia+U3FuqGCTQ1w7iTqx1UvNhLX6tb9Qjy\nl/vjl1iXxucrd2JBnrT/21BdtaABhu2hPy7bpcGEkG8MDinAMZBzcyzHcS/JiGHZ\nd/YmMWQUgbDlApbxFSGWiXMgT0Js5QdcywHI5oiCmV0lkZ+khZ4PkVWmk6uZgYWf\nJOG5wp5TDPnoYXlA4CLb6hu2691aDm9b99XYqEjhbeIzS9bFQrdrQzRMKyzLr8NW\ns8Pq2tgyzu8txlWdBXJyAMKldTPstqtygLL9UUdo7CIQQzWqeDbAnv+WdOmiI/hR\netbbwNV+thkLJz0WD90C2L3JEeUJX5Qa4oPvfNLDeCKmJFEFUTCEdm0AYoQDjLJQ\n3d3q9M09thXO/jYM0cSnJDclssLNsNWfjJAerLadLwNnYRuralw7f74QSLYdJAJU\nSFShBlctWKnlhQ7ehockqtgXtWckkqPZZjGiMXwHde9b9Yyi+VqtUQWxSWny+9g9\n6tcoa3AdnmpqSTHQxYajD0EGXJ0z0NXfqxkI0lo8UxzypEBy4sARZ4XhTU73Zwk0\nLGhEUHlfyxXgRs6RRvM2UIoo+gou2M9rn/RWkhuHJNSfgrM0BmIBCjhjwG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