|
|
@@ -1,6 +1,48 @@ |
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP |
|
|
|
|
|
|
|
exports[`new_maintainability_rating 1`] = ` |
|
|
|
exports[`should render correclty 1`] = ` |
|
|
|
<DrilldownLink |
|
|
|
className="overview-quality-gate-condition overview-quality-gate-condition-error" |
|
|
|
component="abcd-key" |
|
|
|
metric="open_issues" |
|
|
|
sinceLeakPeriod={false} |
|
|
|
> |
|
|
|
<div |
|
|
|
className="overview-quality-gate-condition-container display-flex-center" |
|
|
|
> |
|
|
|
<div |
|
|
|
className="overview-quality-gate-condition-value text-center spacer-right" |
|
|
|
> |
|
|
|
<Measure |
|
|
|
decimals={2} |
|
|
|
metricKey="open_issues" |
|
|
|
metricType="INT" |
|
|
|
value="3" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<span |
|
|
|
className="overview-quality-gate-condition-metric little-spacer-right" |
|
|
|
> |
|
|
|
<IssueTypeIcon |
|
|
|
className="little-spacer-right" |
|
|
|
query="open_issues" |
|
|
|
/> |
|
|
|
open_issues |
|
|
|
</span> |
|
|
|
<span |
|
|
|
className="little-spacer-top small text-muted" |
|
|
|
> |
|
|
|
quality_gates.operator.GT |
|
|
|
|
|
|
|
1 |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</DrilldownLink> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`should render correclty 2`] = ` |
|
|
|
<Link |
|
|
|
className="overview-quality-gate-condition overview-quality-gate-condition-error" |
|
|
|
onlyActiveOnIndex={false} |
|
|
@@ -11,8 +53,8 @@ exports[`new_maintainability_rating 1`] = ` |
|
|
|
"query": Object { |
|
|
|
"id": "abcd-key", |
|
|
|
"resolved": "false", |
|
|
|
"sinceLeakPeriod": "true", |
|
|
|
"types": "CODE_SMELL", |
|
|
|
"severities": "BLOCKER,CRITICAL,MAJOR,MINOR", |
|
|
|
"types": "BUG", |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
@@ -25,7 +67,7 @@ exports[`new_maintainability_rating 1`] = ` |
|
|
|
> |
|
|
|
<Measure |
|
|
|
decimals={2} |
|
|
|
metricKey="new_maintainability_rating" |
|
|
|
metricKey="reliability_rating" |
|
|
|
metricType="RATING" |
|
|
|
value="3" |
|
|
|
/> |
|
|
@@ -36,9 +78,9 @@ exports[`new_maintainability_rating 1`] = ` |
|
|
|
> |
|
|
|
<IssueTypeIcon |
|
|
|
className="little-spacer-right" |
|
|
|
query="new_maintainability_rating" |
|
|
|
query="reliability_rating" |
|
|
|
/> |
|
|
|
new_maintainability_rating |
|
|
|
reliability_rating |
|
|
|
</span> |
|
|
|
<span |
|
|
|
className="little-spacer-top small text-muted" |
|
|
@@ -52,12 +94,22 @@ exports[`new_maintainability_rating 1`] = ` |
|
|
|
</Link> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`new_open_issues 1`] = ` |
|
|
|
<DrilldownLink |
|
|
|
exports[`should render correclty 3`] = ` |
|
|
|
<Link |
|
|
|
className="overview-quality-gate-condition overview-quality-gate-condition-error" |
|
|
|
component="abcd-key" |
|
|
|
metric="new_open_issues" |
|
|
|
sinceLeakPeriod={true} |
|
|
|
onlyActiveOnIndex={false} |
|
|
|
style={Object {}} |
|
|
|
to={ |
|
|
|
Object { |
|
|
|
"pathname": "/project/issues", |
|
|
|
"query": Object { |
|
|
|
"id": "abcd-key", |
|
|
|
"resolved": "false", |
|
|
|
"severities": "BLOCKER,CRITICAL,MAJOR,MINOR", |
|
|
|
"types": "VULNERABILITY", |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
> |
|
|
|
<div |
|
|
|
className="overview-quality-gate-condition-container display-flex-center" |
|
|
@@ -67,8 +119,8 @@ exports[`new_open_issues 1`] = ` |
|
|
|
> |
|
|
|
<Measure |
|
|
|
decimals={2} |
|
|
|
metricKey="new_open_issues" |
|
|
|
metricType="INT" |
|
|
|
metricKey="security_rating" |
|
|
|
metricType="RATING" |
|
|
|
value="3" |
|
|
|
/> |
|
|
|
</div> |
|
|
@@ -78,23 +130,23 @@ exports[`new_open_issues 1`] = ` |
|
|
|
> |
|
|
|
<IssueTypeIcon |
|
|
|
className="little-spacer-right" |
|
|
|
query="new_open_issues" |
|
|
|
query="security_rating" |
|
|
|
/> |
|
|
|
new_open_issues |
|
|
|
security_rating |
|
|
|
</span> |
|
|
|
<span |
|
|
|
className="little-spacer-top small text-muted" |
|
|
|
> |
|
|
|
quality_gates.operator.GT |
|
|
|
quality_gates.operator.GT.rating |
|
|
|
|
|
|
|
1 |
|
|
|
A |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</DrilldownLink> |
|
|
|
</Link> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`new_reliability_rating 1`] = ` |
|
|
|
exports[`should render correclty 4`] = ` |
|
|
|
<Link |
|
|
|
className="overview-quality-gate-condition overview-quality-gate-condition-error" |
|
|
|
onlyActiveOnIndex={false} |
|
|
@@ -105,9 +157,7 @@ exports[`new_reliability_rating 1`] = ` |
|
|
|
"query": Object { |
|
|
|
"id": "abcd-key", |
|
|
|
"resolved": "false", |
|
|
|
"severities": "BLOCKER,CRITICAL,MAJOR,MINOR", |
|
|
|
"sinceLeakPeriod": "true", |
|
|
|
"types": "BUG", |
|
|
|
"types": "CODE_SMELL", |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
@@ -120,7 +170,7 @@ exports[`new_reliability_rating 1`] = ` |
|
|
|
> |
|
|
|
<Measure |
|
|
|
decimals={2} |
|
|
|
metricKey="new_reliability_rating" |
|
|
|
metricKey="sqale_rating" |
|
|
|
metricType="RATING" |
|
|
|
value="3" |
|
|
|
/> |
|
|
@@ -131,9 +181,9 @@ exports[`new_reliability_rating 1`] = ` |
|
|
|
> |
|
|
|
<IssueTypeIcon |
|
|
|
className="little-spacer-right" |
|
|
|
query="new_reliability_rating" |
|
|
|
query="sqale_rating" |
|
|
|
/> |
|
|
|
new_reliability_rating |
|
|
|
sqale_rating |
|
|
|
</span> |
|
|
|
<span |
|
|
|
className="little-spacer-top small text-muted" |
|
|
@@ -147,7 +197,7 @@ exports[`new_reliability_rating 1`] = ` |
|
|
|
</Link> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`new_security_rating 1`] = ` |
|
|
|
exports[`should render correclty 5`] = ` |
|
|
|
<Link |
|
|
|
className="overview-quality-gate-condition overview-quality-gate-condition-error" |
|
|
|
onlyActiveOnIndex={false} |
|
|
@@ -160,7 +210,7 @@ exports[`new_security_rating 1`] = ` |
|
|
|
"resolved": "false", |
|
|
|
"severities": "BLOCKER,CRITICAL,MAJOR,MINOR", |
|
|
|
"sinceLeakPeriod": "true", |
|
|
|
"types": "VULNERABILITY", |
|
|
|
"types": "BUG", |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
@@ -173,7 +223,7 @@ exports[`new_security_rating 1`] = ` |
|
|
|
> |
|
|
|
<Measure |
|
|
|
decimals={2} |
|
|
|
metricKey="new_security_rating" |
|
|
|
metricKey="new_reliability_rating" |
|
|
|
metricType="RATING" |
|
|
|
value="3" |
|
|
|
/> |
|
|
@@ -184,9 +234,9 @@ exports[`new_security_rating 1`] = ` |
|
|
|
> |
|
|
|
<IssueTypeIcon |
|
|
|
className="little-spacer-right" |
|
|
|
query="new_security_rating" |
|
|
|
query="new_reliability_rating" |
|
|
|
/> |
|
|
|
new_security_rating |
|
|
|
new_reliability_rating |
|
|
|
</span> |
|
|
|
<span |
|
|
|
className="little-spacer-top small text-muted" |
|
|
@@ -200,12 +250,23 @@ exports[`new_security_rating 1`] = ` |
|
|
|
</Link> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`open_issues 1`] = ` |
|
|
|
<DrilldownLink |
|
|
|
exports[`should render correclty 6`] = ` |
|
|
|
<Link |
|
|
|
className="overview-quality-gate-condition overview-quality-gate-condition-error" |
|
|
|
component="abcd-key" |
|
|
|
metric="open_issues" |
|
|
|
sinceLeakPeriod={false} |
|
|
|
onlyActiveOnIndex={false} |
|
|
|
style={Object {}} |
|
|
|
to={ |
|
|
|
Object { |
|
|
|
"pathname": "/project/issues", |
|
|
|
"query": Object { |
|
|
|
"id": "abcd-key", |
|
|
|
"resolved": "false", |
|
|
|
"severities": "BLOCKER,CRITICAL,MAJOR,MINOR", |
|
|
|
"sinceLeakPeriod": "true", |
|
|
|
"types": "VULNERABILITY", |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
> |
|
|
|
<div |
|
|
|
className="overview-quality-gate-condition-container display-flex-center" |
|
|
@@ -215,8 +276,8 @@ exports[`open_issues 1`] = ` |
|
|
|
> |
|
|
|
<Measure |
|
|
|
decimals={2} |
|
|
|
metricKey="open_issues" |
|
|
|
metricType="INT" |
|
|
|
metricKey="new_security_rating" |
|
|
|
metricType="RATING" |
|
|
|
value="3" |
|
|
|
/> |
|
|
|
</div> |
|
|
@@ -226,23 +287,23 @@ exports[`open_issues 1`] = ` |
|
|
|
> |
|
|
|
<IssueTypeIcon |
|
|
|
className="little-spacer-right" |
|
|
|
query="open_issues" |
|
|
|
query="new_security_rating" |
|
|
|
/> |
|
|
|
open_issues |
|
|
|
new_security_rating |
|
|
|
</span> |
|
|
|
<span |
|
|
|
className="little-spacer-top small text-muted" |
|
|
|
> |
|
|
|
quality_gates.operator.GT |
|
|
|
quality_gates.operator.GT.rating |
|
|
|
|
|
|
|
1 |
|
|
|
A |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</DrilldownLink> |
|
|
|
</Link> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`reliability_rating 1`] = ` |
|
|
|
exports[`should render correclty 7`] = ` |
|
|
|
<Link |
|
|
|
className="overview-quality-gate-condition overview-quality-gate-condition-error" |
|
|
|
onlyActiveOnIndex={false} |
|
|
@@ -253,8 +314,8 @@ exports[`reliability_rating 1`] = ` |
|
|
|
"query": Object { |
|
|
|
"id": "abcd-key", |
|
|
|
"resolved": "false", |
|
|
|
"severities": "BLOCKER,CRITICAL,MAJOR,MINOR", |
|
|
|
"types": "BUG", |
|
|
|
"sinceLeakPeriod": "true", |
|
|
|
"types": "CODE_SMELL", |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
@@ -267,7 +328,7 @@ exports[`reliability_rating 1`] = ` |
|
|
|
> |
|
|
|
<Measure |
|
|
|
decimals={2} |
|
|
|
metricKey="reliability_rating" |
|
|
|
metricKey="new_maintainability_rating" |
|
|
|
metricType="RATING" |
|
|
|
value="3" |
|
|
|
/> |
|
|
@@ -278,9 +339,9 @@ exports[`reliability_rating 1`] = ` |
|
|
|
> |
|
|
|
<IssueTypeIcon |
|
|
|
className="little-spacer-right" |
|
|
|
query="reliability_rating" |
|
|
|
query="new_maintainability_rating" |
|
|
|
/> |
|
|
|
reliability_rating |
|
|
|
new_maintainability_rating |
|
|
|
</span> |
|
|
|
<span |
|
|
|
className="little-spacer-top small text-muted" |
|
|
@@ -294,19 +355,21 @@ exports[`reliability_rating 1`] = ` |
|
|
|
</Link> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`security_rating 1`] = ` |
|
|
|
exports[`should render correclty 8`] = ` |
|
|
|
<Link |
|
|
|
className="overview-quality-gate-condition overview-quality-gate-condition-error" |
|
|
|
onlyActiveOnIndex={false} |
|
|
|
style={Object {}} |
|
|
|
to={ |
|
|
|
Object { |
|
|
|
"pathname": "/project/issues", |
|
|
|
"pathname": "/security_hotspots", |
|
|
|
"query": Object { |
|
|
|
"assignedToMe": undefined, |
|
|
|
"branch": undefined, |
|
|
|
"hotspots": undefined, |
|
|
|
"id": "abcd-key", |
|
|
|
"resolved": "false", |
|
|
|
"severities": "BLOCKER,CRITICAL,MAJOR,MINOR", |
|
|
|
"types": "VULNERABILITY", |
|
|
|
"pullRequest": undefined, |
|
|
|
"sinceLeakPeriod": undefined, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
@@ -319,7 +382,7 @@ exports[`security_rating 1`] = ` |
|
|
|
> |
|
|
|
<Measure |
|
|
|
decimals={2} |
|
|
|
metricKey="security_rating" |
|
|
|
metricKey="security_hotspots_reviewed" |
|
|
|
metricType="RATING" |
|
|
|
value="3" |
|
|
|
/> |
|
|
@@ -330,9 +393,9 @@ exports[`security_rating 1`] = ` |
|
|
|
> |
|
|
|
<IssueTypeIcon |
|
|
|
className="little-spacer-right" |
|
|
|
query="security_rating" |
|
|
|
query="security_hotspots_reviewed" |
|
|
|
/> |
|
|
|
security_rating |
|
|
|
security_hotspots_reviewed |
|
|
|
</span> |
|
|
|
<span |
|
|
|
className="little-spacer-top small text-muted" |
|
|
@@ -346,20 +409,21 @@ exports[`security_rating 1`] = ` |
|
|
|
</Link> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`should work with branch 1`] = ` |
|
|
|
exports[`should render correclty 9`] = ` |
|
|
|
<Link |
|
|
|
className="overview-quality-gate-condition overview-quality-gate-condition-error" |
|
|
|
onlyActiveOnIndex={false} |
|
|
|
style={Object {}} |
|
|
|
to={ |
|
|
|
Object { |
|
|
|
"pathname": "/project/issues", |
|
|
|
"pathname": "/security_hotspots", |
|
|
|
"query": Object { |
|
|
|
"branch": "branch-6.7", |
|
|
|
"assignedToMe": undefined, |
|
|
|
"branch": undefined, |
|
|
|
"hotspots": undefined, |
|
|
|
"id": "abcd-key", |
|
|
|
"resolved": "false", |
|
|
|
"pullRequest": undefined, |
|
|
|
"sinceLeakPeriod": "true", |
|
|
|
"types": "CODE_SMELL", |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
@@ -372,7 +436,7 @@ exports[`should work with branch 1`] = ` |
|
|
|
> |
|
|
|
<Measure |
|
|
|
decimals={2} |
|
|
|
metricKey="new_maintainability_rating" |
|
|
|
metricKey="new_security_hotspots_reviewed" |
|
|
|
metricType="RATING" |
|
|
|
value="3" |
|
|
|
/> |
|
|
@@ -383,9 +447,9 @@ exports[`should work with branch 1`] = ` |
|
|
|
> |
|
|
|
<IssueTypeIcon |
|
|
|
className="little-spacer-right" |
|
|
|
query="new_maintainability_rating" |
|
|
|
query="new_security_hotspots_reviewed" |
|
|
|
/> |
|
|
|
new_maintainability_rating |
|
|
|
new_security_hotspots_reviewed |
|
|
|
</span> |
|
|
|
<span |
|
|
|
className="little-spacer-top small text-muted" |
|
|
@@ -399,7 +463,7 @@ exports[`should work with branch 1`] = ` |
|
|
|
</Link> |
|
|
|
`; |
|
|
|
|
|
|
|
exports[`sqale_rating 1`] = ` |
|
|
|
exports[`should work with branch 1`] = ` |
|
|
|
<Link |
|
|
|
className="overview-quality-gate-condition overview-quality-gate-condition-error" |
|
|
|
onlyActiveOnIndex={false} |
|
|
@@ -408,8 +472,10 @@ exports[`sqale_rating 1`] = ` |
|
|
|
Object { |
|
|
|
"pathname": "/project/issues", |
|
|
|
"query": Object { |
|
|
|
"branch": "branch-6.7", |
|
|
|
"id": "abcd-key", |
|
|
|
"resolved": "false", |
|
|
|
"sinceLeakPeriod": "true", |
|
|
|
"types": "CODE_SMELL", |
|
|
|
}, |
|
|
|
} |
|
|
@@ -423,7 +489,7 @@ exports[`sqale_rating 1`] = ` |
|
|
|
> |
|
|
|
<Measure |
|
|
|
decimals={2} |
|
|
|
metricKey="sqale_rating" |
|
|
|
metricKey="new_maintainability_rating" |
|
|
|
metricType="RATING" |
|
|
|
value="3" |
|
|
|
/> |
|
|
@@ -434,9 +500,9 @@ exports[`sqale_rating 1`] = ` |
|
|
|
> |
|
|
|
<IssueTypeIcon |
|
|
|
className="little-spacer-right" |
|
|
|
query="sqale_rating" |
|
|
|
query="new_maintainability_rating" |
|
|
|
/> |
|
|
|
sqale_rating |
|
|
|
new_maintainability_rating |
|
|
|
</span> |
|
|
|
<span |
|
|
|
className="little-spacer-top small text-muted" |