diff --git a/ds-streamlit/testdata/golden/jenkins-build-stages.json b/ds-streamlit/testdata/golden/jenkins-build-stages.json new file mode 100644 index 000000000..5fbaa4cce --- /dev/null +++ b/ds-streamlit/testdata/golden/jenkins-build-stages.json @@ -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" + } +] diff --git a/ds-streamlit/testdata/golden/jenkins-provision-stages.json b/ds-streamlit/testdata/golden/jenkins-provision-stages.json new file mode 100644 index 000000000..b4168f8a2 --- /dev/null +++ b/ds-streamlit/testdata/golden/jenkins-provision-stages.json @@ -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" + } +] diff --git a/ds-streamlit/testdata/golden/sonar-scan.json b/ds-streamlit/testdata/golden/sonar-scan.json new file mode 100644 index 000000000..559ca033b --- /dev/null +++ b/ds-streamlit/testdata/golden/sonar-scan.json @@ -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" + } + ] +} diff --git a/ds-streamlit/testdata/steps.yml b/ds-streamlit/testdata/steps.yml new file mode 100644 index 000000000..c5b100cd0 --- /dev/null +++ b/ds-streamlit/testdata/steps.yml @@ -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"