-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
215 additions
and
1,475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
257 changes: 40 additions & 217 deletions
257
...Components/CVEDetailsPageDescription/__snapshots__/CVEDetailsPageDescription.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,228 +1,51 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`CVEDetailsPageDescription component should render without props 1`] = ` | ||
<injectIntl(CVEDetailsPageDescription) | ||
cveAttributes={ | ||
{ | ||
"business_risk": "Not defined", | ||
"business_risk_id": 0, | ||
"business_risk_justification": null, | ||
"cvss3_metrics": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H", | ||
"cvss3_score": "5.900", | ||
"description": "It was found that ghostscript could leak sensitive operators on the operand stack when a pseudo-operator pushes a subroutine. A specially crafted PostScript file could use this flaw to escape the -dSAFER protection in order to, for example, have access to the file system and execute commands.", | ||
"impact": "Important", | ||
"public_date": "12 May 2020", | ||
"status": "Resolved via mitigation", | ||
"status_id": 6, | ||
"synopsis": "CVE-2020-10711", | ||
"systems_status_detail": { | ||
"0": 2, | ||
}, | ||
} | ||
} | ||
> | ||
<CVEDetailsPageDescription | ||
cveAttributes={ | ||
{ | ||
"business_risk": "Not defined", | ||
"business_risk_id": 0, | ||
"business_risk_justification": null, | ||
"cvss3_metrics": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H", | ||
"cvss3_score": "5.900", | ||
"description": "It was found that ghostscript could leak sensitive operators on the operand stack when a pseudo-operator pushes a subroutine. A specially crafted PostScript file could use this flaw to escape the -dSAFER protection in order to, for example, have access to the file system and execute commands.", | ||
"impact": "Important", | ||
"public_date": "12 May 2020", | ||
"status": "Resolved via mitigation", | ||
"status_id": 6, | ||
"synopsis": "CVE-2020-10711", | ||
"systems_status_detail": { | ||
"0": 2, | ||
}, | ||
} | ||
} | ||
intl={ | ||
{ | ||
"$t": [Function], | ||
"defaultFormats": {}, | ||
"defaultLocale": "en", | ||
"defaultRichTextElements": undefined, | ||
"fallbackOnEmptyString": true, | ||
"formatDate": [Function], | ||
"formatDateTimeRange": [Function], | ||
"formatDateToParts": [Function], | ||
"formatDisplayName": [Function], | ||
"formatList": [Function], | ||
"formatListToParts": [Function], | ||
"formatMessage": [Function], | ||
"formatNumber": [Function], | ||
"formatNumberToParts": [Function], | ||
"formatPlural": [Function], | ||
"formatRelativeTime": [Function], | ||
"formatTime": [Function], | ||
"formatTimeToParts": [Function], | ||
"formats": {}, | ||
"formatters": { | ||
"getDateTimeFormat": [Function], | ||
"getDisplayNames": [Function], | ||
"getListFormat": [Function], | ||
"getMessageFormat": [Function], | ||
"getNumberFormat": [Function], | ||
"getPluralRules": [Function], | ||
"getRelativeTimeFormat": [Function], | ||
}, | ||
"locale": "en", | ||
"messages": { | ||
"default.cancel": "Cancel", | ||
"default.delete": "Delete", | ||
"default.remove": "Remove", | ||
"default.save": "Save", | ||
}, | ||
"onError": [Function], | ||
"onWarn": [Function], | ||
"textComponent": Symbol(react.fragment), | ||
"timeZone": undefined, | ||
"wrapRichTextChunksInFragment": undefined, | ||
} | ||
} | ||
<DocumentFragment> | ||
<div | ||
class="pf-v5-l-stack pf-m-gutter" | ||
> | ||
<Stack | ||
hasGutter={true} | ||
<div | ||
class="pf-v5-l-stack__item pf-v5-u-mt-sm" | ||
> | ||
<div | ||
className="pf-l-stack pf-m-gutter" | ||
class="pf-v5-l-flex" | ||
> | ||
<StackItem | ||
className="pf-u-mt-sm" | ||
<div | ||
class="" | ||
> | ||
<div | ||
className="pf-l-stack__item pf-u-mt-sm" | ||
> | ||
<Flex> | ||
<div | ||
className="pf-l-flex" | ||
> | ||
<FlexItem> | ||
<div | ||
className="" | ||
> | ||
Publish date | ||
: | ||
</div> | ||
</FlexItem> | ||
<FlexItem | ||
grow={ | ||
{ | ||
"default": "grow", | ||
} | ||
} | ||
> | ||
<div | ||
className="pf-m-grow" | ||
> | ||
<WithLoader | ||
isLoading={true} | ||
size="sm" | ||
variant="inlineSkeleton" | ||
> | ||
<Skeleton | ||
size="sm" | ||
style={ | ||
{ | ||
"display": "inline-block", | ||
} | ||
} | ||
> | ||
<Skeleton | ||
className="ins-c-skeleton ins-c-skeleton__sm" | ||
style={ | ||
{ | ||
"display": "inline-block", | ||
} | ||
} | ||
> | ||
<div | ||
className="pf-c-skeleton ins-c-skeleton ins-c-skeleton__sm" | ||
style={ | ||
{ | ||
"display": "inline-block", | ||
} | ||
} | ||
> | ||
<span | ||
className="pf-u-screen-reader" | ||
/> | ||
</div> | ||
</Skeleton> | ||
</Skeleton> | ||
</WithLoader> | ||
</div> | ||
</FlexItem> | ||
</div> | ||
</Flex> | ||
</div> | ||
</StackItem> | ||
<StackItem> | ||
<div | ||
className="pf-l-stack__item" | ||
> | ||
<WithLoader | ||
isLoading={true} | ||
style={ | ||
{ | ||
"height": "132px", | ||
"width": "100%", | ||
} | ||
} | ||
variant="rectangle" | ||
> | ||
<Skeleton | ||
shape="square" | ||
style={ | ||
{ | ||
"height": "132px", | ||
"width": "100%", | ||
} | ||
} | ||
> | ||
<Skeleton | ||
className="ins-c-skeleton ins-c-skeleton__md" | ||
shape="square" | ||
style={ | ||
{ | ||
"height": "132px", | ||
"width": "100%", | ||
} | ||
} | ||
> | ||
<div | ||
className="pf-c-skeleton pf-m-square ins-c-skeleton ins-c-skeleton__md" | ||
style={ | ||
{ | ||
"height": "132px", | ||
"width": "100%", | ||
} | ||
} | ||
> | ||
<span | ||
className="pf-u-screen-reader" | ||
/> | ||
</div> | ||
</Skeleton> | ||
</Skeleton> | ||
</WithLoader> | ||
</div> | ||
</StackItem> | ||
<StackItem | ||
className="pf-u-mt-sm pf-u-mb-md" | ||
Publish date: | ||
</div> | ||
<div | ||
class="pf-m-grow" | ||
> | ||
<div | ||
className="pf-l-stack__item pf-u-mt-sm pf-u-mb-md" | ||
> | ||
For most up-to-date information, | ||
</div> | ||
</StackItem> | ||
12 May 2020 | ||
</div> | ||
</div> | ||
</Stack> | ||
</CVEDetailsPageDescription> | ||
</injectIntl(CVEDetailsPageDescription)> | ||
</div> | ||
<div | ||
class="pf-v5-l-stack__item" | ||
> | ||
<div | ||
class="pf-v5-c-content" | ||
style="text-align: justify;" | ||
> | ||
<p | ||
class="" | ||
data-ouia-component-id="OUIA-Generated-Text-1" | ||
data-ouia-component-type="PF5/Text" | ||
data-ouia-safe="true" | ||
data-pf-content="true" | ||
> | ||
It was found that ghostscript could leak sensitive operators on the operand stack when a pseudo-operator pushes a subroutine. A specially crafted PostScript file could use this flaw to escape the -dSAFER protection in order to, for example, have access to the file system and execute commands. | ||
</p> | ||
</div> | ||
</div> | ||
<div | ||
class="pf-v5-l-stack__item pf-v5-u-mt-sm pf-v5-u-mb-md" | ||
> | ||
For most up-to-date information, | ||
</div> | ||
</div> | ||
</DocumentFragment> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.