Skip to content

Commit 1ca7020

Browse files
uglidemgravell
andauthored
Align tests with RE (#447)
* Assert on index size before running queries in tests * Remove assertions on config options unsupported by RE * Fix formatting * Fix index size assertion * Add 8.4 to CI matrix integration.yml (#450) * Add 8.4 to CI matrix integration.yml * Update integration.yml * Update integration.yml * Update integration.yml * Assert on index size before running queries in tests * Remove assertions on config options unsupported by RE * Fix formatting * Fix index size assertion * Debug * Clean debugging * Skip search tests with cluster if Redis < 8.4 * Fix formatting * Clean up test matrix - 8.0 is for security fixes now, so the "current" version should be switched to 8.2 - 8.4 has stable release now * dotnet format * Update linter.yaml * more fixin' * Do not skip OSS Cluster tests on RE --------- Co-authored-by: Marc Gravell <marc.gravell@gmail.com>
1 parent aa08000 commit 1ca7020

35 files changed

+122
-80
lines changed

.github/workflows/integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717

1818
env:
1919
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
20-
CURRENT_REDIS_VERSION: '8.0.2'
20+
CURRENT_REDIS_VERSION: '8.2.3'
2121

2222
jobs:
2323
redis_version:
@@ -37,7 +37,7 @@ jobs:
3737
max-parallel: 15
3838
fail-fast: false
3939
matrix:
40-
redis-version: [ '8.4-GA-pre.3', '8.2.1', '${{ needs.redis_version.outputs.CURRENT }}', '7.4.1', '7.2.6', '6.2.16']
40+
redis-version: [ '8.4.0', '${{ needs.redis_version.outputs.CURRENT }}', '7.4.1', '7.2.6', '6.2.16']
4141
dotnet-version: ['8.0', '9.0']
4242
env:
4343
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

.github/workflows/linter.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
run: |
2121
dotnet format
2222
23+
- name: status
24+
run: |
25+
git status
26+
2327
- name: Check for modified files
2428
run: |
2529
if (git status | Select-String -Pattern 'modified') {

src/NRedisStack/CoreCommands/Enums/SetInfoAttr.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
namespace NRedisStack.Core;
2+
23
public enum SetInfoAttr
34
{
45
/// <summary>

src/NRedisStack/Search/AggregationRequest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using NRedisStack.Search.Literals;
33

44
namespace NRedisStack.Search;
5+
56
public class AggregationRequest : IDialectAwareParam
67
{
78
private readonly List<object> args = []; // Check if Readonly

tests/Doc/Bf_tutorial.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
// REMOVE_START
1111
namespace Doc;
12+
1213
[Collection("DocsTests")]
1314
// REMOVE_END
1415

tests/Doc/Bitmap_tutorial.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
// REMOVE_START
1010
namespace Doc;
11+
1112
[Collection("DocsTests")]
1213
// REMOVE_END
1314

tests/Doc/CmdsGenericExample.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
// REMOVE_START
1010
namespace Doc;
11+
1112
[Collection("DocsTests")]
1213
// REMOVE_END
1314

tests/Doc/CmdsHashExample.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using NRedisStack.Tests;
77

88
namespace Doc;
9+
910
[Collection("DocsTests")]
1011
// REMOVE_END
1112

tests/Doc/CmdsListExample.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
// REMOVE_START
1010
namespace Doc;
11+
1112
[Collection("DocsTests")]
1213
// REMOVE_END
1314

tests/Doc/CmdsSortedSetExamples.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
// REMOVE_START
1010
namespace Doc;
11+
1112
[Collection("DocsTests")]
1213
// REMOVE_END
1314

0 commit comments

Comments
 (0)