Skip to content

Commit

Permalink
image_test: add tests in prow
Browse files Browse the repository at this point in the history
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
  • Loading branch information
helen-fornazier committed May 18, 2018
1 parent d22600b commit 1b620ad
Show file tree
Hide file tree
Showing 11 changed files with 230 additions and 0 deletions.
17 changes: 17 additions & 0 deletions daisy_workflows/e2e_tests/centos_6_img_test_ind.wf.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
}
17 changes: 17 additions & 0 deletions daisy_workflows/e2e_tests/centos_7_img_test_ind.wf.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
}
17 changes: 17 additions & 0 deletions daisy_workflows/e2e_tests/debian_8_img_test_ind.wf.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
}
17 changes: 17 additions & 0 deletions daisy_workflows/e2e_tests/debian_9_img_test_ind.wf.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
}
17 changes: 17 additions & 0 deletions daisy_workflows/e2e_tests/rhel_6_img_test_ind.wf.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
}
17 changes: 17 additions & 0 deletions daisy_workflows/e2e_tests/rhel_7_img_test_ind.wf.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
}
17 changes: 17 additions & 0 deletions daisy_workflows/e2e_tests/sles_12_img_test_ind.wf.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
}
17 changes: 17 additions & 0 deletions daisy_workflows/e2e_tests/ubuntu_1404_lts_img_test_ind.wf.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
}
17 changes: 17 additions & 0 deletions daisy_workflows/e2e_tests/ubuntu_1604_lts_img_test_ind.wf.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
}
17 changes: 17 additions & 0 deletions daisy_workflows/e2e_tests/ubuntu_1804_lts_img_test_ind.wf.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
}
60 changes: 60 additions & 0 deletions daisy_workflows/image_test/img_test_independent.wf.json
Original file line number Diff line number Diff line change
@@ -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}"
}
}
}
}
}

0 comments on commit 1b620ad

Please sign in to comment.