Add image boot testing in Azure
This uses an image created and uploaded to Azure using composer-cli and then terraform to spin up a linux vm from that image, check if the machine works and then cleans up everything.
This commit is contained in:
parent
33d85c82c9
commit
06361267d5
4 changed files with 431 additions and 0 deletions
19
schutzbot/Jenkinsfile
vendored
19
schutzbot/Jenkinsfile
vendored
|
|
@ -286,6 +286,7 @@ pipeline {
|
|||
AWS_API_TEST_SHARE_ACCOUNT = credentials('aws-credentials-share-account')
|
||||
AZURE_CLIENT_ID = credentials('azure-client-id')
|
||||
AZURE_CLIENT_SECRET = credentials('azure-client-secret')
|
||||
AZURE_CREDS = credentials('azure')
|
||||
}
|
||||
steps {
|
||||
run_tests('integration')
|
||||
|
|
@ -293,6 +294,10 @@ pipeline {
|
|||
post {
|
||||
always {
|
||||
preserve_logs('fedora32-integration')
|
||||
sh (
|
||||
label: "Run cloud cleaner just in case something failed",
|
||||
script: "schutzbot/run_cloud_cleaner.sh"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -350,6 +355,7 @@ pipeline {
|
|||
AWS_API_TEST_SHARE_ACCOUNT = credentials('aws-credentials-share-account')
|
||||
AZURE_CLIENT_ID = credentials('azure-client-id')
|
||||
AZURE_CLIENT_SECRET = credentials('azure-client-secret')
|
||||
AZURE_CREDS = credentials('azure')
|
||||
}
|
||||
steps {
|
||||
run_tests('integration')
|
||||
|
|
@ -357,6 +363,10 @@ pipeline {
|
|||
post {
|
||||
always {
|
||||
preserve_logs('fedora33-integration')
|
||||
sh (
|
||||
label: "Run cloud cleaner just in case something failed",
|
||||
script: "schutzbot/run_cloud_cleaner.sh"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -458,6 +468,7 @@ pipeline {
|
|||
GCP_API_TEST_SHARE_ACCOUNT = credentials('gcp-credentials-share-account')
|
||||
AZURE_CLIENT_ID = credentials('azure-client-id')
|
||||
AZURE_CLIENT_SECRET = credentials('azure-client-secret')
|
||||
AZURE_CREDS = credentials('azure')
|
||||
}
|
||||
steps {
|
||||
run_tests('integration')
|
||||
|
|
@ -557,6 +568,7 @@ pipeline {
|
|||
GCP_API_TEST_SHARE_ACCOUNT = credentials('gcp-credentials-share-account')
|
||||
AZURE_CLIENT_ID = credentials('azure-client-id')
|
||||
AZURE_CLIENT_SECRET = credentials('azure-client-secret')
|
||||
AZURE_CREDS = credentials('azure')
|
||||
}
|
||||
steps {
|
||||
run_tests('integration')
|
||||
|
|
@ -665,6 +677,7 @@ pipeline {
|
|||
GCP_API_TEST_SHARE_ACCOUNT = credentials('gcp-credentials-share-account')
|
||||
AZURE_CLIENT_ID = credentials('azure-client-id')
|
||||
AZURE_CLIENT_SECRET = credentials('azure-client-secret')
|
||||
AZURE_CREDS = credentials('azure')
|
||||
}
|
||||
steps {
|
||||
run_tests('integration')
|
||||
|
|
@ -815,6 +828,12 @@ void run_tests(test_type) {
|
|||
script: "/usr/libexec/tests/osbuild-composer/aws.sh"
|
||||
)
|
||||
|
||||
// Run the Azure test.
|
||||
sh (
|
||||
label: "Integration test: AZURE",
|
||||
script: "/usr/libexec/tests/osbuild-composer/azure.sh"
|
||||
)
|
||||
|
||||
// Run the API test with AWS.
|
||||
sh (
|
||||
label: "Integration test: API (AWS)",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue