diff --git a/.github/workflows/e2e_new.yaml b/.github/workflows/e2e_new.yaml index e5904298..aa9fb7f2 100644 --- a/.github/workflows/e2e_new.yaml +++ b/.github/workflows/e2e_new.yaml @@ -5,6 +5,8 @@ concurrency: cancel-in-progress: true on: + schedule: + - cron: '*/180 * * * *' workflow_dispatch: workflow_call: diff --git a/.github/workflows/e2e_scoutcloud.yaml b/.github/workflows/e2e_scoutcloud.yaml index 3c361272..d8be0b3d 100644 --- a/.github/workflows/e2e_scoutcloud.yaml +++ b/.github/workflows/e2e_scoutcloud.yaml @@ -5,6 +5,9 @@ concurrency: cancel-in-progress: true on: + push: + schedule: + - cron: '*/180 * * * *' workflow_dispatch: inputs: rpc_url: diff --git a/tests/e2e/tests/scoutcloud/ScoutCloud.test.ts b/tests/e2e/tests/scoutcloud/ScoutCloud.test.ts index 4f12ddc4..c819ada9 100644 --- a/tests/e2e/tests/scoutcloud/ScoutCloud.test.ts +++ b/tests/e2e/tests/scoutcloud/ScoutCloud.test.ts @@ -62,16 +62,17 @@ const getInstance = async (r, instance) => { } const deleteInstances = async (r, instances) => { - for (const i of instances['items']) { - l.info(`Removing instance: ${i['instance_id']}`) - const resp = await r.delete(`/api/v1/instances/${i['instance_id']}`) + for (const i of instances[`items`]) { + l.info(`Removing instance: ${i[`instance_id`]}`) + // eslint-disable-next-line no-await-in-loop + const resp = await r.delete(`/api/v1/instances/${i[`instance_id`]}`) + // eslint-disable-next-line no-await-in-loop const body = await resp.body() l.debug(`url requested: ${resp.url()}`) l.debug(`body: ${body}`) } } - const updateStatus = async (r, instance, cfg) => { const resp = await r.post(`/api/v1/instances/${instance}/status:update`, { data: cfg,