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:
Major Hayden 2020-06-08 09:47:47 -05:00 committed by Major Hayden
parent 540ca29c0a
commit 5903cc42fe
8 changed files with 324 additions and 28 deletions

View file

@ -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: |