@elaraai/e3-api-tests 1.0.97 → 1.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/assertions.d.ts +11 -0
- package/dist/src/assertions.d.ts.map +1 -1
- package/dist/src/assertions.js +19 -3
- package/dist/src/assertions.js.map +1 -1
- package/dist/src/fixtures.d.ts +201 -1
- package/dist/src/fixtures.d.ts.map +1 -1
- package/dist/src/fixtures.js +257 -1
- package/dist/src/fixtures.js.map +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +12 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/suites/dataset-batches.d.ts +8 -0
- package/dist/src/suites/dataset-batches.d.ts.map +1 -0
- package/dist/src/suites/dataset-batches.js +346 -0
- package/dist/src/suites/dataset-batches.js.map +1 -0
- package/dist/src/suites/records-area.d.ts +8 -0
- package/dist/src/suites/records-area.d.ts.map +1 -0
- package/dist/src/suites/records-area.js +339 -0
- package/dist/src/suites/records-area.js.map +1 -0
- package/dist/src/suites/records-keyed.d.ts.map +1 -1
- package/dist/src/suites/records-keyed.js +8 -5
- package/dist/src/suites/records-keyed.js.map +1 -1
- package/dist/src/suites/records-place.d.ts +8 -0
- package/dist/src/suites/records-place.d.ts.map +1 -0
- package/dist/src/suites/records-place.js +341 -0
- package/dist/src/suites/records-place.js.map +1 -0
- package/dist/src/suites/records-series.d.ts +8 -0
- package/dist/src/suites/records-series.d.ts.map +1 -0
- package/dist/src/suites/records-series.js +280 -0
- package/dist/src/suites/records-series.js.map +1 -0
- package/package.json +10 -10
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Licensed under BSL 1.1. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* A record read in two dimensions (#1039): a block of presses over a span of
|
|
7
|
+
* weeks, read through a series index (`e3.recordIndex.series`) as a search a
|
|
8
|
+
* week in one request (`findKeys`) and the runs they select, from the index
|
|
9
|
+
* alone — each entry carries its job's row whole — and, zoomed out, the totals
|
|
10
|
+
* a summary index (`e3.recordIndex.summary`) keeps under each week and press:
|
|
11
|
+
* how many jobs touch it, and the milliseconds of it they cover.
|
|
12
|
+
*
|
|
13
|
+
* The suite works out each job's weeks itself, as its keys are filed — a week
|
|
14
|
+
* from its Monday, in UTC, half-open — so what a server answers is held to a
|
|
15
|
+
* brute force: under each week, the block's jobs that touch it and no other,
|
|
16
|
+
* each once with its row, at one content hash; and each total, the jobs that
|
|
17
|
+
* touch its week on its press and the time of it they cover. Then a job moved
|
|
18
|
+
* to another week, read and totalled where it went, and a joined read, a
|
|
19
|
+
* placement and a membership read of the summary refused.
|
|
20
|
+
*/
|
|
21
|
+
import { describe, it } from 'node:test';
|
|
22
|
+
import assert from 'node:assert/strict';
|
|
23
|
+
import { readFileSync } from 'node:fs';
|
|
24
|
+
import { ArrayType, DateTimeType, IntegerType, NullType, OptionType, PatchType, SortedMap, StringType, StructType, compareFor, decodeBeast2For, diffFor, encodeBeast2For, equalFor, isTypeEqual, isTypeValueEqual, none, printFor, toEastTypeValue, variant, } from '@elaraai/east';
|
|
25
|
+
import { RecordSummaryTotalsType, indexWindowType } from '@elaraai/e3-types';
|
|
26
|
+
import { ApiError, packageImport, workspaceCreate, workspaceDeploy, workspaceRecordDescribe, workspaceRecordMutate, datasetFindKeys, datasetGet, datasetGetPage, datasetGetRuns, datasetGetStatus, datasetPlace, datasetWithin, } from '@elaraai/e3-api-client';
|
|
27
|
+
import { assertMutationCommitted } from '../assertions.js';
|
|
28
|
+
import { createSeriesRecordPackageZip, JOBS_FROM, JobRowType, JobsType, JobWeekPressKeyType } from '../fixtures.js';
|
|
29
|
+
const PKG = 'series-record-pkg';
|
|
30
|
+
const VERSION = '1.0.0';
|
|
31
|
+
const WS = 'series-record-ws';
|
|
32
|
+
const jobsPath = [variant('field', 'records'), variant('field', 'jobs')];
|
|
33
|
+
/** How many jobs the record holds: more than a segment's 4,096 entries at
|
|
34
|
+
* most, so the series spans segments, and its searches and runs cross them. */
|
|
35
|
+
const JOBS = 6000n;
|
|
36
|
+
/** The series index, and the summary beside it. */
|
|
37
|
+
const SERIES = 'jobs_by_press_week';
|
|
38
|
+
const TOTALS = 'jobs_by_press_week_totals';
|
|
39
|
+
/** A series window's entries: the job's key under a week and a press, its row carried whole. The first test holds it to `indexWindowType`. */
|
|
40
|
+
const SeriesWindowType = ArrayType(StructType({ ik: JobWeekPressKeyType, key: StringType, value: JobRowType, row: OptionType(JobRowType) }));
|
|
41
|
+
/** A summary window's entries: each week and press, standing for every job of it — its `key` Null — with its totals. */
|
|
42
|
+
const TotalsWindowType = ArrayType(StructType({ ik: JobWeekPressKeyType, key: NullType, value: RecordSummaryTotalsType, row: OptionType(JobRowType) }));
|
|
43
|
+
const encodeInt = encodeBeast2For(IntegerType);
|
|
44
|
+
const encodePatch = encodeBeast2For(PatchType(JobsType));
|
|
45
|
+
const decodeJobs = decodeBeast2For(JobsType);
|
|
46
|
+
const decodeSeriesWindow = decodeBeast2For(SeriesWindowType);
|
|
47
|
+
const decodeTotalsWindow = decodeBeast2For(TotalsWindowType);
|
|
48
|
+
const printDateTime = printFor(DateTimeType);
|
|
49
|
+
const printString = printFor(StringType);
|
|
50
|
+
/** A summary entry's key, `(ik=…, k=null)`, as a membership read names one. */
|
|
51
|
+
const printTotalsEntryKey = printFor(StructType({ ik: JobWeekPressKeyType, k: NullType }));
|
|
52
|
+
const jobEqual = equalFor(JobRowType);
|
|
53
|
+
const unjoined = equalFor(OptionType(JobRowType));
|
|
54
|
+
const integerEqual = equalFor(IntegerType);
|
|
55
|
+
const dateTimeEqual = equalFor(DateTimeType);
|
|
56
|
+
const stringEqual = equalFor(StringType);
|
|
57
|
+
const stringOrder = compareFor(StringType);
|
|
58
|
+
const weekPressOrder = compareFor(JobWeekPressKeyType);
|
|
59
|
+
/** A week, in milliseconds. */
|
|
60
|
+
const WEEK_MS = 7 * 86_400_000;
|
|
61
|
+
/** The week holding an instant, by its start: whole weeks from {@link JOBS_FROM}, a Monday. */
|
|
62
|
+
function weekHolding(ms) {
|
|
63
|
+
return JOBS_FROM.getTime() + Math.floor((ms - JOBS_FROM.getTime()) / WEEK_MS) * WEEK_MS;
|
|
64
|
+
}
|
|
65
|
+
/** The weeks a job touches, half-open, by each one's start, with the milliseconds of each it covers. */
|
|
66
|
+
function weeksOf(job) {
|
|
67
|
+
const start = job.start.getTime();
|
|
68
|
+
const end = job.end.getTime();
|
|
69
|
+
if (end <= start)
|
|
70
|
+
return [{ week: new Date(weekHolding(start)), ms: 0n }];
|
|
71
|
+
const weeks = [];
|
|
72
|
+
for (let week = weekHolding(start); week < end; week += WEEK_MS) {
|
|
73
|
+
weeks.push({ week: new Date(week), ms: BigInt(Math.min(week + WEEK_MS, end) - Math.max(week, start)) });
|
|
74
|
+
}
|
|
75
|
+
return weeks;
|
|
76
|
+
}
|
|
77
|
+
/** The totals a summary of `jobs` holds, worked out from them: under each week and press, the jobs touching it and the time of it they cover. */
|
|
78
|
+
function totalsOf(jobs) {
|
|
79
|
+
const totals = new SortedMap(undefined, weekPressOrder);
|
|
80
|
+
for (const job of jobs.values()) {
|
|
81
|
+
for (const { week, ms } of weeksOf(job)) {
|
|
82
|
+
const key = { __tile: week, press: job.press };
|
|
83
|
+
const held = totals.get(key) ?? { count: 0n, ms: 0n };
|
|
84
|
+
totals.set(key, { count: held.count + 1n, ms: held.ms + ms });
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return totals;
|
|
88
|
+
}
|
|
89
|
+
/** A week's search over a block of presses: from the block's first press to the one after its last, under the week. */
|
|
90
|
+
function blockSearch(week, from, to) {
|
|
91
|
+
return { from: [printDateTime(week), printString(from)], to: [printDateTime(week), printString(to)] };
|
|
92
|
+
}
|
|
93
|
+
/** Whether a press is in the block `[from, to)`. */
|
|
94
|
+
function inBlock(press, from, to) {
|
|
95
|
+
return stringOrder(press, from) >= 0 && stringOrder(press, to) < 0;
|
|
96
|
+
}
|
|
97
|
+
export function seriesRecordTests(setup) {
|
|
98
|
+
/** A deployed record of {@link JOBS} jobs, the content hash it holds, and its jobs as it holds them. */
|
|
99
|
+
const withJobs = async (t) => {
|
|
100
|
+
const ctx = await setup(t);
|
|
101
|
+
const opts = await ctx.opts();
|
|
102
|
+
const zipPath = await createSeriesRecordPackageZip(ctx.tempDir, PKG, VERSION);
|
|
103
|
+
await packageImport(ctx.config.baseUrl, ctx.repoName, readFileSync(zipPath), opts);
|
|
104
|
+
await workspaceCreate(ctx.config.baseUrl, ctx.repoName, WS, opts);
|
|
105
|
+
await workspaceDeploy(ctx.config.baseUrl, ctx.repoName, WS, `${PKG}@${VERSION}`, opts);
|
|
106
|
+
const seeded = await workspaceRecordMutate(ctx.config.baseUrl, ctx.repoName, WS, 'jobs', 'seed', { args: [encodeInt(JOBS)], actor: none, limits: none }, opts);
|
|
107
|
+
assertMutationCommitted(seeded, 'seeding');
|
|
108
|
+
return { ctx, hash: await hashOf(ctx), jobs: await jobsOf(ctx) };
|
|
109
|
+
};
|
|
110
|
+
/** The content hash the record holds now. */
|
|
111
|
+
const hashOf = async (ctx) => {
|
|
112
|
+
const status = await datasetGetStatus(ctx.config.baseUrl, ctx.repoName, WS, jobsPath, await ctx.opts());
|
|
113
|
+
assert.ok(status.hash.type === 'some', 'the record holds a state');
|
|
114
|
+
return status.hash.value;
|
|
115
|
+
};
|
|
116
|
+
/** The record's jobs, read whole through the ordinary dataset door. */
|
|
117
|
+
const jobsOf = async (ctx) => {
|
|
118
|
+
const { data } = await datasetGet(ctx.config.baseUrl, ctx.repoName, WS, jobsPath, await ctx.opts());
|
|
119
|
+
return decodeJobs(data);
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* The series entries a block's searches select: the searches in one
|
|
123
|
+
* request, then the runs they select, read on until every entry is in hand —
|
|
124
|
+
* each at the hash given, and none joined.
|
|
125
|
+
*/
|
|
126
|
+
const readSeries = async (ctx, searches, hash) => {
|
|
127
|
+
const opts = await ctx.opts();
|
|
128
|
+
const base = [ctx.config.baseUrl, ctx.repoName, WS, jobsPath];
|
|
129
|
+
const found = await datasetFindKeys(...base, { queries: searches, index: SERIES, hash }, opts);
|
|
130
|
+
assert.equal(found.hash, hash, 'every search is answered at the content pinned');
|
|
131
|
+
assert.equal(found.results.length, searches.length, 'an answer a search');
|
|
132
|
+
let rest = found.results.filter((result) => result.count > 0)
|
|
133
|
+
.map((result) => [result.row, result.count]).sort((a, b) => a[0] - b[0]);
|
|
134
|
+
const entries = [];
|
|
135
|
+
while (rest.length > 0) {
|
|
136
|
+
const read = await datasetGetRuns(...base, { runs: rest, hash, index: SERIES }, opts);
|
|
137
|
+
assert.equal(read.hash, hash, 'the runs are read at the content pinned');
|
|
138
|
+
assert.ok(read.count > 0, 'a read of runs answers some of their entries');
|
|
139
|
+
entries.push(...decodeSeriesWindow(read.data));
|
|
140
|
+
// The runs named, less the entries in hand.
|
|
141
|
+
let taken = read.count;
|
|
142
|
+
const next = [];
|
|
143
|
+
for (const [row, count] of rest) {
|
|
144
|
+
if (taken >= count) {
|
|
145
|
+
taken -= count;
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
next.push([row + taken, count - taken]);
|
|
149
|
+
taken = 0;
|
|
150
|
+
}
|
|
151
|
+
rest = next;
|
|
152
|
+
}
|
|
153
|
+
return entries;
|
|
154
|
+
};
|
|
155
|
+
/** Every total the summary holds, paged through at the hash given. */
|
|
156
|
+
const readTotals = async (ctx, hash) => {
|
|
157
|
+
const opts = await ctx.opts();
|
|
158
|
+
const base = [ctx.config.baseUrl, ctx.repoName, WS, jobsPath];
|
|
159
|
+
const entries = [];
|
|
160
|
+
for (let offset = 0;;) {
|
|
161
|
+
const page = await datasetGetPage(...base, { offset, limit: 1_000, index: TOTALS, hash }, opts);
|
|
162
|
+
assert.equal(page.hash, hash, 'the totals are read at the content pinned');
|
|
163
|
+
entries.push(...decodeTotalsWindow(page.data));
|
|
164
|
+
offset += page.count;
|
|
165
|
+
if (page.count === 0 || offset >= page.totalElements)
|
|
166
|
+
return entries;
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
/** Holds every total read to the ones the jobs give, each once, none joined. */
|
|
170
|
+
const assertTotals = (read, jobs) => {
|
|
171
|
+
const expected = totalsOf(jobs);
|
|
172
|
+
assert.equal(read.length, expected.size, 'a total for each week and press a job touches, and no other');
|
|
173
|
+
for (const entry of read) {
|
|
174
|
+
const at = `${printDateTime(entry.ik.__tile)} on ${entry.ik.press}`;
|
|
175
|
+
const want = expected.get(entry.ik);
|
|
176
|
+
assert.ok(want !== undefined, `the summary holds a total for ${at}, which a job touches`);
|
|
177
|
+
assert.ok(integerEqual(entry.value.count, want.count), `the jobs touching ${at}: ${entry.value.count} read, ${want.count} there`);
|
|
178
|
+
assert.ok(integerEqual(entry.value.ms, want.ms), `the time they cover of ${at}: ${entry.value.ms} ms read, ${want.ms} there`);
|
|
179
|
+
assert.ok(unjoined(entry.row, none), `${at} names no row`);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
describe('records read in two dimensions', { concurrency: false }, () => {
|
|
183
|
+
it('describes its series index carrying its rows and its summary holding its totals, both built, keyed by a week then a press', async (t) => {
|
|
184
|
+
const { ctx, hash } = await withJobs(t);
|
|
185
|
+
const opts = await ctx.opts();
|
|
186
|
+
const sig = await workspaceRecordDescribe(ctx.config.baseUrl, ctx.repoName, WS, 'jobs', opts);
|
|
187
|
+
assert.deepEqual(sig.indexes.map(({ name, multi, summary, built }) => [name, multi, summary, built]), [[SERIES, true, false, true], [TOTALS, true, true, true]]);
|
|
188
|
+
for (const index of sig.indexes) {
|
|
189
|
+
assert.ok(isTypeValueEqual(index.keyType, toEastTypeValue(JobWeekPressKeyType)), `${index.name} is keyed by a week, then a press`);
|
|
190
|
+
}
|
|
191
|
+
assert.ok(isTypeValueEqual(sig.indexes[0].valueType, toEastTypeValue(JobRowType)), 'the series carries the row whole');
|
|
192
|
+
assert.ok(isTypeValueEqual(sig.indexes[1].valueType, toEastTypeValue(RecordSummaryTotalsType)), 'the summary holds its totals');
|
|
193
|
+
assert.ok(isTypeEqual(SeriesWindowType, indexWindowType(StringType, JobWeekPressKeyType, JobRowType, JobRowType)), 'the series window is e3-types\' index window');
|
|
194
|
+
assert.ok(isTypeEqual(TotalsWindowType, indexWindowType(NullType, JobWeekPressKeyType, RecordSummaryTotalsType, JobRowType)), 'the summary\'s is too, its key Null');
|
|
195
|
+
const page = await datasetGetPage(ctx.config.baseUrl, ctx.repoName, WS, jobsPath, { offset: 0, limit: 1, index: SERIES, hash }, opts);
|
|
196
|
+
assert.ok(page.segmentCount >= 2, `the series spans segments, got ${page.segmentCount}`);
|
|
197
|
+
});
|
|
198
|
+
it('reads a block of presses over three weeks from the series alone: a search a week, every job of the block touching it, each once with its row', async (t) => {
|
|
199
|
+
const { ctx, hash, jobs } = await withJobs(t);
|
|
200
|
+
const weeks = [0, 1, 2].map((w) => new Date(JOBS_FROM.getTime() + w * WEEK_MS));
|
|
201
|
+
const entries = await readSeries(ctx, weeks.map((week) => blockSearch(week, 'P-1005', 'P-1013')), hash);
|
|
202
|
+
assert.ok(entries.every((entry) => weeks.some((week) => dateTimeEqual(entry.ik.__tile, week))), 'only the weeks searched');
|
|
203
|
+
for (const week of weeks) {
|
|
204
|
+
const read = entries.filter((entry) => dateTimeEqual(entry.ik.__tile, week));
|
|
205
|
+
const keys = read.map((entry) => entry.key).sort(stringOrder);
|
|
206
|
+
assert.equal(new Set(keys).size, keys.length, 'each job once a week');
|
|
207
|
+
for (const entry of read) {
|
|
208
|
+
const job = jobs.get(entry.key);
|
|
209
|
+
assert.ok(job !== undefined && jobEqual(entry.value, job), `${entry.key}'s entry carries its row whole`);
|
|
210
|
+
assert.ok(unjoined(entry.row, none), `${entry.key} is read from the series alone, never joined`);
|
|
211
|
+
assert.ok(stringEqual(entry.ik.press, job.press), `${entry.key} is filed under its press`);
|
|
212
|
+
}
|
|
213
|
+
const expected = [...jobs]
|
|
214
|
+
.filter(([, job]) => inBlock(job.press, 'P-1005', 'P-1013') && weeksOf(job).some(({ week: touched }) => dateTimeEqual(touched, week)))
|
|
215
|
+
.map(([key]) => key).sort(stringOrder);
|
|
216
|
+
assert.ok(expected.length > 0, 'the block has jobs that week');
|
|
217
|
+
assert.deepEqual(keys, expected, `the block's jobs touching the week of ${printDateTime(week)}, and no other`);
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
it('totals each week and press as the jobs touching it and the time of it they cover, and refuses a joined read, a placement and a membership read', async (t) => {
|
|
221
|
+
const { ctx, hash, jobs } = await withJobs(t);
|
|
222
|
+
const opts = await ctx.opts();
|
|
223
|
+
const totals = await readTotals(ctx, hash);
|
|
224
|
+
assertTotals(totals, jobs);
|
|
225
|
+
// A summary's entry names no row: a joined read of it is refused.
|
|
226
|
+
const base = [ctx.config.baseUrl, ctx.repoName, WS, jobsPath];
|
|
227
|
+
for (const read of [
|
|
228
|
+
() => datasetGetPage(...base, { offset: 0, limit: 10, index: TOTALS, hash, join: true }, opts),
|
|
229
|
+
() => datasetGetRuns(...base, { runs: [[0, 10]], hash, index: TOTALS, join: true }, opts),
|
|
230
|
+
]) {
|
|
231
|
+
await assert.rejects(read, (err) => {
|
|
232
|
+
assert.ok(err instanceof ApiError && err.code === 'bad_request', `a joined read of a summary is refused, got ${String(err)}`);
|
|
233
|
+
assert.match(String(err.details), /index 'jobs_by_press_week_totals' of 'records\/jobs' is a summary: each entry stands for every row of its key and names none to join — read it without join/);
|
|
234
|
+
return true;
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
// Nor has it a row to place in a record segment, or to answer whether a narrowing holds.
|
|
238
|
+
const entryKey = printTotalsEntryKey({ ik: totals[0].ik, k: null });
|
|
239
|
+
for (const [read, unnamed] of [
|
|
240
|
+
[() => datasetPlace(...base, { index: TOTALS, runs: [[0, 10]], hash }, opts), 'to place in a record segment'],
|
|
241
|
+
[() => datasetWithin(...base, { index: TOTALS, runs: [[0, 10]], keys: [entryKey], hash }, opts), 'to answer whether a narrowing holds it'],
|
|
242
|
+
]) {
|
|
243
|
+
await assert.rejects(read, (err) => {
|
|
244
|
+
assert.ok(err instanceof ApiError && err.code === 'bad_request', `a summary is refused ${unnamed}, got ${String(err)}`);
|
|
245
|
+
assert.equal(String(err.details), `index 'jobs_by_press_week_totals' of 'records/jobs' is a summary: each entry stands for every row of its key and names none ${unnamed}`);
|
|
246
|
+
return true;
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
it('a job moved three weeks on leaves the week it left, in the series and the totals, and is read and totalled where it went', async (t) => {
|
|
251
|
+
const { ctx, hash, jobs } = await withJobs(t);
|
|
252
|
+
const opts = await ctx.opts();
|
|
253
|
+
const moved = 'job-7';
|
|
254
|
+
const job = jobs.get(moved);
|
|
255
|
+
const next = new SortedMap(jobs, stringOrder);
|
|
256
|
+
next.set(moved, { ...job, start: new Date(job.start.getTime() + 3 * WEEK_MS), end: new Date(job.end.getTime() + 3 * WEEK_MS) });
|
|
257
|
+
// Another session moves it, through the record's patch door.
|
|
258
|
+
const patched = await workspaceRecordMutate(ctx.config.baseUrl, ctx.repoName, WS, 'jobs', 'patch', { args: [encodePatch(diffFor(JobsType)(jobs, next))], actor: none, limits: none }, opts);
|
|
259
|
+
assertMutationCommitted(patched, 'the move');
|
|
260
|
+
const movedHash = await hashOf(ctx);
|
|
261
|
+
assert.notEqual(movedHash, hash, 'the move gives the record another state');
|
|
262
|
+
const now = await jobsOf(ctx);
|
|
263
|
+
assert.ok(jobEqual(now.get(moved), next.get(moved)), 'the record holds the job where it was moved to');
|
|
264
|
+
const exact = (week) => ({ fields: [printDateTime(week), printString(job.press)] });
|
|
265
|
+
const left = weeksOf(job).map(({ week }) => week);
|
|
266
|
+
const entered = weeksOf(next.get(moved)).map(({ week }) => week);
|
|
267
|
+
for (const week of left) {
|
|
268
|
+
const read = await readSeries(ctx, [exact(week)], movedHash);
|
|
269
|
+
assert.ok(!read.some((entry) => stringEqual(entry.key, moved)), `the moved job has left the week of ${printDateTime(week)}`);
|
|
270
|
+
}
|
|
271
|
+
for (const week of entered) {
|
|
272
|
+
const read = await readSeries(ctx, [exact(week)], movedHash);
|
|
273
|
+
const entry = read.find((e) => stringEqual(e.key, moved));
|
|
274
|
+
assert.ok(entry !== undefined && jobEqual(entry.value, next.get(moved)), `it is read in the week of ${printDateTime(week)}, its row as moved`);
|
|
275
|
+
}
|
|
276
|
+
assertTotals(await readTotals(ctx, movedHash), now);
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
//# sourceMappingURL=records-series.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records-series.js","sourceRoot":"","sources":["../../../src/suites/records-series.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EACL,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EACpH,eAAe,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,GAE7H,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EACL,QAAQ,EACR,aAAa,EACb,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,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AAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAE,CAAC,EAAE,6BAA6B,aAAa,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;YAClJ,CAAC;YACD,YAAY,CAAC,MAAM,UAAU,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,GAAG,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elaraai/e3-api-tests",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.98",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "East Execution Engine API Compliance Tests - shared test suites for e3 API implementations",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"node": ">=22.2.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elaraai/e3": "1.0.
|
|
37
|
-
"@elaraai/e3-
|
|
38
|
-
"@elaraai/e3-
|
|
39
|
-
"@elaraai/e3-
|
|
40
|
-
"@elaraai/
|
|
41
|
-
"@elaraai/
|
|
42
|
-
"@elaraai/east-node-std": "1.0.
|
|
36
|
+
"@elaraai/e3": "1.0.98",
|
|
37
|
+
"@elaraai/e3-api-client": "1.0.98",
|
|
38
|
+
"@elaraai/e3-core": "1.0.98",
|
|
39
|
+
"@elaraai/e3-types": "1.0.98",
|
|
40
|
+
"@elaraai/e3-cli": "1.0.98",
|
|
41
|
+
"@elaraai/east": "1.0.98",
|
|
42
|
+
"@elaraai/east-node-std": "1.0.98"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^22.0.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"eslint": "^9.0.0",
|
|
49
49
|
"eslint-plugin-headers": "^1.3.3",
|
|
50
50
|
"typescript": "^5.6.0",
|
|
51
|
-
"@elaraai/east-node-cli": "1.0.
|
|
52
|
-
"@elaraai/east-node-std": "1.0.
|
|
51
|
+
"@elaraai/east-node-cli": "1.0.98",
|
|
52
|
+
"@elaraai/east-node-std": "1.0.98"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsc",
|