Skip to content

System tests fail in packages using policy_templates #899

@vinit-chauhan

Description

@vinit-chauhan

While running the system tests for AWS we saw abnormal behavior. Before adding securityhub_findings and securityhub_insights data streams in the AWS package system tests are getting passed(only ec2_metrics and redshift data streams have system tests).

When the system tests are added for securityhub data stream it gives us an error in the previously passing tests. Below mentioned are the two scenarios that we observed in the AWS package.

1st Scenario

When the policy template of securityhub is kept first in the manifest file, the system test fails. It gives the error "Input template not found, unable to find input type aws/metrics" (ec2_metrics data-stream). In ec2_metrics is terraform.
And in this scenario, if we run a system test for securityhub_findings and securityhub_insights data streams only ( elastic-package test system -d securityhub_findings,securityhub_insights ) it is passing.

image

2nd Scenario

When the policy template of securityhub is kept at the last level in the manifest file, the system test fails. It gives the error "input template not found, unable to find input type httpjson" (securityhub data-streams). In securityhub is docker.

image

Metadata

Metadata

Assignees

Labels

Team:EcosystemLabel for the Packages Ecosystem teambugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions