fixes cti test (#120701) (#120706)

Co-authored-by: Ece Ozalp <ece.ozalp@elastic.co>

Co-authored-by: Ece Özalp <ozale272@newschool.edu>
Co-authored-by: Ece Ozalp <ece.ozalp@elastic.co>
This commit is contained in:
Kibana Machine 2021-12-07 22:21:51 -05:00 committed by GitHub
parent 26ede3e82e
commit f016410e91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: {
@ -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',
@ -173,6 +176,7 @@ describe('CTI Enrichment', () => {
const indicatorMatchRuleEnrichment = {
field: 'myhash.mysha256',
value: 'a04ac6d98ad989312783d4fe3456c53730b212c79a426fb215708b6c6daa3de3',
feedName: 'AbuseCH malware',
};
const investigationTimeEnrichment = {
field: 'source.ip',
@ -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}`)