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

Change sonar-scan.json and release manager template to use any project #933

Merged
merged 2 commits into from
Jun 21, 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- Fix imagePullPolicy issue when verifying the image ([#874](https://github.com/opendevstack/ods-quickstarters/issues/874))
- Set default rollout strategy to recreate ([#926](https://github.com/opendevstack/ods-quickstarters/issues/926))
- Add binutils to jdk agent ([929](https://github.com/opendevstack/ods-quickstarters/issues/929))
- Change golden tests to be able to execute them in other namespaces ([933](https://github.com/opendevstack/ods-quickstarters/pull/933))

## [4.1] - 2022-11-17

Expand Down
11 changes: 5 additions & 6 deletions be-golang-plain/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-golang-iq-test",
"organization": "default-organization",
"name": "unitt-golang-iq-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "go",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-golang-iq-test",
"name": "unitt-golang-iq-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
11 changes: 5 additions & 6 deletions be-java-springboot/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-springboot",
"organization": "default-organization",
"name": "unitt-springboot",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "java",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-springboot",
"name": "unitt-springboot",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
11 changes: 5 additions & 6 deletions be-python-flask/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-python-flask-iq-test",
"organization": "default-organization",
"name": "unitt-python-flask-iq-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "py",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-python-flask-iq-test",
"name": "unitt-python-flask-iq-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
11 changes: 5 additions & 6 deletions be-scala-play/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-be-scala-play-test",
"organization": "default-organization",
"name": "unitt-be-scala-play-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "scala",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-be-scala-play-test",
"name": "unitt-be-scala-play-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
11 changes: 5 additions & 6 deletions be-typescript-express/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-typescript-iq-test",
"organization": "default-organization",
"name": "unitt-typescript-iq-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "ts",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-typescript-iq-test",
"name": "unitt-typescript-iq-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
13 changes: 6 additions & 7 deletions e2e-cypress/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"key": "unitt-cypress",
"organization": "default-organization",
"name": "unitt-cypress",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "js",
"deleted": false
},
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "ts",
"deleted": false
}
Expand All @@ -23,8 +22,8 @@
},
"breadcrumbs": [
{
"key": "unitt-cypress",
"name": "unitt-cypress",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
13 changes: 6 additions & 7 deletions e2e-spock-geb/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"key": "unitt-spock",
"organization": "default-organization",
"name": "unitt-spock",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "grvy",
"deleted": false
},
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "java",
"deleted": false
}
Expand All @@ -23,8 +22,8 @@
},
"breadcrumbs": [
{
"key": "unitt-spock",
"name": "unitt-spock",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
11 changes: 5 additions & 6 deletions fe-angular/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-fe-angular-test",
"organization": "default-organization",
"name": "unitt-fe-angular-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "ts",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-fe-angular-test",
"name": "unitt-fe-angular-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
11 changes: 5 additions & 6 deletions fe-ionic/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-fe-ionic-test",
"organization": "default-organization",
"name": "unitt-fe-ionic-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "ts",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-fe-ionic-test",
"name": "unitt-fe-ionic-test",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
11 changes: 5 additions & 6 deletions ods-document-gen-svc/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-docgen",
"organization": "default-organization",
"name": "unitt-docgen",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "grvy",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-docgen",
"name": "unitt-docgen",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
11 changes: 5 additions & 6 deletions ods-provisioning-app/testdata/golden/sonar-scan.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"key": "unitt-provapp",
"organization": "default-organization",
"name": "unitt-provapp",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"isFavorite": false,
"visibility": "public",
"extensions": [],
"qualityProfiles": [
{
"name": "Sonar way",
"name": "{{.SonarQualityProfile}}",
"language": "java",
"deleted": false
}
Expand All @@ -18,8 +17,8 @@
},
"breadcrumbs": [
{
"key": "unitt-provapp",
"name": "unitt-provapp",
"key": "{{.ProjectID}}-{{.ComponentID}}",
"name": "{{.ProjectID}}-{{.ComponentID}}",
"qualifier": "TRK"
}
]
Expand Down
8 changes: 4 additions & 4 deletions release-manager/testdata/fixtures/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
id: unitt
name: Project unitt
description: Description of unitt.
id: {{.ProjectID}}
name: Project {{.ProjectID}}
description: Description of {{.ProjectID}}.

services:
bitbucket:
credentials:
id: unitt-cd-cd-user-with-password
id: {{.ProjectID}}-cd-cd-user-with-password

nexus:
repository:
Expand Down