From 1b620ad682d9d5a9023ffb5ef8fd1ef0f5dd5942 Mon Sep 17 00:00:00 2001 From: Helen Koike Date: Fri, 18 May 2018 10:21:41 -0300 Subject: [PATCH] image_test: add tests in prow Create a new workflow with tests that can be run in parallel (without oslogin). Add entries in prow to execute this workflow for: centos_6 centos_7 debian_8 debian_9 rhel_6 rhel_7 sles_12 ubuntu_1404 ubuntu_1604 ubuntu_1804 --- .../e2e_tests/centos_6_img_test_ind.wf.json | 17 ++++++ .../e2e_tests/centos_7_img_test_ind.wf.json | 17 ++++++ .../e2e_tests/debian_8_img_test_ind.wf.json | 17 ++++++ .../e2e_tests/debian_9_img_test_ind.wf.json | 17 ++++++ .../e2e_tests/rhel_6_img_test_ind.wf.json | 17 ++++++ .../e2e_tests/rhel_7_img_test_ind.wf.json | 17 ++++++ .../e2e_tests/sles_12_img_test_ind.wf.json | 17 ++++++ .../ubuntu_1404_lts_img_test_ind.wf.json | 17 ++++++ .../ubuntu_1604_lts_img_test_ind.wf.json | 17 ++++++ .../ubuntu_1804_lts_img_test_ind.wf.json | 17 ++++++ .../image_test/img_test_independent.wf.json | 60 +++++++++++++++++++ 11 files changed, 230 insertions(+) create mode 100644 daisy_workflows/e2e_tests/centos_6_img_test_ind.wf.json create mode 100644 daisy_workflows/e2e_tests/centos_7_img_test_ind.wf.json create mode 100644 daisy_workflows/e2e_tests/debian_8_img_test_ind.wf.json create mode 100644 daisy_workflows/e2e_tests/debian_9_img_test_ind.wf.json create mode 100644 daisy_workflows/e2e_tests/rhel_6_img_test_ind.wf.json create mode 100644 daisy_workflows/e2e_tests/rhel_7_img_test_ind.wf.json create mode 100644 daisy_workflows/e2e_tests/sles_12_img_test_ind.wf.json create mode 100644 daisy_workflows/e2e_tests/ubuntu_1404_lts_img_test_ind.wf.json create mode 100644 daisy_workflows/e2e_tests/ubuntu_1604_lts_img_test_ind.wf.json create mode 100644 daisy_workflows/e2e_tests/ubuntu_1804_lts_img_test_ind.wf.json create mode 100644 daisy_workflows/image_test/img_test_independent.wf.json diff --git a/daisy_workflows/e2e_tests/centos_6_img_test_ind.wf.json b/daisy_workflows/e2e_tests/centos_6_img_test_ind.wf.json new file mode 100644 index 0000000000..ad036e7c6b --- /dev/null +++ b/daisy_workflows/e2e_tests/centos_6_img_test_ind.wf.json @@ -0,0 +1,17 @@ +{ + "Name": "centos-6-img-test-ind", + "Vars": { + "source_image": "projects/centos-cloud/global/images/family/centos-6" + }, + "Steps": { + "test-img-ind": { + "Timeout": "30m", + "IncludeWorkflow": { + "Path": "../image_test/img_test_independent.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + } + } +} diff --git a/daisy_workflows/e2e_tests/centos_7_img_test_ind.wf.json b/daisy_workflows/e2e_tests/centos_7_img_test_ind.wf.json new file mode 100644 index 0000000000..61e4b43e4c --- /dev/null +++ b/daisy_workflows/e2e_tests/centos_7_img_test_ind.wf.json @@ -0,0 +1,17 @@ +{ + "Name": "centos-7-img-test-ind", + "Vars": { + "source_image": "projects/centos-cloud/global/images/family/centos-7" + }, + "Steps": { + "test-img-ind": { + "Timeout": "30m", + "IncludeWorkflow": { + "Path": "../image_test/img_test_independent.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + } + } +} diff --git a/daisy_workflows/e2e_tests/debian_8_img_test_ind.wf.json b/daisy_workflows/e2e_tests/debian_8_img_test_ind.wf.json new file mode 100644 index 0000000000..141fdfae36 --- /dev/null +++ b/daisy_workflows/e2e_tests/debian_8_img_test_ind.wf.json @@ -0,0 +1,17 @@ +{ + "Name": "debian-8-img-test-ind", + "Vars": { + "source_image": "projects/debian-cloud/global/images/family/debian-8" + }, + "Steps": { + "test-img-ind": { + "Timeout": "30m", + "IncludeWorkflow": { + "Path": "../image_test/img_test_independent.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + } + } +} diff --git a/daisy_workflows/e2e_tests/debian_9_img_test_ind.wf.json b/daisy_workflows/e2e_tests/debian_9_img_test_ind.wf.json new file mode 100644 index 0000000000..1358b4e165 --- /dev/null +++ b/daisy_workflows/e2e_tests/debian_9_img_test_ind.wf.json @@ -0,0 +1,17 @@ +{ + "Name": "debian-9-img-test-ind", + "Vars": { + "source_image": "projects/debian-cloud/global/images/family/debian-9" + }, + "Steps": { + "test-img-ind": { + "Timeout": "30m", + "IncludeWorkflow": { + "Path": "../image_test/img_test_independent.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + } + } +} diff --git a/daisy_workflows/e2e_tests/rhel_6_img_test_ind.wf.json b/daisy_workflows/e2e_tests/rhel_6_img_test_ind.wf.json new file mode 100644 index 0000000000..5e659c70c0 --- /dev/null +++ b/daisy_workflows/e2e_tests/rhel_6_img_test_ind.wf.json @@ -0,0 +1,17 @@ +{ + "Name": "rhel-6-img-test-ind", + "Vars": { + "source_image": "projects/rhel-cloud/global/images/family/rhel-6" + }, + "Steps": { + "test-img-ind": { + "Timeout": "30m", + "IncludeWorkflow": { + "Path": "../image_test/img_test_independent.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + } + } +} diff --git a/daisy_workflows/e2e_tests/rhel_7_img_test_ind.wf.json b/daisy_workflows/e2e_tests/rhel_7_img_test_ind.wf.json new file mode 100644 index 0000000000..286b3d893e --- /dev/null +++ b/daisy_workflows/e2e_tests/rhel_7_img_test_ind.wf.json @@ -0,0 +1,17 @@ +{ + "Name": "rhel-7-img-test-ind", + "Vars": { + "source_image": "projects/rhel-cloud/global/images/family/rhel-7" + }, + "Steps": { + "test-img-ind": { + "Timeout": "30m", + "IncludeWorkflow": { + "Path": "../image_test/img_test_independent.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + } + } +} diff --git a/daisy_workflows/e2e_tests/sles_12_img_test_ind.wf.json b/daisy_workflows/e2e_tests/sles_12_img_test_ind.wf.json new file mode 100644 index 0000000000..1da56f77f9 --- /dev/null +++ b/daisy_workflows/e2e_tests/sles_12_img_test_ind.wf.json @@ -0,0 +1,17 @@ +{ + "Name": "sles-12-img-test-ind", + "Vars": { + "source_image": "projects/suse-cloud/global/images/family/sles-12" + }, + "Steps": { + "test-img-ind": { + "Timeout": "30m", + "IncludeWorkflow": { + "Path": "../image_test/img_test_independent.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + } + } +} diff --git a/daisy_workflows/e2e_tests/ubuntu_1404_lts_img_test_ind.wf.json b/daisy_workflows/e2e_tests/ubuntu_1404_lts_img_test_ind.wf.json new file mode 100644 index 0000000000..71f94f9bbd --- /dev/null +++ b/daisy_workflows/e2e_tests/ubuntu_1404_lts_img_test_ind.wf.json @@ -0,0 +1,17 @@ +{ + "Name": "ubuntu-1404-lts-img-test-ind", + "Vars": { + "source_image": "projects/ubuntu-os-cloud/global/images/family/ubuntu-1404-lts" + }, + "Steps": { + "test-img-ind": { + "Timeout": "30m", + "IncludeWorkflow": { + "Path": "../image_test/img_test_independent.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + } + } +} diff --git a/daisy_workflows/e2e_tests/ubuntu_1604_lts_img_test_ind.wf.json b/daisy_workflows/e2e_tests/ubuntu_1604_lts_img_test_ind.wf.json new file mode 100644 index 0000000000..afc2720c84 --- /dev/null +++ b/daisy_workflows/e2e_tests/ubuntu_1604_lts_img_test_ind.wf.json @@ -0,0 +1,17 @@ +{ + "Name": "ubuntu-1604-lts-img-test-ind", + "Vars": { + "source_image": "projects/ubuntu-os-cloud/global/images/family/ubuntu-1604-lts" + }, + "Steps": { + "test-img-ind": { + "Timeout": "30m", + "IncludeWorkflow": { + "Path": "../image_test/img_test_independent.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + } + } +} diff --git a/daisy_workflows/e2e_tests/ubuntu_1804_lts_img_test_ind.wf.json b/daisy_workflows/e2e_tests/ubuntu_1804_lts_img_test_ind.wf.json new file mode 100644 index 0000000000..6bfe567294 --- /dev/null +++ b/daisy_workflows/e2e_tests/ubuntu_1804_lts_img_test_ind.wf.json @@ -0,0 +1,17 @@ +{ + "Name": "ubuntu-1804-lts-img-test-ind", + "Vars": { + "source_image": "projects/ubuntu-os-cloud/global/images/family/ubuntu-1804-lts" + }, + "Steps": { + "test-img-ind": { + "Timeout": "30m", + "IncludeWorkflow": { + "Path": "../image_test/img_test_independent.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + } + } +} diff --git a/daisy_workflows/image_test/img_test_independent.wf.json b/daisy_workflows/image_test/img_test_independent.wf.json new file mode 100644 index 0000000000..db195b72b2 --- /dev/null +++ b/daisy_workflows/image_test/img_test_independent.wf.json @@ -0,0 +1,60 @@ +{ + "Name": "img-test-independent", + "Vars": { + "source_image": {"Required": true, "Description": "Image to be tested"} + }, + "Steps": { + "test-boot-f1-micro": { + "SubWorkflow": { + "Path": "./boot/boot.wf.json", + "Vars": { + "machine_type": "f1-micro", + "source_image": "${source_image}" + } + } + }, + "test-boot-g1-small": { + "SubWorkflow": { + "Path": "./boot/boot.wf.json", + "Vars": { + "machine_type": "g1-small", + "source_image": "${source_image}" + } + } + }, + "test-boot-n1-highcpu-64": { + "SubWorkflow": { + "Path": "./boot/boot.wf.json", + "Vars": { + "machine_type": "n1-highmem-64", + "source_image": "${source_image}" + } + } + }, + "test-boot-n1-highcpu-64": { + "SubWorkflow": { + "Path": "./boot/boot.wf.json", + "Vars": { + "machine_type": "n1-highcpu-64", + "source_image": "${source_image}" + } + } + }, + "test-metadata-ssh": { + "SubWorkflow": { + "Path": "./metadata-ssh/metadata-ssh.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + }, + "test-configuration": { + "SubWorkflow": { + "Path": "./configuration/configuration.wf.json", + "Vars": { + "source_image": "${source_image}" + } + } + } + } +}