tests: Add package update testplan
Related: RHEL-475
This commit is contained in:
parent
931f17ab63
commit
70baae46da
@ -1,25 +1,68 @@
|
||||
summary: run keylime e2e tests
|
||||
|
||||
# define context to filter out all test requiring TPM device
|
||||
context:
|
||||
swtpm: yes
|
||||
agent: rust
|
||||
|
||||
discover:
|
||||
how: fmf
|
||||
url: https://github.com/RedHat-SP-Security/keylime-tests
|
||||
ref: "@.tmt/dynamic_ref.fmf"
|
||||
test:
|
||||
- /setup/configure_tpm_emulator
|
||||
- /setup/inject_SELinux_AVC_check
|
||||
# change IMA policy to simple and run one attestation scenario
|
||||
# this is to utilize also a different parser
|
||||
- /setup/configure_kernel_ima_module/ima_policy_simple
|
||||
- /functional/basic-attestation-on-localhost
|
||||
# now change IMA policy to signing and run all tests
|
||||
- /setup/configure_kernel_ima_module/ima_policy_signing
|
||||
- "^/functional/.*"
|
||||
- "^/compatibility/.*"
|
||||
swtpm: yes
|
||||
agent: rust
|
||||
|
||||
execute:
|
||||
how: tmt
|
||||
|
||||
/functional:
|
||||
summary: run keylime e2e tests
|
||||
|
||||
discover:
|
||||
how: fmf
|
||||
url: https://github.com/RedHat-SP-Security/keylime-tests
|
||||
ref: "@.tmt/dynamic_ref.fmf"
|
||||
test:
|
||||
- /setup/configure_tpm_emulator
|
||||
- /setup/inject_SELinux_AVC_check
|
||||
# change IMA policy to simple and run one attestation scenario
|
||||
# this is to utilize also a different parser
|
||||
- /setup/configure_kernel_ima_module/ima_policy_simple
|
||||
- /functional/basic-attestation-on-localhost
|
||||
# now change IMA policy to signing and run all tests
|
||||
- /setup/configure_kernel_ima_module/ima_policy_signing
|
||||
- "^/functional/.*"
|
||||
- "^/compatibility/.*"
|
||||
|
||||
/package-update:
|
||||
summary: package update scenario
|
||||
|
||||
prepare:
|
||||
- how: shell
|
||||
order: 90
|
||||
script:
|
||||
# remove installed (tested) keylime and any leftovers
|
||||
- dnf -y remove '*keylime*'
|
||||
- rm -rf /var/lib/keylime /etc/keylime
|
||||
# install older keylime
|
||||
- dnf -y install keylime --disablerepo test-artifacts
|
||||
|
||||
discover:
|
||||
|
||||
- name: Update_scenario_setup
|
||||
how: fmf
|
||||
url: https://github.com/RedHat-SP-Security/keylime-tests
|
||||
ref: "@.tmt/dynamic_ref.fmf"
|
||||
test:
|
||||
- /setup/configure_tpm_emulator
|
||||
- /setup/inject_SELinux_AVC_check
|
||||
- /setup/enable_keylime_debug_messages
|
||||
- /setup/configure_kernel_ima_module/ima_policy_signing
|
||||
# do the actual keylime test setup
|
||||
- /update/basic-attestation-on-localhost/setup
|
||||
|
||||
- name: Update_keylime_package
|
||||
how: shell
|
||||
tests:
|
||||
- name: keylime_update
|
||||
test: dnf -y update '*keylime*'
|
||||
duration: 2m
|
||||
|
||||
- name: Test_scenario_post-update
|
||||
how: fmf
|
||||
url: https://github.com/RedHat-SP-Security/keylime-tests
|
||||
ref: "@.tmt/dynamic_ref.fmf"
|
||||
test:
|
||||
# run the post-update test scenario
|
||||
- /update/basic-attestation-on-localhost/test
|
||||
|
Loading…
Reference in New Issue
Block a user