Skip to content

Commit 9254fef

Browse files
committed
format test flows
1 parent 127ef07 commit 9254fef

File tree

5 files changed

+1591
-14
lines changed

5 files changed

+1591
-14
lines changed

src/appmixer/redis/artifacts/ai-artifacts/test-flows/test-flow-key-discovery.json

Lines changed: 402 additions & 1 deletion
Large diffs are not rendered by default.

src/appmixer/redis/artifacts/ai-artifacts/test-flows/test-flow-list-operations.json

Lines changed: 412 additions & 1 deletion
Large diffs are not rendered by default.
Lines changed: 308 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,308 @@
1-
{"name":"E2E Redis - pub-sub","description":"End-to-end test for Redis connector - tests pub/sub messaging functionality","flow":{"on-start":{"type":"appmixer.utils.controls.OnStart","x":100,"y":200,"source":{},"version":"1.0.0","config":{}},"set-variables":{"type":"appmixer.utils.controls.SetVariable","x":250,"y":200,"source":{"in":{"on-start":["out"]}},"version":"1.0.0","config":{"transform":{"in":{"on-start":{"out":{"type":"json2new","modifiers":{"variables":{}},"lambda":{"variables":{"ADD":[{"type":"text","name":"testChannel","text":"e2e-test-channel"},{"type":"text","name":"testMessage","text":"E2E Test Message"}]}}}}}}}},"before-all":{"type":"appmixer.utils.test.BeforeAll","x":400,"y":200,"source":{"in":{"set-variables":["out"]}},"version":"1.0.0","config":{}},"publish-message":{"type":"appmixer.redis.core.PublishMessage","x":550,"y":200,"source":{"in":{"before-all":["out"]}},"version":"1.0.0","config":{"transform":{"in":{"before-all":{"out":{"type":"json2new","modifiers":{"channel":{"var-channel":{"variable":"$.set-variables.out.testChannel","functions":[]}},"message":{"var-message":{"variable":"$.set-variables.out.testMessage","functions":[]}}},"lambda":{"channel":"{{{var-channel}}}","message":"{{{var-message}}}"}}}}}}},"assert-channel":{"type":"appmixer.utils.test.Assert","x":700,"y":100,"source":{"in":{"publish-message":["out"]}},"version":"1.0.0","config":{"transform":{"in":{"publish-message":{"out":{"type":"json2new","modifiers":{"expression":{"channel-check":{"variable":"$.publish-message.out.channel","functions":[]}}},"lambda":{"expression":{"AND":[{"field":"{{{channel-check}}}","assertion":"equal","expected":"e2e-test-channel"}]}}}}}}}},"assert-message":{"type":"appmixer.utils.test.Assert","x":700,"y":200,"source":{"in":{"publish-message":["out"]}},"version":"1.0.0","config":{"transform":{"in":{"publish-message":{"out":{"type":"json2new","modifiers":{"expression":{"message-check":{"variable":"$.publish-message.out.message","functions":[]}}},"lambda":{"expression":{"AND":[{"field":"{{{message-check}}}","assertion":"equal","expected":"E2E Test Message"}]}}}}}}}},"assert-subscribers":{"type":"appmixer.utils.test.Assert","x":700,"y":300,"source":{"in":{"publish-message":["out"]}},"version":"1.0.0","config":{"transform":{"in":{"publish-message":{"out":{"type":"json2new","modifiers":{"expression":{"subscribers-check":{"variable":"$.publish-message.out.subscribers","functions":[]}}},"lambda":{"expression":{"AND":[{"field":"{{{subscribers-check}}}","assertion":"notEmpty"}]}}}}}}}},"after-all":{"type":"appmixer.utils.test.AfterAll","x":850,"y":200,"source":{"in":{"assert-channel":["out"],"assert-message":["out"],"assert-subscribers":["out"]}},"version":"1.0.0","config":{"properties":{"timeout":30}}},"process-results":{"type":"appmixer.utils.test.ProcessE2EResults","x":1000,"y":200,"source":{"in":{"after-all":["out"]}},"version":"1.0.1","config":{"properties":{"successStoreId":"6977509a30d1bcf499dbcd3c","failedStoreId":"6977509a30d1bcf499dbcd3c"},"transform":{"in":{"after-all":{"out":{"type":"json2new","modifiers":{"recipients":{},"testCase":{},"result":{"result-var":{"variable":"$.after-all.out","functions":[]}}},"lambda":{"recipients":"test@appmixer.com","testCase":"E2E Redis - pub-sub","result":"{{{result-var}}}"}}}}}}}}}
1+
{
2+
"name": "E2E Redis - pub-sub",
3+
"description": "End-to-end test for Redis connector - tests pub/sub messaging functionality",
4+
"flow": {
5+
"on-start": {
6+
"type": "appmixer.utils.controls.OnStart",
7+
"x": 100,
8+
"y": 200,
9+
"source": {},
10+
"version": "1.0.0",
11+
"config": {}
12+
},
13+
"set-variables": {
14+
"type": "appmixer.utils.controls.SetVariable",
15+
"x": 250,
16+
"y": 200,
17+
"source": {
18+
"in": {
19+
"on-start": [
20+
"out"
21+
]
22+
}
23+
},
24+
"version": "1.0.0",
25+
"config": {
26+
"transform": {
27+
"in": {
28+
"on-start": {
29+
"out": {
30+
"type": "json2new",
31+
"modifiers": {
32+
"variables": {}
33+
},
34+
"lambda": {
35+
"variables": {
36+
"ADD": [
37+
{
38+
"type": "text",
39+
"name": "testChannel",
40+
"text": "e2e-test-channel"
41+
},
42+
{
43+
"type": "text",
44+
"name": "testMessage",
45+
"text": "E2E Test Message"
46+
}
47+
]
48+
}
49+
}
50+
}
51+
}
52+
}
53+
}
54+
}
55+
},
56+
"before-all": {
57+
"type": "appmixer.utils.test.BeforeAll",
58+
"x": 400,
59+
"y": 200,
60+
"source": {
61+
"in": {
62+
"set-variables": [
63+
"out"
64+
]
65+
}
66+
},
67+
"version": "1.0.0",
68+
"config": {}
69+
},
70+
"publish-message": {
71+
"type": "appmixer.redis.core.PublishMessage",
72+
"x": 550,
73+
"y": 200,
74+
"source": {
75+
"in": {
76+
"before-all": [
77+
"out"
78+
]
79+
}
80+
},
81+
"version": "1.0.0",
82+
"config": {
83+
"transform": {
84+
"in": {
85+
"before-all": {
86+
"out": {
87+
"type": "json2new",
88+
"modifiers": {
89+
"channel": {
90+
"var-channel": {
91+
"variable": "$.set-variables.out.testChannel",
92+
"functions": []
93+
}
94+
},
95+
"message": {
96+
"var-message": {
97+
"variable": "$.set-variables.out.testMessage",
98+
"functions": []
99+
}
100+
}
101+
},
102+
"lambda": {
103+
"channel": "{{{var-channel}}}",
104+
"message": "{{{var-message}}}"
105+
}
106+
}
107+
}
108+
}
109+
}
110+
}
111+
},
112+
"assert-channel": {
113+
"type": "appmixer.utils.test.Assert",
114+
"x": 700,
115+
"y": 100,
116+
"source": {
117+
"in": {
118+
"publish-message": [
119+
"out"
120+
]
121+
}
122+
},
123+
"version": "1.0.0",
124+
"config": {
125+
"transform": {
126+
"in": {
127+
"publish-message": {
128+
"out": {
129+
"type": "json2new",
130+
"modifiers": {
131+
"expression": {
132+
"channel-check": {
133+
"variable": "$.publish-message.out.channel",
134+
"functions": []
135+
}
136+
}
137+
},
138+
"lambda": {
139+
"expression": {
140+
"AND": [
141+
{
142+
"field": "{{{channel-check}}}",
143+
"assertion": "equal",
144+
"expected": "e2e-test-channel"
145+
}
146+
]
147+
}
148+
}
149+
}
150+
}
151+
}
152+
}
153+
}
154+
},
155+
"assert-message": {
156+
"type": "appmixer.utils.test.Assert",
157+
"x": 700,
158+
"y": 200,
159+
"source": {
160+
"in": {
161+
"publish-message": [
162+
"out"
163+
]
164+
}
165+
},
166+
"version": "1.0.0",
167+
"config": {
168+
"transform": {
169+
"in": {
170+
"publish-message": {
171+
"out": {
172+
"type": "json2new",
173+
"modifiers": {
174+
"expression": {
175+
"message-check": {
176+
"variable": "$.publish-message.out.message",
177+
"functions": []
178+
}
179+
}
180+
},
181+
"lambda": {
182+
"expression": {
183+
"AND": [
184+
{
185+
"field": "{{{message-check}}}",
186+
"assertion": "equal",
187+
"expected": "E2E Test Message"
188+
}
189+
]
190+
}
191+
}
192+
}
193+
}
194+
}
195+
}
196+
}
197+
},
198+
"assert-subscribers": {
199+
"type": "appmixer.utils.test.Assert",
200+
"x": 700,
201+
"y": 300,
202+
"source": {
203+
"in": {
204+
"publish-message": [
205+
"out"
206+
]
207+
}
208+
},
209+
"version": "1.0.0",
210+
"config": {
211+
"transform": {
212+
"in": {
213+
"publish-message": {
214+
"out": {
215+
"type": "json2new",
216+
"modifiers": {
217+
"expression": {
218+
"subscribers-check": {
219+
"variable": "$.publish-message.out.subscribers",
220+
"functions": []
221+
}
222+
}
223+
},
224+
"lambda": {
225+
"expression": {
226+
"AND": [
227+
{
228+
"field": "{{{subscribers-check}}}",
229+
"assertion": "notEmpty"
230+
}
231+
]
232+
}
233+
}
234+
}
235+
}
236+
}
237+
}
238+
}
239+
},
240+
"after-all": {
241+
"type": "appmixer.utils.test.AfterAll",
242+
"x": 850,
243+
"y": 200,
244+
"source": {
245+
"in": {
246+
"assert-channel": [
247+
"out"
248+
],
249+
"assert-message": [
250+
"out"
251+
],
252+
"assert-subscribers": [
253+
"out"
254+
]
255+
}
256+
},
257+
"version": "1.0.0",
258+
"config": {
259+
"properties": {
260+
"timeout": 30
261+
}
262+
}
263+
},
264+
"process-results": {
265+
"type": "appmixer.utils.test.ProcessE2EResults",
266+
"x": 1000,
267+
"y": 200,
268+
"source": {
269+
"in": {
270+
"after-all": [
271+
"out"
272+
]
273+
}
274+
},
275+
"version": "1.0.1",
276+
"config": {
277+
"properties": {
278+
"successStoreId": "6977509a30d1bcf499dbcd3c",
279+
"failedStoreId": "6977509a30d1bcf499dbcd3c"
280+
},
281+
"transform": {
282+
"in": {
283+
"after-all": {
284+
"out": {
285+
"type": "json2new",
286+
"modifiers": {
287+
"recipients": {},
288+
"testCase": {},
289+
"result": {
290+
"result-var": {
291+
"variable": "$.after-all.out",
292+
"functions": []
293+
}
294+
}
295+
},
296+
"lambda": {
297+
"recipients": "test@appmixer.com",
298+
"testCase": "E2E Redis - pub-sub",
299+
"result": "{{{result-var}}}"
300+
}
301+
}
302+
}
303+
}
304+
}
305+
}
306+
}
307+
}
308+
}

src/appmixer/redis/artifacts/ai-artifacts/test-flows/test-flow-string-operations.json

Lines changed: 459 additions & 1 deletion
Large diffs are not rendered by default.

src/appmixer/redis/core/GetInfo/component.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,43 +29,43 @@
2929
},
3030
{
3131
"label": "Redis Version",
32-
"value": "info.redis_version"
32+
"value": "redis_version"
3333
},
3434
{
3535
"label": "Redis Mode",
36-
"value": "info.redis_mode"
36+
"value": "redis_mode"
3737
},
3838
{
3939
"label": "Operating System",
40-
"value": "info.os"
40+
"value": "os"
4141
},
4242
{
4343
"label": "Memory Used (Human)",
44-
"value": "info.used_memory_human"
44+
"value": "used_memory_human"
4545
},
4646
{
4747
"label": "Maxmemory Policy",
48-
"value": "info.maxmemory_policy"
48+
"value": "maxmemory_policy"
4949
},
5050
{
5151
"label": "Connected Clients",
52-
"value": "info.connected_clients"
52+
"value": "connected_clients"
5353
},
5454
{
5555
"label": "Total Commands Processed",
56-
"value": "info.total_commands_processed"
56+
"value": "total_commands_processed"
5757
},
5858
{
5959
"label": "Uptime (Seconds)",
60-
"value": "info.uptime_in_seconds"
60+
"value": "uptime_in_seconds"
6161
},
6262
{
6363
"label": "Replication Role",
64-
"value": "info.role"
64+
"value": "role"
6565
},
6666
{
6767
"label": "Cluster Enabled",
68-
"value": "info.cluster_enabled"
68+
"value": "cluster_enabled"
6969
}
7070
]
7171
}

0 commit comments

Comments
 (0)