Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add golden tests to Streamlit Quickstarter #971

Merged
merged 6 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions ds-streamlit/testdata/golden/jenkins-build-stages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[
{
"stage": "odsPipeline start",
"status": "SUCCESS"
},
{
"stage": "Create virtualenv for tests",
"status": "SUCCESS"
},
{
"stage": "Linter",
"status": "SUCCESS"
},
{
"stage": "Unit Test",
"status": "SUCCESS"
},
{
"stage": "Build",
"status": "SUCCESS"
},
{
"stage": "SonarQube Analysis",
"status": "SUCCESS"
},
{
"stage": "Build OpenShift Image",
"status": "SUCCESS"
},
{
"stage": "Build OpenShift Image (streamlit-oauth)",
"status": "SUCCESS"
},
{
"stage": "Deploy to OpenShift",
"status": "SUCCESS"
},
{
"stage": "odsPipeline finished",
"status": "SUCCESS"
}
]
30 changes: 30 additions & 0 deletions ds-streamlit/testdata/golden/jenkins-provision-stages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"stage": "Checkout quickstarter",
"status": "SUCCESS"
},
{
"stage": "Initialize output directory",
"status": "SUCCESS"
},
{
"stage": "Copy files from quickstarter",
"status": "SUCCESS"
},
{
"stage": "Setup OpenShift resources",
"status": "SUCCESS"
},
{
"stage": "Create Jenkinsfile",
"status": "SUCCESS"
},
{
"stage": "Create sonar-project.properties",
"status": "SUCCESS"
},
{
"stage": "Push to remote",
"status": "SUCCESS"
}
]
25 changes: 25 additions & 0 deletions ds-streamlit/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "{{.SonarQualityProfile}}",
"language": "py",
"deleted": false
}
],
"qualityGate": {
"name": "Sonar way",
"isDefault": true
},
"breadcrumbs": [
{
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
}
27 changes: 27 additions & 0 deletions ds-streamlit/testdata/steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
componentID: streamlit
steps:
- type: provision
provisionParams:
verify:
jenkinsStages: golden/jenkins-provision-stages.json
- type: build
buildParams:
verify:
jenkinsStages: golden/jenkins-build-stages.json
sonarScan: golden/sonar-scan.json
runAttachments:
- SCRR-{{.ProjectID}}-{{.ComponentID}}.docx
- SCRR-{{.ProjectID}}-{{.ComponentID}}.md
openShiftResources:
imageTags:
- name: "{{.ComponentID}}"
tag: latest
- name: "{{.ComponentID}}-oauth"
tag: latest
imageStreams:
- "{{.ComponentID}}"
- "{{.ComponentID}}-oauth"
deploymentConfigs:
- "{{.ComponentID}}"
services:
- "{{.ComponentID}}-oauth"
Loading