Skip to content

Commit

Permalink
[8.x] [Fleet] Fix install with streaming test (#199725) (#199792)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Fleet] Fix install with streaming test
(#199725)](#199725)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Nicolas
Chaulet","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-12T13:28:28Z","message":"[Fleet]
Fix install with streaming test
(#199725)","sha":"7e06f554363d2bf8fe5656062e34053284005943","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Fleet","v9.0.0","backport:version","v8.17.0"],"title":"[Fleet]
Fix install with streaming
test","number":199725,"url":"https://github.com/elastic/kibana/pull/199725","mergeCommit":{"message":"[Fleet]
Fix install with streaming test
(#199725)","sha":"7e06f554363d2bf8fe5656062e34053284005943"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199725","number":199725,"mergeCommit":{"message":"[Fleet]
Fix install with streaming test
(#199725)","sha":"7e06f554363d2bf8fe5656062e34053284005943"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nicolas Chaulet <[email protected]>
Co-authored-by: Dmitrii Shevchenko <[email protected]>
  • Loading branch information
3 people authored Nov 13, 2024
1 parent 82117f1 commit 53c1df2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export default function (providerContext: FtrProviderContext) {
return res?._source?.['epm-packages'] as Installation;
};

// Failing: See https://github.com/elastic/kibana/issues/199701
describe.skip('Installs a package using stream-based approach', () => {
describe('Installs a package using stream-based approach', () => {
skipIfNoDockerRegistry(providerContext);

before(async () => {
Expand All @@ -50,7 +49,8 @@ export default function (providerContext: FtrProviderContext) {
await uninstallPackage('security_detection_engine', '8.16.0');
});
it('should install security-rule assets from the package', async () => {
await installPackage('security_detection_engine', '8.16.0').expect(200);
// Force install to install an outdatded version
await installPackage('security_detection_engine', '8.16.0', { force: true }).expect(200);
const installationSO = await getInstallationSavedObject('security_detection_engine');
expect(installationSO?.installed_kibana).toEqual(
expect.arrayContaining([
Expand Down

0 comments on commit 53c1df2

Please sign in to comment.