@durable-streams/client-conformance-tests 0.2.0 → 0.2.1
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/adapters/typescript-adapter.cjs +109 -33
- package/dist/adapters/typescript-adapter.js +110 -34
- package/dist/{benchmark-runner-DliEfq9k.cjs → benchmark-runner-BQiarXdy.cjs} +80 -2
- package/dist/{benchmark-runner-81waaCzs.js → benchmark-runner-IGT51RTF.js} +80 -2
- package/dist/cli.cjs +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +91 -3
- package/dist/index.d.ts +91 -3
- package/dist/index.js +2 -2
- package/dist/{protocol-BxZTqJmO.d.cts → protocol-9WN0gRRQ.d.ts} +97 -3
- package/dist/{protocol-1p0soayz.js → protocol-BnqUAMKe.js} +1 -0
- package/dist/{protocol-JuFzdV5x.d.ts → protocol-COHkkGmU.d.cts} +97 -3
- package/dist/{protocol-IioVPNaP.cjs → protocol-sDk3deGa.cjs} +1 -0
- package/dist/protocol.cjs +1 -1
- package/dist/protocol.d.cts +2 -2
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js +1 -1
- package/package.json +3 -3
- package/src/adapters/typescript-adapter.ts +175 -36
- package/src/protocol.ts +108 -0
- package/src/runner.ts +143 -0
- package/src/test-cases.ts +102 -0
- package/test-cases/consumer/message-ordering.yaml +1 -0
- package/test-cases/consumer/offset-handling.yaml +3 -0
- package/test-cases/consumer/read-sse-base64.yaml +663 -0
- package/test-cases/consumer/read-sse.yaml +6 -1
- package/test-cases/consumer/sse-parsing-errors.yaml +4 -0
- package/test-cases/consumer/streaming-equivalence.yaml +6 -0
- package/test-cases/lifecycle/stream-closure.yaml +759 -0
|
@@ -17,6 +17,7 @@ tests:
|
|
|
17
17
|
setup:
|
|
18
18
|
- action: create
|
|
19
19
|
as: streamPath
|
|
20
|
+
contentType: text/plain
|
|
20
21
|
- action: append
|
|
21
22
|
path: ${streamPath}
|
|
22
23
|
data: "existing1"
|
|
@@ -41,6 +42,7 @@ tests:
|
|
|
41
42
|
setup:
|
|
42
43
|
- action: create
|
|
43
44
|
as: streamPath
|
|
45
|
+
contentType: text/plain
|
|
44
46
|
- action: append
|
|
45
47
|
path: ${streamPath}
|
|
46
48
|
data: "initial"
|
|
@@ -76,6 +78,7 @@ tests:
|
|
|
76
78
|
setup:
|
|
77
79
|
- action: create
|
|
78
80
|
as: streamPath
|
|
81
|
+
contentType: text/plain
|
|
79
82
|
- action: append
|
|
80
83
|
path: ${streamPath}
|
|
81
84
|
data: "skip-this"
|
|
@@ -99,6 +102,7 @@ tests:
|
|
|
99
102
|
setup:
|
|
100
103
|
- action: create
|
|
101
104
|
as: streamPath
|
|
105
|
+
contentType: text/plain
|
|
102
106
|
- action: append
|
|
103
107
|
path: ${streamPath}
|
|
104
108
|
data: "data"
|
|
@@ -116,6 +120,7 @@ tests:
|
|
|
116
120
|
setup:
|
|
117
121
|
- action: create
|
|
118
122
|
as: streamPath
|
|
123
|
+
contentType: text/plain
|
|
119
124
|
operations:
|
|
120
125
|
- action: read
|
|
121
126
|
path: ${streamPath}
|
|
@@ -127,7 +132,7 @@ tests:
|
|
|
127
132
|
|
|
128
133
|
- id: sse-binary-data
|
|
129
134
|
name: SSE with binary data
|
|
130
|
-
description: SSE should correctly transmit binary data
|
|
135
|
+
description: SSE should correctly transmit binary data with auto-detected base64 encoding
|
|
131
136
|
setup:
|
|
132
137
|
- action: create
|
|
133
138
|
as: streamPath
|
|
@@ -17,6 +17,7 @@ tests:
|
|
|
17
17
|
setup:
|
|
18
18
|
- action: create
|
|
19
19
|
as: streamPath
|
|
20
|
+
contentType: text/plain
|
|
20
21
|
- action: append
|
|
21
22
|
path: ${streamPath}
|
|
22
23
|
data: "test-data"
|
|
@@ -44,6 +45,7 @@ tests:
|
|
|
44
45
|
setup:
|
|
45
46
|
- action: create
|
|
46
47
|
as: streamPath
|
|
48
|
+
contentType: text/plain
|
|
47
49
|
- action: append
|
|
48
50
|
path: ${streamPath}
|
|
49
51
|
data: "data-before-error"
|
|
@@ -71,6 +73,7 @@ tests:
|
|
|
71
73
|
setup:
|
|
72
74
|
- action: create
|
|
73
75
|
as: streamPath
|
|
76
|
+
contentType: text/plain
|
|
74
77
|
- action: append
|
|
75
78
|
path: ${streamPath}
|
|
76
79
|
data: "actual-data"
|
|
@@ -98,6 +101,7 @@ tests:
|
|
|
98
101
|
setup:
|
|
99
102
|
- action: create
|
|
100
103
|
as: streamPath
|
|
104
|
+
contentType: text/plain
|
|
101
105
|
- action: append
|
|
102
106
|
path: ${streamPath}
|
|
103
107
|
data: "expected-data"
|
|
@@ -15,6 +15,7 @@ tests:
|
|
|
15
15
|
setup:
|
|
16
16
|
- action: create
|
|
17
17
|
as: streamPath
|
|
18
|
+
contentType: text/plain
|
|
18
19
|
- action: append
|
|
19
20
|
path: ${streamPath}
|
|
20
21
|
data: "chunk1"
|
|
@@ -55,6 +56,7 @@ tests:
|
|
|
55
56
|
setup:
|
|
56
57
|
- action: create
|
|
57
58
|
as: streamPath
|
|
59
|
+
contentType: text/plain
|
|
58
60
|
- action: append
|
|
59
61
|
path: ${streamPath}
|
|
60
62
|
data: "before"
|
|
@@ -89,6 +91,7 @@ tests:
|
|
|
89
91
|
setup:
|
|
90
92
|
- action: create
|
|
91
93
|
as: streamPath
|
|
94
|
+
contentType: text/plain
|
|
92
95
|
operations:
|
|
93
96
|
# Read empty stream with long-poll
|
|
94
97
|
- action: read
|
|
@@ -116,6 +119,7 @@ tests:
|
|
|
116
119
|
setup:
|
|
117
120
|
- action: create
|
|
118
121
|
as: streamPath
|
|
122
|
+
contentType: text/plain
|
|
119
123
|
- action: append
|
|
120
124
|
path: ${streamPath}
|
|
121
125
|
data: "initial"
|
|
@@ -148,6 +152,7 @@ tests:
|
|
|
148
152
|
setup:
|
|
149
153
|
- action: create
|
|
150
154
|
as: streamPath
|
|
155
|
+
contentType: text/plain
|
|
151
156
|
- action: append
|
|
152
157
|
path: ${streamPath}
|
|
153
158
|
data: "initial"
|
|
@@ -178,6 +183,7 @@ tests:
|
|
|
178
183
|
setup:
|
|
179
184
|
- action: create
|
|
180
185
|
as: streamPath
|
|
186
|
+
contentType: text/plain
|
|
181
187
|
- action: append
|
|
182
188
|
path: ${streamPath}
|
|
183
189
|
data: "a"
|