Skip to content

Commit

Permalink
[7.15] [Fleet] Fix pipeline with id [*] does not exists (elastic#116707
Browse files Browse the repository at this point in the history
…) (elastic#116942)

* [Fleet] Fix pipeline with id [*] does not exists (elastic#116707)

# Conflicts:
#	x-pack/test/fleet_api_integration/apis/epm/install_by_upload.ts

* Fix tests
  • Loading branch information
nchaulet authored Nov 1, 2021
1 parent 4739590 commit 5b44541
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export const getEsPackage = async (
dataStreams.push({
dataset: dataset || `${pkgName}.${dataStreamPath}`,
package: pkgName,
ingest_pipeline: ingestPipeline || 'default',
ingest_pipeline: ingestPipeline,
path: dataStreamPath,
streams,
...dataStreamManifestProps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ export function parseAndVerifyDataStreams(
}
const streams = parseAndVerifyStreams(manifestStreams, dataStreamPath);

// default ingest pipeline name see https://github.com/elastic/package-registry/blob/master/util/dataset.go#L26
dataStreams.push(
Object.entries(restOfProps).reduce(
(validatedDataStream, [key, value]) => {
Expand All @@ -233,7 +232,7 @@ export function parseAndVerifyDataStreams(
type,
package: pkgName,
dataset: dataset || `${pkgName}.${dataStreamPath}`,
ingest_pipeline: ingestPipeline || 'default',
ingest_pipeline: ingestPipeline,
path: dataStreamPath,
streams,
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default function (providerContext: FtrProviderContext) {
.type('application/gzip')
.send(buf)
.expect(200);
expect(res.body.response.length).to.be(26);
expect(res.body.response.length).to.be(24);
});

it('should install a zip archive correctly and package info should return correctly after validation', async function () {
Expand All @@ -81,7 +81,7 @@ export default function (providerContext: FtrProviderContext) {
.type('application/zip')
.send(buf)
.expect(200);
expect(res.body.response.length).to.be(26);
expect(res.body.response.length).to.be(24);

const packageInfoRes = await supertest
.get(`/api/fleet/epm/packages/${testPkgKey}`)
Expand Down

0 comments on commit 5b44541

Please sign in to comment.