Skip to content

Commit

Permalink
update_objects_spaces and disable_legacy_url_aliases tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elena-shostak committed Dec 31, 2024
1 parent f67a130 commit 06a8199
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ interface RawLegacyUrlAlias {
[LEGACY_URL_ALIAS_TYPE]: LegacyUrlAlias;
}

export const TEST_CASE_TARGET_TYPE = 'sharedtype';
export const TEST_CASE_TARGET_TYPE = 'index-pattern';
export const TEST_CASE_SOURCE_ID = 'space_1_only'; // two aliases exist for space_1_only: one in the default spacd=e, and one in space_2
const createRequest = ({ targetSpace, targetType, sourceId }: DisableLegacyUrlAliasesTestCase) => ({
aliases: [{ targetSpace, targetType, sourceId }],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface UpdateObjectsSpacesTestCase {
spacesToRemove: string[];
}

const TYPE = 'sharedtype';
const TYPE = 'index-pattern';
const createRequest = ({ objects, spacesToAdd, spacesToRemove }: UpdateObjectsSpacesTestCase) => ({
objects: objects.map(({ id }) => ({ type: TYPE, id })),
spacesToAdd,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function ({ loadTestFile, getService }: FtrProviderContext) {

// total runtime ~ 17m
loadTestFile(require.resolve('./get_shareable_references')); // ~ 30s
// loadTestFile(require.resolve('./update_objects_spaces')); // ~ 1m
// loadTestFile(require.resolve('./disable_legacy_url_aliases')); // ~ 30s
loadTestFile(require.resolve('./update_objects_spaces')); // ~ 1m
loadTestFile(require.resolve('./disable_legacy_url_aliases')); // ~ 30s
});
}

0 comments on commit 06a8199

Please sign in to comment.