Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Entity Analytics] Sort asset criticality by @timestamp by default + unskip serverless tests #200712

Merged
merged 4 commits into from
Nov 20, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class AssetCriticalityDataClient {
query,
size = DEFAULT_CRITICALITY_RESPONSE_SIZE,
from,
sort,
sort = ['@timestamp'], // without a default sort order the results are not deterministic which makes testing hard
}: {
query: ESFilter;
size?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default ({ getService }: FtrProviderContext) => {

const createRecords = () => createAssetCriticalityRecords(records, es);

it('@skipInServerless should return the first 10 asset criticality records if no args provided', async () => {
it(' should return the first 10 asset criticality records if no args provided', async () => {
await createRecords();

const { body } = await assetCriticalityRoutes.list();
Expand Down Expand Up @@ -259,7 +259,7 @@ export default ({ getService }: FtrProviderContext) => {
);
});

it('@skipInServerless should only return 1 asset criticality record if per_page=1', async () => {
it('should only return 1 asset criticality record if per_page=1', async () => {
await createRecords();

const { body } = await assetCriticalityRoutes.list({ per_page: 1 });
Expand All @@ -273,7 +273,7 @@ export default ({ getService }: FtrProviderContext) => {
expect(body.records[0].id_value).to.eql(records[0].id_value);
});

it('@skipInServerless should return the next 10 asset criticality records if page=2', async () => {
it('should return the next 10 asset criticality records if page=2', async () => {
await createRecords();

const { body } = await assetCriticalityRoutes.list({ page: 2 });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default ({ getService }: FtrProviderContext): void => {
);
});

it('@skipInServerlessMKI @skipInServerless starts the latest transform', async () => {
it('@skipInServerlessMKI starts the latest transform', async () => {
// Transform states that indicate the transform is running happily
const TRANSFORM_STARTED_STATES = ['started', 'indexing'];

Expand Down