@fluidframework/azure-end-to-end-tests 2.80.0 → 2.81.0

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.
@@ -11,7 +11,6 @@ import { ConnectionState } from "@fluidframework/container-loader";
11
11
  import type { ContainerSchema, IFluidContainer } from "@fluidframework/fluid-static";
12
12
  import { SharedMap } from "@fluidframework/map/legacy";
13
13
  import { timeoutPromise } from "@fluidframework/test-utils/internal";
14
- import type { AxiosResponse } from "axios";
15
14
 
16
15
  import {
17
16
  createAzureClient,
@@ -49,7 +48,7 @@ for (const testOpts of testMatrix) {
49
48
  let container: IFluidContainer;
50
49
  let services: AzureContainerServices;
51
50
  if (isEphemeral) {
52
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
51
+ const containerResponse = await createContainerFromPayload(
53
52
  ephemeralSummaryTrees.findOriginalMember,
54
53
  "test-user-id-1",
55
54
  "test-user-name-1",
@@ -94,7 +93,7 @@ for (const testOpts of testMatrix) {
94
93
  let container: IFluidContainer;
95
94
  let services: AzureContainerServices;
96
95
  if (isEphemeral) {
97
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
96
+ const containerResponse = await createContainerFromPayload(
98
97
  ephemeralSummaryTrees.findPartnerMember,
99
98
  "test-user-id-1",
100
99
  "test-user-name-1",
@@ -158,7 +157,7 @@ for (const testOpts of testMatrix) {
158
157
  let containerId: string;
159
158
  let container: IFluidContainer;
160
159
  if (isEphemeral) {
161
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
160
+ const containerResponse = await createContainerFromPayload(
162
161
  ephemeralSummaryTrees.observeMemberLeaving,
163
162
  "test-user-id-1",
164
163
  "test-user-name-1",
@@ -217,7 +216,7 @@ for (const testOpts of testMatrix) {
217
216
  let container: IFluidContainer;
218
217
  let services: AzureContainerServices;
219
218
  if (isEphemeral) {
220
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
219
+ const containerResponse = await createContainerFromPayload(
221
220
  ephemeralSummaryTrees.observeMemberLeaving,
222
221
  "test-user-id-1",
223
222
  "test-user-name-1",
@@ -326,7 +325,7 @@ for (const testOpts of testMatrix) {
326
325
  let containerId: string;
327
326
  let container: IFluidContainer;
328
327
  if (isEphemeral) {
329
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
328
+ const containerResponse = await createContainerFromPayload(
330
329
  ephemeralSummaryTrees.observeMemberLeaving,
331
330
  "test-user-id-1",
332
331
  "test-user-name-1",
@@ -26,7 +26,6 @@ import { SharedMap as SharedMapLegacy } from "@fluidframework/map-legacy";
26
26
  import { MockLogger, UsageError } from "@fluidframework/telemetry-utils/internal";
27
27
  import { timeoutPromise } from "@fluidframework/test-utils/internal";
28
28
  import { SharedTree } from "@fluidframework/tree/legacy";
29
- import type { AxiosResponse } from "axios";
30
29
  import type { SinonSandbox } from "sinon";
31
30
  import { createSandbox } from "sinon";
32
31
 
@@ -96,7 +95,7 @@ for (const testOpts of testMatrix) {
96
95
  let containerId: string;
97
96
  let container: IFluidContainer;
98
97
  if (isEphemeral) {
99
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
98
+ const containerResponse = await createContainerFromPayload(
100
99
  ephemeralSummaryTrees.canAttachContainer,
101
100
  "test-user-id-1",
102
101
  "test-user-name-1",
@@ -133,7 +132,7 @@ for (const testOpts of testMatrix) {
133
132
  let containerId: string;
134
133
  let container: IFluidContainer;
135
134
  if (isEphemeral) {
136
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
135
+ const containerResponse = await createContainerFromPayload(
137
136
  ephemeralSummaryTrees.cannotAttachContainerTwice,
138
137
  "test-user-id-1",
139
138
  "test-user-name-1",
@@ -175,7 +174,7 @@ for (const testOpts of testMatrix) {
175
174
  let containerId: string;
176
175
  let newContainer: IFluidContainer;
177
176
  if (isEphemeral) {
178
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
177
+ const containerResponse = await createContainerFromPayload(
179
178
  ephemeralSummaryTrees.retrieveExistingAFRContainer,
180
179
  "test-user-id-1",
181
180
  "test-user-name-1",
@@ -11,7 +11,6 @@ import type { IFluidHandle } from "@fluidframework/core-interfaces";
11
11
  import type { ContainerSchema, IFluidContainer } from "@fluidframework/fluid-static";
12
12
  import { type ISharedMap, SharedMap } from "@fluidframework/map/legacy";
13
13
  import { timeoutPromise } from "@fluidframework/test-utils/internal";
14
- import type { AxiosResponse } from "axios";
15
14
 
16
15
  import {
17
16
  createAzureClient,
@@ -49,7 +48,7 @@ for (const testOpts of testMatrix) {
49
48
  let containerId: string;
50
49
  let newContainer: IFluidContainer;
51
50
  if (isEphemeral) {
52
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
51
+ const containerResponse = await createContainerFromPayload(
53
52
  ephemeralSummaryTrees.setDDSesAsInitialObjectsForContainer,
54
53
  "test-user-id-1",
55
54
  "test-user-name-1",
@@ -92,7 +91,7 @@ for (const testOpts of testMatrix) {
92
91
  let containerId: string;
93
92
  let container: IFluidContainer;
94
93
  if (isEphemeral) {
95
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
94
+ const containerResponse = await createContainerFromPayload(
96
95
  ephemeralSummaryTrees.changeDDSesWithinInitialObjectsValue,
97
96
  "test-user-id-1",
98
97
  "test-user-name-1",
@@ -137,7 +136,7 @@ for (const testOpts of testMatrix) {
137
136
  let containerId: string;
138
137
  let container: IFluidContainer;
139
138
  if (isEphemeral) {
140
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
139
+ const containerResponse = await createContainerFromPayload(
141
140
  ephemeralSummaryTrees.setDataObjectsAsInitialObjectsForContainer,
142
141
  "test-user-id-1",
143
142
  "test-user-name-1",
@@ -200,7 +199,7 @@ for (const testOpts of testMatrix) {
200
199
  let containerId: string;
201
200
  let container: IFluidContainer;
202
201
  if (isEphemeral) {
203
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
202
+ const containerResponse = await createContainerFromPayload(
204
203
  ephemeralSummaryTrees.useMultipleDataObjectsOfSameType,
205
204
  "test-user-id-1",
206
205
  "test-user-name-1",
@@ -268,7 +267,7 @@ for (const testOpts of testMatrix) {
268
267
  let containerId: string;
269
268
  let container: IFluidContainer;
270
269
  if (isEphemeral) {
271
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
270
+ const containerResponse = await createContainerFromPayload(
272
271
  ephemeralSummaryTrees.changeDataObjectsWithinInitialObjectsValue,
273
272
  "test-user-id-1",
274
273
  "test-user-name-1",
@@ -328,7 +327,7 @@ for (const testOpts of testMatrix) {
328
327
  let containerId: string;
329
328
  let container: IFluidContainer;
330
329
  if (isEphemeral) {
331
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
330
+ const containerResponse = await createContainerFromPayload(
332
331
  ephemeralSummaryTrees.createAddLoadableObjectsDynamically,
333
332
  "test-user-id-1",
334
333
  "test-user-name-1",
@@ -10,7 +10,6 @@ import { AttachState } from "@fluidframework/container-definitions";
10
10
  import { ConnectionState } from "@fluidframework/container-loader";
11
11
  import type { ContainerSchema, IFluidContainer } from "@fluidframework/fluid-static";
12
12
  import { timeoutPromise } from "@fluidframework/test-utils/internal";
13
- import type { AxiosResponse } from "axios";
14
13
 
15
14
  import {
16
15
  createAzureClient,
@@ -103,12 +102,11 @@ for (const testOpts of testMatrix) {
103
102
  let containerId: string;
104
103
  if (id === undefined) {
105
104
  if (isEphemeral) {
106
- const containerResponse: AxiosResponse | undefined =
107
- await createContainerFromPayload(
108
- ephemeralSummaryTrees.sendAndRecieveSignals,
109
- "test-user-id-1",
110
- "test-user-name-1",
111
- );
105
+ const containerResponse = await createContainerFromPayload(
106
+ ephemeralSummaryTrees.sendAndRecieveSignals,
107
+ "test-user-id-1",
108
+ "test-user-name-1",
109
+ );
112
110
  containerId = getContainerIdFromPayloadResponse(containerResponse);
113
111
  ({ container, services } = await client.getContainer(containerId, schema, "2"));
114
112
  } else {
@@ -13,7 +13,6 @@ import type { Revertible, TreeView, ValidateRecursiveSchema } from "@fluidframew
13
13
  import { SchemaFactory, Tree, TreeStatus, TreeViewConfiguration } from "@fluidframework/tree";
14
14
  import { allowUnused, asAlpha } from "@fluidframework/tree/alpha";
15
15
  import { SharedTree } from "@fluidframework/tree/legacy";
16
- import type { AxiosResponse } from "axios";
17
16
 
18
17
  import {
19
18
  createAzureClient,
@@ -94,7 +93,7 @@ for (const testOpts of testMatrix) {
94
93
  containerId = await container.attach();
95
94
  await waitForConnection(container);
96
95
  } else {
97
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
96
+ const containerResponse = await createContainerFromPayload(
98
97
  summaryTree,
99
98
  "test-user-id-1",
100
99
  "test-user-name-1",
@@ -294,7 +293,6 @@ for (const testOpts of testMatrix) {
294
293
 
295
294
  it("can listen to events on a recursive tree", async () => {
296
295
  class Doll extends sf.objectRecursive("Matryoshka", {
297
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type
298
296
  nested: sf.optionalRecursive([() => Doll]),
299
297
  }) {}
300
298
  allowUnused<ValidateRecursiveSchema<typeof Doll>>();
@@ -10,7 +10,6 @@ import { ConnectionState } from "@fluidframework/container-loader";
10
10
  import type { ContainerSchema, IFluidContainer } from "@fluidframework/fluid-static";
11
11
  import { SharedMap } from "@fluidframework/map/legacy";
12
12
  import { timeoutPromise } from "@fluidframework/test-utils/internal";
13
- import type { AxiosResponse } from "axios";
14
13
 
15
14
  import {
16
15
  createAzureClient,
@@ -58,7 +57,7 @@ for (const testOpts of testMatrix) {
58
57
  let containerId: string;
59
58
  let container: IFluidContainer;
60
59
  if (isEphemeral) {
61
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
60
+ const containerResponse = await createContainerFromPayload(
62
61
  ephemeralSummaryTrees.getVersionsOfCurrentDocument,
63
62
  "test-user-id-1",
64
63
  "test-user-name-1",
@@ -120,7 +119,7 @@ for (const testOpts of testMatrix) {
120
119
  let containerId: string;
121
120
  let container: IFluidContainer;
122
121
  if (isEphemeral) {
123
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
122
+ const containerResponse = await createContainerFromPayload(
124
123
  ephemeralSummaryTrees.copyDocumentSuccessfully,
125
124
  "test-user-id-1",
126
125
  "test-user-name-1",
@@ -164,7 +163,7 @@ for (const testOpts of testMatrix) {
164
163
  const testKey = "new-key";
165
164
  const expectedValue = "expected-value";
166
165
  if (isEphemeral) {
167
- const containerResponse: AxiosResponse | undefined = await createContainerFromPayload(
166
+ const containerResponse = await createContainerFromPayload(
168
167
  ephemeralSummaryTrees.copyDDSValuesWhenCopyingContainer,
169
168
  "test-user-id-1",
170
169
  "test-user-name-1",
package/.eslintrc.cjs DELETED
@@ -1,64 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
-
6
- const importInternalModulesAllowedForTest = [
7
- // Allow import of Fluid Framework external API exports.
8
- "@fluidframework/*/{beta,alpha,legacy}",
9
- "fluid-framework/{beta,alpha,legacy}",
10
-
11
- // Allow import of Fluid Framework non-production test-utils APIs.
12
- "@fluidframework/*/test-utils",
13
-
14
- // Allow imports from sibling and ancestral sibling directories,
15
- // but not from cousin directories. Parent is allowed but only
16
- // because there isn't a known way to deny it.
17
- "*/index.js",
18
-
19
- // Should `telemetry-utils` provide support through `/test-utils` instead of `/internal`?
20
- "@fluidframework/telemetry-utils/internal",
21
-
22
- // Should `test-*utils` provide support through `/test-utils` instead of `/internal`?
23
- "@fluidframework/test-utils/internal",
24
- "@fluidframework/test-runtime-utils/internal",
25
- ];
26
-
27
- module.exports = {
28
- extends: [require.resolve("@fluidframework/eslint-config-fluid"), "prettier"],
29
- rules: {
30
- "prefer-arrow-callback": "off",
31
- "@typescript-eslint/strict-boolean-expressions": "off", // requires strictNullChecks=true in tsconfig
32
-
33
- // #region TODO: remove these once this config has been updated to use our "recommended" base instead of our deprecated minimal one.
34
- "@typescript-eslint/consistent-type-exports": [
35
- "error",
36
- { fixMixedExportsWithInlineTypeSpecifier: true },
37
- ],
38
- "@typescript-eslint/consistent-type-imports": [
39
- "error",
40
- { fixStyle: "inline-type-imports" },
41
- ],
42
- "@typescript-eslint/no-import-type-side-effects": "error",
43
- // #endregion
44
- },
45
- overrides: [
46
- {
47
- // Rules only for test files
48
- files: ["*.spec.ts", "*.test.ts", "**/test/**"],
49
- rules: {
50
- // Some deprecated APIs are permissible in tests; use `warn` to keep them visible
51
- "import-x/no-deprecated": "warn",
52
- "import-x/no-internal-modules": [
53
- "error",
54
- {
55
- allow: importInternalModulesAllowedForTest,
56
- },
57
- ],
58
- },
59
- },
60
- ],
61
- parserOptions: {
62
- project: ["./src/test/tsconfig.json"],
63
- },
64
- };