Skip to content

Commit

Permalink
fixes cti test (#120701)
Browse files Browse the repository at this point in the history
Co-authored-by: Ece Ozalp <[email protected]>
  • Loading branch information
ecezalp and Ece Ozalp authored Dec 8, 2021
1 parent 3d9bfe2 commit d215977
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ describe('CTI Enrichment', () => {
it('Displays persisted enrichments on the JSON view', () => {
const expectedEnrichment = [
{
feed: {},
feed: {
name: 'AbuseCH malware',
},
indicator: {
first_seen: '2021-03-10T08:02:14.000Z',
file: {
Expand Down Expand Up @@ -113,6 +115,7 @@ describe('CTI Enrichment', () => {

it('Displays threat indicator details on the threat intel tab', () => {
const expectedThreatIndicatorData = [
{ field: 'feed.name', value: 'AbuseCH malware' },
{ field: 'indicator.file.hash.md5', value: '9b6c3518a91d23ed77504b5416bfb5b3' },
{
field: 'indicator.file.hash.sha256',
Expand Down Expand Up @@ -173,6 +176,7 @@ describe('CTI Enrichment', () => {
const indicatorMatchRuleEnrichment = {
field: 'myhash.mysha256',
value: 'a04ac6d98ad989312783d4fe3456c53730b212c79a426fb215708b6c6daa3de3',
feedName: 'AbuseCH malware',
};
const investigationTimeEnrichment = {
field: 'source.ip',
Expand All @@ -188,7 +192,7 @@ describe('CTI Enrichment', () => {
.should('exist')
.should(
'have.text',
`${indicatorMatchRuleEnrichment.field} ${indicatorMatchRuleEnrichment.value}`
`${indicatorMatchRuleEnrichment.field} ${indicatorMatchRuleEnrichment.value} from ${indicatorMatchRuleEnrichment.feedName}`
);

cy.get(`${INVESTIGATION_TIME_ENRICHMENT_SECTION} ${THREAT_DETAILS_ACCORDION}`)
Expand Down

0 comments on commit d215977

Please sign in to comment.