Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
ROX-34817: Remove UI e2e test dependence on CVE data (#20854)
  • Loading branch information
dvail committed Oct 2, 2026
commit 1fc7440af334506fbe752ff4aa035ac324109f0b
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"data": {
"deployment": {
"imageVulnerabilityCount": 1,
"id": "mock-deployment-001",
"images": [
{
"id": "sha256:abcxyz",
"digest": "sha256:abcxyz",
"name": {
"registry": "docker.io",
"remote": "cypress-test/image",
"tag": "v0.0.1",
"__typename": "ImageName"
},
"metadata": {
"v1": {
"layers": [
{
"instruction": "ADD",
"value": "file:abc123 in /",
"__typename": "ImageLayer"
}
],
"__typename": "V1Metadata"
},
"__typename": "ImageMetadata"
},
"__typename": "Image"
}
],
"imageVulnerabilities": [
{
"vulnerabilityId": "MOCK-2023-123456#debian:11",
"cve": "MOCK-2023-123456",
"cveBaseInfo": {
"epss": null,
"__typename": "CveBaseInfo"
},
"operatingSystem": "debian:11",
"publishedOn": "2023-10-14T02:15:00Z",
"summary": "Mocked CVE for Cypress testing",
"pendingExceptionCount": 0,
"images": [
{
"imageId": "sha256:abcxyz",
"imageComponents": [
{
"name": "openssl",
"version": "3.0.8-r0",
"location": "",
"source": "OS",
"layerIndex": 0,
"imageVulnerabilities": [
{
"severity": "IMPORTANT_VULNERABILITY_SEVERITY",
"cvss": 7.5,
"scoreVersion": "V3",
"fixedByVersion": "3.0.8-r1",
"advisory": null,
"discoveredAtImage": "2024-03-01T17:45:32.757812569Z",
"publishedOn": "2023-03-22T17:15:00Z",
"pendingExceptionCount": 0,
"__typename": "ImageVulnerability"
}
],
"__typename": "ImageComponent"
}
],
"__typename": "Image"
}
],
"__typename": "ImageVulnerability"
}
],
"__typename": "Deployment"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"data": {
"deployments": [
{
"id": "mock-deployment-001",
"name": "cypress-test-deployment",
"type": "Deployment",
"imageCVECountBySeverity": {
"critical": { "total": 2 },
"important": { "total": 0 },
"moderate": { "total": 0 },
"low": { "total": 0 },
"unknown": { "total": 0 }
},
"clusterName": "remote",
"namespace": "stackrox",
"imageCount": 1,
"created": "2024-01-15T10:30:00Z"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"data": {
"deployment": {
"id": "mock-deployment-001",
"name": "cypress-test-deployment",
"namespace": "stackrox",
"clusterName": "remote",
"created": "2024-01-15T10:30:00Z",
"imageCount": 1,
"__typename": "Deployment"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"data": {
"deployment": {
"id": "mock-deployment-001",
"imageCount": 1,
"images": [
{
"id": "sha256:abcxyz",
"digest": "sha256:abcxyz",
"name": {
"registry": "docker.io",
"remote": "cypress-test/image",
"tag": "v0.0.1",
"__typename": "ImageName"
},
"deploymentCount": 1,
"operatingSystem": "debian:11",
"scanTime": "2024-03-01T17:45:32.757812569Z",
"__typename": "Image"
}
],
"__typename": "Deployment"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"data": {
"deployment": {
"id": "mock-deployment-001",
"imageCVECountBySeverity": {
"unknown": {
"total": 0,
"fixable": 0,
"__typename": "ResourceCountByFixability"
},
"low": {
"total": 0,
"fixable": 0,
"__typename": "ResourceCountByFixability"
},
"moderate": {
"total": 0,
"fixable": 0,
"__typename": "ResourceCountByFixability"
},
"important": {
"total": 1,
"fixable": 1,
"__typename": "ResourceCountByFixability"
},
"critical": {
"total": 0,
"fixable": 0,
"__typename": "ResourceCountByFixability"
},
"__typename": "ResourceCountByCVESeverity"
},
"__typename": "Deployment"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"data": {
"deployments": [
{
"id": "mock-deployment-001",
"name": "cypress-test-deployment",
"namespace": "stackrox",
"type": "Deployment",
"clusterName": "remote",
"created": "2024-01-15T10:30:00Z",
"unknownImageCount": 0,
"lowImageCount": 0,
"moderateImageCount": 0,
"importantImageCount": 1,
"criticalImageCount": 0,
"images": [
{
"id": "sha256:abcxyz",
"digest": "sha256:abcxyz",
"name": {
"registry": "docker.io",
"remote": "cypress-test/image",
"tag": "v0.0.1",
"__typename": "ImageName"
},
"metadata": {
"v1": {
"layers": [
{
"instruction": "ADD",
"value": "file:abc123 in /",
"__typename": "ImageLayer"
}
],
"__typename": "V1Metadata"
},
"__typename": "ImageMetadata"
},
"imageComponents": [
{
"name": "openssl",
"version": "3.0.8-r0",
"location": "",
"source": "OS",
"layerIndex": 0,
"imageVulnerabilities": [
{
"severity": "IMPORTANT_VULNERABILITY_SEVERITY",
"cvss": 7.5,
"scoreVersion": "V3",
"fixedByVersion": "3.0.8-r1",
"advisory": null,
"discoveredAtImage": "2024-03-01T17:45:32.757812569Z",
"publishedOn": "2023-03-22T17:15:00Z",
"pendingExceptionCount": 0,
"__typename": "ImageVulnerability"
}
],
"__typename": "ImageComponent"
}
],
"__typename": "Image"
}
],
"__typename": "Deployment"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"data": {
"imageCVE": {
"cve": "MOCK-2023-123456",
"firstDiscoveredInSystem": "2024-03-25T14:35:43.111026Z",
"publishedOn": "2023-10-14T02:15:00Z",
"distroTuples": [
{
"summary": "Mocked CVE for Cypress testing",
"link": "",
"operatingSystem": "debian:11",
"cveBaseInfo": { "epss": null }
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"data": {
"totalImageCount": 1,
"imageCount": 1,
"deploymentCount": 1,
"imageCVE": {
"cve": "MOCK-2023-123456",
"affectedImageCount": 1,
"affectedImageCountBySeverity": {
"unknown": {
"total": 0,
"fixable": 0,
"__typename": "ResourceCountByFixability"
},
"low": {
"total": 0,
"fixable": 0,
"__typename": "ResourceCountByFixability"
},
"moderate": {
"total": 0,
"fixable": 0,
"__typename": "ResourceCountByFixability"
},
"important": {
"total": 1,
"fixable": 1,
"__typename": "ResourceCountByFixability"
},
"critical": {
"total": 0,
"fixable": 0,
"__typename": "ResourceCountByFixability"
},
"__typename": "ResourceCountByCVESeverity"
},
"__typename": "ImageCVE"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"data": {
"images": [
{
"id": "sha256:abcxyz",
"digest": "sha256:abcxyz",
"name": {
"registry": "docker.io",
"remote": "cypress-test/image",
"tag": "v0.0.1",
"fullName": "docker.io/cypress-test/image:v0.0.1"
},
"imageCVECountBySeverity": {
"critical": { "total": 2 },
"important": { "total": 0 },
"moderate": { "total": 0 },
"low": { "total": 0 },
"unknown": { "total": 0 }
},
"operatingSystem": "debian:11",
"deploymentCount": 1,
"watchStatus": "NOT_WATCHED",
"metadata": { "v1": { "created": "2024-01-15T10:30:00Z" } },
"scanTime": "2024-06-01T12:00:00Z",
"scanNotes": [],
"notes": []
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"data": {
"images": [
{
"id": "sha256:abcxyz",
"digest": "sha256:abcxyz",
"name": {
"registry": "docker.io",
"remote": "cypress-test/image",
"tag": "v0.0.1",
"__typename": "ImageName"
},
"metadata": {
"v1": {
"layers": [
{
"instruction": "ADD",
"value": "file:abc123 in /",
"__typename": "ImageLayer"
}
],
"__typename": "V1Metadata"
},
"__typename": "ImageMetadata"
},
"operatingSystem": "debian:11",
"watchStatus": "NOT_WATCHED",
"imageComponents": [
{
"name": "openssl",
"version": "3.0.8-r0",
"location": "",
"source": "OS",
"layerIndex": 0,
"inBaseImageLayer": false,
"imageVulnerabilities": [
{
"severity": "IMPORTANT_VULNERABILITY_SEVERITY",
"fixedByVersion": "3.0.8-r1",
"advisory": null,
"pendingExceptionCount": 0,
"discoveredAtImage": "2024-03-01T17:45:32.757812569Z",
"cvss": 7.5,
"scoreVersion": "V3",
"nvdCvss": 0,
"nvdScoreVersion": "UNKNOWN_VERSION",
"__typename": "ImageVulnerability"
}
],
"__typename": "ImageComponent"
}
],
"__typename": "Image"
}
]
}
}
Loading