Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 1 addition & 2 deletions internal/packages/assets.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ func loadElasticsearchAssets(pkgRootPath string) ([]Asset, error) {
}
}

// TODO add assets for input packages

// No Elasticsearch asset is created when an Input package is installed through the API.
return assets, nil
}

Expand Down
7 changes: 7 additions & 0 deletions internal/testrunner/runners/asset/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ func (r *runner) run() ([]testrunner.TestResult, error) {
return nil
}

// No Elasticsearch asset is created when an Input package is installed through the API.
// This would require to create a Agent policy and add that input package to the Agent policy.
// As those input packages could have some required fields, it would also require to add
// configuration files as in system tests to fill those fields.
// In these tests, mainly it is required to test Kibana assets, therefore it is not added
// support for Elasticsearch assets in input packages.
// Related issue: https://github.com/elastic/elastic-package/issues/1623
expectedAssets, err := packages.LoadPackageAssets(r.packageRootPath)
if err != nil {
return result.WithError(fmt.Errorf("could not load expected package assets: %w", err))
Expand Down