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

Sonarqube 6.x added, works exactly the same way 7.x does. #229

Merged
merged 7 commits into from
Jan 22, 2020
4 changes: 4 additions & 0 deletions cogboard-webapp/src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ export const SONARQUBE_VERSIONS = [
display: '7.x',
value: '7.x'
},
{
display: '6.x',
value: '6.x'
},
{
display: '5.x',
value: '5.x'
Expand Down
49 changes: 49 additions & 0 deletions functional/cypress-tests/cypress/fixtures/Widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,55 @@ module.exports = {
}
}
},
sonarQube6x: {
name: 'SonarQube',
version: '6.x',
endpoint: 'endpoint1',
schedulePeriod: '90',
key: 'fail',
metrics: {
blocker_violations: {
dataValue: 'blocker_violations',
label: 'blocker violations',
value: '0'
},
critical_violations: {
dataValue: 'critical_violations',
label: 'critical violations',
value: '0'
},
major_violations: {
dataValue: 'major_violations',
label: 'major violations',
value: '3'
},
minor_violations: {
dataValue: 'minor_violations',
label: 'minor violations',
value: '4'
},
info_violations: {
dataValue: 'info_violations',
label: 'info violations',
value: '15'
},
bugs: {
dataValue: 'bugs',
label: 'bugs',
value: '7'
},
code_smells: {
dataValue: 'code_smells',
label: 'code smells',
value: '5'
},
vulnerabilities: {
dataValue: 'vulnerabilities',
label: 'vulnerabilities',
value: '3'
}
}
},
sonarQube7x: {
name: 'SonarQube',
version: '7.x',
Expand Down