diff options
author | Pierre <pierre.guillot@sonarsource.com> | 2023-08-04 15:26:15 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-08-11 20:02:48 +0000 |
commit | 622b6c036684b0426df7ae962058f6e754754276 (patch) | |
tree | 88f1544150385d13d95dc54c8d8d8cdbbf42df14 /server/sonar-server-common/src/test | |
parent | 71af2a772aa87f9708ffa901bad3a51ce55dad9d (diff) | |
download | sonarqube-622b6c036684b0426df7ae962058f6e754754276.tar.gz sonarqube-622b6c036684b0426df7ae962058f6e754754276.zip |
SONAR-20102 add Gitlab Security Report export usage to telemetry
Diffstat (limited to 'server/sonar-server-common/src/test')
-rw-r--r-- | server/sonar-server-common/src/test/java/org/sonar/server/telemetry/TelemetryDataJsonWriterTest.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/telemetry/TelemetryDataJsonWriterTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/telemetry/TelemetryDataJsonWriterTest.java index 5f6b2e0bc18..2108dbaa5da 100644 --- a/server/sonar-server-common/src/test/java/org/sonar/server/telemetry/TelemetryDataJsonWriterTest.java +++ b/server/sonar-server-common/src/test/java/org/sonar/server/telemetry/TelemetryDataJsonWriterTest.java @@ -443,7 +443,8 @@ public class TelemetryDataJsonWriterTest { "securityHotspots": 4, "technicalDebt": 60, "developmentCost": 30, - "ncdId": 12345 + "ncdId": 12345, + "externalSecurityReportExportedAt": 1500000 }, { "projectUuid": "uuid-1", @@ -458,7 +459,8 @@ public class TelemetryDataJsonWriterTest { "securityHotspots": 8, "technicalDebt": 120, "developmentCost": 60, - "ncdId": 12345 + "ncdId": 12345, + "externalSecurityReportExportedAt": 1500001 }, { "projectUuid": "uuid-2", @@ -473,7 +475,8 @@ public class TelemetryDataJsonWriterTest { "securityHotspots": 12, "technicalDebt": 180, "developmentCost": 90, - "ncdId": 12345 + "ncdId": 12345, + "externalSecurityReportExportedAt": 1500002 } ] } @@ -647,7 +650,8 @@ public class TelemetryDataJsonWriterTest { .setVulnerabilities((i + 1L) * 3) .setSecurityHotspots((i + 1L) * 4) .setDevelopmentCost((i + 1L) * 30d) - .setTechnicalDebt((i + 1L) * 60d); + .setTechnicalDebt((i + 1L) * 60d) + .setExternalSecurityReportExportedAt(1_500_000L + i); } private List<TelemetryData.QualityGate> attachQualityGates() { |