Skip to content

Commit 2fd28aa

Browse files
committed
set minimum docker image version to 8
1 parent 06ac3c2 commit 2fd28aa

13 files changed

+70
-59
lines changed

packages/client/lib/commands/VADD.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ describe('VADD', () => {
6767
);
6868

6969
}, {
70-
client: GLOBAL.SERVERS.OPEN,
71-
cluster: GLOBAL.CLUSTERS.OPEN
70+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
71+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] },
7272
});
7373

7474
testUtils.testWithClient('vAdd with RESP3', async client => {
@@ -103,6 +103,7 @@ describe('VADD', () => {
103103
...GLOBAL.SERVERS.OPEN,
104104
clientOptions: {
105105
RESP: 3
106-
}
106+
},
107+
minimumDockerVersion: [8, 0]
107108
});
108109
});

packages/client/lib/commands/VCARD.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ describe('VCARD', () => {
2222

2323
assert.equal(await client.vCard('unknown'), 0);
2424
}, {
25-
client: GLOBAL.SERVERS.OPEN,
26-
cluster: GLOBAL.CLUSTERS.OPEN
25+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
26+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
2727
});
2828

2929
testUtils.testWithClient('vCard with RESP3', async client => {
@@ -52,6 +52,7 @@ describe('VCARD', () => {
5252
...GLOBAL.SERVERS.OPEN,
5353
clientOptions: {
5454
RESP: 3
55-
}
55+
},
56+
minimumDockerVersion: [8, 0]
5657
});
5758
});

packages/client/lib/commands/VDIM.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ describe('VDIM', () => {
1919
3
2020
);
2121
}, {
22-
client: GLOBAL.SERVERS.OPEN,
23-
cluster: GLOBAL.CLUSTERS.OPEN
22+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
23+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
2424
});
2525

2626
testUtils.testWithClient('vDim with RESP3', async client => {
@@ -35,6 +35,7 @@ describe('VDIM', () => {
3535
...GLOBAL.SERVERS.OPEN,
3636
clientOptions: {
3737
RESP: 3
38-
}
38+
},
39+
minimumDockerVersion: [8, 0]
3940
});
4041
});

packages/client/lib/commands/VEMB.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ describe('VEMB', () => {
1919
assert.equal(result.length, 3);
2020
assert.equal(typeof result[0], 'number');
2121
}, {
22-
client: GLOBAL.SERVERS.OPEN,
23-
cluster: GLOBAL.CLUSTERS.OPEN
22+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
23+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
2424
});
2525

2626
testUtils.testWithClient('vEmb with RESP3', async client => {
@@ -34,6 +34,7 @@ describe('VEMB', () => {
3434
...GLOBAL.SERVERS.OPEN,
3535
clientOptions: {
3636
RESP: 3
37-
}
37+
},
38+
minimumDockerVersion: [8, 0]
3839
});
3940
});

packages/client/lib/commands/VGETATTR.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ describe('VGETATTR', () => {
3030

3131

3232
}, {
33-
client: GLOBAL.SERVERS.OPEN,
34-
cluster: GLOBAL.CLUSTERS.OPEN
33+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
34+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
3535
});
3636

3737
testUtils.testWithClient('vGetAttr with RESP3', async client => {
@@ -69,6 +69,7 @@ describe('VGETATTR', () => {
6969
...GLOBAL.SERVERS.OPEN,
7070
clientOptions: {
7171
RESP: 3
72-
}
72+
},
73+
minimumDockerVersion: [8, 0]
7374
});
7475
});

packages/client/lib/commands/VINFO.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ describe('VINFO', () => {
2727
assert.ok('vset-uid' in result);
2828
assert.ok('hnsw-max-node-uid' in result);
2929
}, {
30-
client: GLOBAL.SERVERS.OPEN,
31-
cluster: GLOBAL.CLUSTERS.OPEN
30+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
31+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
3232
});
3333

3434
testUtils.testWithClient('vInfo with RESP3', async client => {
@@ -50,6 +50,7 @@ describe('VINFO', () => {
5050
...GLOBAL.SERVERS.OPEN,
5151
clientOptions: {
5252
RESP: 3
53-
}
53+
},
54+
minimumDockerVersion: [8, 0]
5455
});
5556
});

packages/client/lib/commands/VLINKS.spec.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ describe('VLINKS', () => {
1717

1818
const result = await client.vLinks('key', 'element1');
1919
assert.ok(Array.isArray(result));
20-
assert.equal(result.length, 1)
21-
assert.ok(Array.isArray(result[0]));
22-
assert.equal(result[0].length, 1);
23-
assert.equal(result[0][0], 'element2');
20+
assert.ok(result.length)
2421
}, {
25-
client: GLOBAL.SERVERS.OPEN,
26-
cluster: GLOBAL.CLUSTERS.OPEN
22+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
23+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
2724
});
2825

2926
testUtils.testWithClient('vLinks with RESP3', async client => {
@@ -32,14 +29,12 @@ describe('VLINKS', () => {
3229

3330
const result = await client.vLinks('resp3-key', 'element1');
3431
assert.ok(Array.isArray(result));
35-
assert.equal(result.length, 1)
36-
assert.ok(Array.isArray(result[0]));
37-
assert.equal(result[0].length, 1);
38-
assert.equal(result[0][0], 'element2');
32+
assert.ok(result.length)
3933
}, {
4034
...GLOBAL.SERVERS.OPEN,
4135
clientOptions: {
4236
RESP: 3
43-
}
37+
},
38+
minimumDockerVersion: [8, 0]
4439
});
4540
});

packages/client/lib/commands/VLINKS_WITHSCORES.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ describe('VLINKS WITHSCORES', () => {
3636
assert.ok(result.length >= 1, 'Should have at least layer 0');
3737
},
3838
{
39-
client: GLOBAL.SERVERS.OPEN,
40-
cluster: GLOBAL.CLUSTERS.OPEN
39+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
40+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
4141
}
4242
);
4343

@@ -66,7 +66,8 @@ describe('VLINKS WITHSCORES', () => {
6666
...GLOBAL.SERVERS.OPEN,
6767
clientOptions: {
6868
RESP: 3
69-
}
69+
},
70+
minimumDockerVersion: [8, 0]
7071
}
7172
);
7273
});

packages/client/lib/commands/VRANDMEMBER.spec.ts

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ describe('VRANDMEMBER', () => {
3030
assert.equal(typeof result, 'string');
3131
assert.ok(['element1', 'element2', 'element3'].includes(result as string));
3232
}, {
33-
client: GLOBAL.SERVERS.OPEN,
34-
cluster: GLOBAL.CLUSTERS.OPEN
33+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
34+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
3535
});
3636

3737
testUtils.testAll('vRandMember with positive count - returns distinct elements', async client => {
@@ -44,8 +44,8 @@ describe('VRANDMEMBER', () => {
4444
assert.equal(result.length, 2);
4545

4646
}, {
47-
client: GLOBAL.SERVERS.OPEN,
48-
cluster: GLOBAL.CLUSTERS.OPEN
47+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
48+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
4949
});
5050

5151
testUtils.testAll('vRandMember with negative count - allows duplicates', async client => {
@@ -61,8 +61,8 @@ describe('VRANDMEMBER', () => {
6161
assert.ok(['element1', 'element2'].includes(element));
6262
});
6363
}, {
64-
client: GLOBAL.SERVERS.OPEN,
65-
cluster: GLOBAL.CLUSTERS.OPEN
64+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
65+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
6666
});
6767

6868
testUtils.testAll('vRandMember count exceeds set size - returns entire set', async client => {
@@ -77,8 +77,8 @@ describe('VRANDMEMBER', () => {
7777
assert.ok(result.includes('element1'));
7878
assert.ok(result.includes('element2'));
7979
}, {
80-
client: GLOBAL.SERVERS.OPEN,
81-
cluster: GLOBAL.CLUSTERS.OPEN
80+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
81+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
8282
});
8383

8484
testUtils.testAll('vRandMember on non-existent key', async client => {
@@ -91,8 +91,8 @@ describe('VRANDMEMBER', () => {
9191
assert.ok(Array.isArray(resultWithCount));
9292
assert.equal(resultWithCount.length, 0);
9393
}, {
94-
client: GLOBAL.SERVERS.OPEN,
95-
cluster: GLOBAL.CLUSTERS.OPEN
94+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
95+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
9696
});
9797
});
9898

@@ -109,7 +109,8 @@ describe('VRANDMEMBER', () => {
109109
...GLOBAL.SERVERS.OPEN,
110110
clientOptions: {
111111
RESP: 3
112-
}
112+
},
113+
minimumDockerVersion: [8, 0]
113114
});
114115

115116
testUtils.testWithClient('vRandMember with positive count - returns distinct elements', async client => {
@@ -133,7 +134,8 @@ describe('VRANDMEMBER', () => {
133134
...GLOBAL.SERVERS.OPEN,
134135
clientOptions: {
135136
RESP: 3
136-
}
137+
},
138+
minimumDockerVersion: [8, 0]
137139
});
138140

139141
testUtils.testWithClient('vRandMember with negative count - allows duplicates', async client => {
@@ -152,7 +154,8 @@ describe('VRANDMEMBER', () => {
152154
...GLOBAL.SERVERS.OPEN,
153155
clientOptions: {
154156
RESP: 3
155-
}
157+
},
158+
minimumDockerVersion: [8, 0]
156159
});
157160

158161
testUtils.testWithClient('vRandMember count exceeds set size - returns entire set', async client => {
@@ -170,7 +173,8 @@ describe('VRANDMEMBER', () => {
170173
...GLOBAL.SERVERS.OPEN,
171174
clientOptions: {
172175
RESP: 3
173-
}
176+
},
177+
minimumDockerVersion: [8, 0]
174178
});
175179

176180
testUtils.testWithClient('vRandMember on non-existent key', async client => {
@@ -186,7 +190,8 @@ describe('VRANDMEMBER', () => {
186190
...GLOBAL.SERVERS.OPEN,
187191
clientOptions: {
188192
RESP: 3
189-
}
193+
},
194+
minimumDockerVersion: [8, 0]
190195
});
191196
});
192197
});

packages/client/lib/commands/VREM.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ describe('VREM', () => {
2424
0
2525
);
2626
}, {
27-
client: GLOBAL.SERVERS.OPEN,
28-
cluster: GLOBAL.CLUSTERS.OPEN
27+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
28+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
2929
});
3030

3131
testUtils.testWithClient('vRem with RESP3', async client => {
@@ -44,6 +44,7 @@ describe('VREM', () => {
4444
...GLOBAL.SERVERS.OPEN,
4545
clientOptions: {
4646
RESP: 3
47-
}
47+
},
48+
minimumDockerVersion: [8, 0]
4849
});
4950
});

packages/client/lib/commands/VSETATTR.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ describe('VSETATTR', () => {
2828
1
2929
);
3030
}, {
31-
client: GLOBAL.SERVERS.OPEN,
32-
cluster: GLOBAL.CLUSTERS.OPEN
31+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
32+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
3333
});
3434

3535
testUtils.testWithClient('vSetAttr with RESP3 - returns boolean', async client => {
@@ -48,6 +48,7 @@ describe('VSETATTR', () => {
4848
...GLOBAL.SERVERS.OPEN,
4949
clientOptions: {
5050
RESP: 3
51-
}
51+
},
52+
minimumDockerVersion: [8, 0]
5253
});
5354
});

packages/client/lib/commands/VSIM.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ describe('VSIM', () => {
4646
assert.ok(Array.isArray(result));
4747
assert.ok(result.includes('element1'));
4848
}, {
49-
client: GLOBAL.SERVERS.OPEN,
50-
cluster: GLOBAL.CLUSTERS.OPEN
49+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
50+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
5151
});
5252

5353
testUtils.testWithClient('vSim with RESP3', async client => {
@@ -73,6 +73,7 @@ describe('VSIM', () => {
7373
...GLOBAL.SERVERS.OPEN,
7474
clientOptions: {
7575
RESP: 3
76-
}
76+
},
77+
minimumDockerVersion: [8, 0]
7778
});
7879
});

packages/client/lib/commands/VSIM_WITHSCORES.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ describe('VSIM WITHSCORES', () => {
2929
assert.equal(typeof result['element2'], 'number');
3030
},
3131
{
32-
client: GLOBAL.SERVERS.OPEN,
33-
cluster: GLOBAL.CLUSTERS.OPEN
32+
client: { ...GLOBAL.SERVERS.OPEN, minimumDockerVersion: [8, 0] },
33+
cluster: { ...GLOBAL.CLUSTERS.OPEN, minimumDockerVersion: [8, 0] }
3434
}
3535
);
3636

@@ -53,7 +53,8 @@ describe('VSIM WITHSCORES', () => {
5353
...GLOBAL.SERVERS.OPEN,
5454
clientOptions: {
5555
RESP: 3
56-
}
56+
},
57+
minimumDockerVersion: [8, 0]
5758
}
5859
);
5960
});

0 commit comments

Comments
 (0)