Run AWS test using osbuild worker code
The `osbuild-image-tests` code does a good job testing image builds for AWS, but it doesn't use the same code paths that a customer would when using `composer-cli`. Add a test that builds a compose and uploads the image using osbuild-composer and its worker. Also, build an instance in AWS based on the image we imported and check to see if the smoke test file is present. Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
540ca29c0a
commit
5903cc42fe
8 changed files with 324 additions and 28 deletions
|
|
@ -33,18 +33,6 @@
|
|||
when:
|
||||
- test_type == 'image'
|
||||
|
||||
- name: Run osbuild-composer AWS tests
|
||||
include_tasks: test_runner_image.yml
|
||||
loop: "{{ osbuild_composer_aws_test_cases }}"
|
||||
vars:
|
||||
env_vars: "{{ osbuild_composer_aws_env_vars }}"
|
||||
loop_control:
|
||||
loop_var: test_case
|
||||
when:
|
||||
- test_type == 'image'
|
||||
# Don't run the AWS test if the bucket env var is not set.
|
||||
- lookup('env', 'AWS_BUCKET') | length > 0
|
||||
|
||||
- name: Show failed and passed tests
|
||||
debug:
|
||||
msg: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue