Skip to content

Commit

Permalink
Remove unused startedAt variable
Browse files Browse the repository at this point in the history
  • Loading branch information
maryam-saeidi committed Feb 12, 2024
1 parent e0919ba commit 345a16b
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default function ({ getService }: FtrProviderContext) {
let actionId: string;
let ruleId: string;
let alertId: string;
let startedAt: string;

before(async () => {
dataForgeConfig = {
Expand Down Expand Up @@ -180,7 +179,6 @@ export default function ({ getService }: FtrProviderContext) {
ruleId,
});
alertId = (resp.hits.hits[0]._source as any)['kibana.alert.uuid'];
startedAt = (resp.hits.hits[0]._source as any)['kibana.alert.start'];

expect(resp.hits.hits[0]._source).property(
'kibana.alert.rule.category',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default function ({ getService }: FtrProviderContext) {
let actionId: string;
let ruleId: string;
let alertId: string;
let startedAt: string;

before(async () => {
await createDataView({
Expand Down Expand Up @@ -148,7 +147,6 @@ export default function ({ getService }: FtrProviderContext) {
ruleId,
});
alertId = (resp.hits.hits[0]._source as any)['kibana.alert.uuid'];
startedAt = (resp.hits.hits[0]._source as any)['kibana.alert.start'];

expect(resp.hits.hits[0]._source).property(
'kibana.alert.rule.category',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default function ({ getService }: FtrProviderContext) {
let actionId: string;
let ruleId: string;
let alertId: string;
let startedAt: string;

before(async () => {
synthtraceEsClient = await getSyntraceClient({ esClient, kibanaUrl });
Expand Down Expand Up @@ -159,7 +158,6 @@ export default function ({ getService }: FtrProviderContext) {
ruleId,
});
alertId = (resp.hits.hits[0]._source as any)['kibana.alert.uuid'];
startedAt = (resp.hits.hits[0]._source as any)['kibana.alert.start'];

expect(resp.hits.hits[0]._source).property(
'kibana.alert.rule.category',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default function ({ getService }: FtrProviderContext) {
let actionId: string;
let ruleId: string;
let alertId: string;
let startedAt: string;

before(async () => {
dataForgeConfig = {
Expand Down Expand Up @@ -177,7 +176,6 @@ export default function ({ getService }: FtrProviderContext) {
ruleId,
});
alertId = (resp.hits.hits[0]._source as any)['kibana.alert.uuid'];
startedAt = (resp.hits.hits[0]._source as any)['kibana.alert.start'];

expect(resp.hits.hits[0]._source).property(
'kibana.alert.rule.category',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export default function ({ getService }: FtrProviderContext) {
let actionId: string;
let ruleId: string;
let alertId: string;
let startedAt: string;

before(async () => {
dataForgeConfig = {
Expand Down Expand Up @@ -177,7 +176,6 @@ export default function ({ getService }: FtrProviderContext) {
ruleId,
});
alertId = (resp.hits.hits[0]._source as any)['kibana.alert.uuid'];
startedAt = (resp.hits.hits[0]._source as any)['kibana.alert.start'];

expect(resp.hits.hits[0]._source).property(
'kibana.alert.rule.category',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default function ({ getService }: FtrProviderContext) {
let actionId: string;
let ruleId: string;
let alertId: string;
let startedAt: string;

before(async () => {
dataForgeConfig = {
Expand Down Expand Up @@ -177,7 +176,6 @@ export default function ({ getService }: FtrProviderContext) {
ruleId,
});
alertId = (resp.hits.hits[0]._source as any)['kibana.alert.uuid'];
startedAt = (resp.hits.hits[0]._source as any)['kibana.alert.start'];

expect(resp.hits.hits[0]._source).property(
'kibana.alert.rule.category',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export default function ({ getService }: FtrProviderContext) {
let actionId: string;
let ruleId: string;
let alertId: string;
let startedAt: string;

before(async () => {
dataForgeConfig = {
Expand Down Expand Up @@ -175,7 +174,6 @@ export default function ({ getService }: FtrProviderContext) {
ruleId,
});
alertId = (resp.hits.hits[0]._source as any)['kibana.alert.uuid'];
startedAt = (resp.hits.hits[0]._source as any)['kibana.alert.start'];

expect(resp.hits.hits[0]._source).property(
'kibana.alert.rule.category',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default function ({ getService }: FtrProviderContext) {
let actionId: string;
let ruleId: string;
let alertId: string;
let startedAt: string;

before(async () => {
dataForgeConfig = {
Expand Down Expand Up @@ -173,7 +172,6 @@ export default function ({ getService }: FtrProviderContext) {
ruleId,
});
alertId = (resp.hits.hits[0]._source as any)['kibana.alert.uuid'];
startedAt = (resp.hits.hits[0]._source as any)['kibana.alert.start'];

expect(resp.hits.hits[0]._source).property(
'kibana.alert.rule.category',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default function ({ getService }: FtrProviderContext) {
const alertingApi = getService('alertingApi');
const dataViewApi = getService('dataViewApi');
let alertId: string;
let startedAt: string;

describe('Custom Threshold rule - GROUP_BY - FIRED', () => {
const CUSTOM_THRESHOLD_RULE_ALERT_INDEX = '.alerts-observability.threshold.alerts-default';
Expand Down Expand Up @@ -180,7 +179,6 @@ export default function ({ getService }: FtrProviderContext) {
ruleId,
});
alertId = (resp.hits.hits[0]._source as any)['kibana.alert.uuid'];
startedAt = (resp.hits.hits[0]._source as any)['kibana.alert.start'];

expect(resp.hits.hits[0]._source).property(
'kibana.alert.rule.category',
Expand Down

0 comments on commit 345a16b

Please sign in to comment.