From 819615476adc436d42450a1f20654680b3ede58f Mon Sep 17 00:00:00 2001 From: shacharPash Date: Sun, 6 Aug 2023 18:00:01 +0300 Subject: [PATCH] else if => elif --- .github/workflows/integration.yml | 2 +- tests/NRedisStack.Tests/Graph/GraphTests.cs | 64 +++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 12a4435e..0aa6b33e 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -48,7 +48,7 @@ jobs: ls -R if [ "$REDIS_VERSION" != "edge" ]; then dotnet test -f net6.0 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --filter Category!=edge - else if [ "$REDIS_VERSION" != "7.2.0-RC3" ]; then + elif [ "$REDIS_VERSION" != "7.2.0-RC3" ]; then dotnet test -f net6.0 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --filter Category!=7.2.0-RC3 else dotnet test -f net6.0 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover diff --git a/tests/NRedisStack.Tests/Graph/GraphTests.cs b/tests/NRedisStack.Tests/Graph/GraphTests.cs index e2129aa9..abe4500a 100644 --- a/tests/NRedisStack.Tests/Graph/GraphTests.cs +++ b/tests/NRedisStack.Tests/Graph/GraphTests.cs @@ -21,6 +21,7 @@ public void Dispose() #region SyncTests [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestReserveBasic() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -29,6 +30,7 @@ public void TestReserveBasic() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestCreateNode() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -52,6 +54,7 @@ public void TestCreateNode() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestCreateLabeledNode() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -73,6 +76,7 @@ public void TestCreateLabeledNode() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestConnectNodes() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -100,6 +104,7 @@ public void TestConnectNodes() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestDeleteNodes() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -147,6 +152,7 @@ public void TestDeleteNodes() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestDeleteRelationship() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -177,6 +183,7 @@ public void TestDeleteRelationship() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestIndex() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -204,6 +211,7 @@ public void TestIndex() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestHeader() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -235,6 +243,7 @@ public void TestHeader() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestRecord() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -360,6 +369,7 @@ public void TestRecord() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestAdditionToProcedures() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -440,6 +450,7 @@ record = iterator.Current; } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestEscapedQuery() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -459,6 +470,7 @@ public void TestEscapedQuery() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestArraySupport() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -559,6 +571,7 @@ record = iterator.Current; } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestPath() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -611,6 +624,7 @@ public void TestPath() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestNullGraphEntities() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -665,6 +679,7 @@ record = resultSet.Skip(1).First(); } [Fact] + [Trait("Category", "7.2.0-RC3")] public void Test64BitNumber() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -683,6 +698,7 @@ public void Test64BitNumber() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestCachedExecution() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -714,6 +730,7 @@ public void TestCachedExecution() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestMapDataType() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -744,6 +761,7 @@ public void TestMapDataType() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestGeoPointLatLon() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -758,6 +776,7 @@ public void TestGeoPointLatLon() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestGeoPointLonLat() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -787,6 +806,7 @@ private void AssertTestGeoPoint(IGraphCommands graph) } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestPoint() { var point = new Point(30.27822306, -97.75134723); @@ -799,6 +819,7 @@ public void TestPoint() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void timeoutArgument() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -813,6 +834,7 @@ public void timeoutArgument() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestCachedExecutionReadOnly() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -846,6 +868,7 @@ public void TestCachedExecutionReadOnly() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestSimpleReadOnly() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -861,6 +884,7 @@ public void TestSimpleReadOnly() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestProfile() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -879,6 +903,7 @@ public void TestProfile() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestExplain() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -897,6 +922,7 @@ public void TestExplain() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestSlowlog() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -912,6 +938,7 @@ public void TestSlowlog() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestList() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -925,6 +952,7 @@ public void TestList() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestConfig() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -945,6 +973,7 @@ public void TestConfig() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestModulePrefixs() { IDatabase db1 = redisFixture.Redis.GetDatabase(); @@ -957,6 +986,7 @@ public void TestModulePrefixs() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestCallProcedureDbLabels() { var db = redisFixture.Redis.GetDatabase(); @@ -978,6 +1008,7 @@ public void TestCallProcedureDbLabels() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestCallProcedureReadOnly() { var db = redisFixture.Redis.GetDatabase(); @@ -1004,6 +1035,7 @@ public void TestCallProcedureReadOnly() #region AsyncTests [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestReserveBasicAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1012,6 +1044,7 @@ public async Task TestReserveBasicAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestCreateNodeAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1035,6 +1068,7 @@ public async Task TestCreateNodeAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestCreateLabeledNodeAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1056,6 +1090,7 @@ public async Task TestCreateLabeledNodeAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestConnectNodesAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1084,6 +1119,7 @@ public async Task TestConnectNodesAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestDeleteNodesAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1131,6 +1167,7 @@ public async Task TestDeleteNodesAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestDeleteRelationshipAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1161,6 +1198,7 @@ public async Task TestDeleteRelationshipAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestIndexAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1188,6 +1226,7 @@ public async Task TestIndexAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestHeaderAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1219,6 +1258,7 @@ public async Task TestHeaderAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestRecordAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1346,6 +1386,7 @@ await graph.QueryAsync("social", "MATCH (a:person), (b:person) WHERE (a.name = ' } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestAdditionToProceduresAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1426,6 +1467,7 @@ record = iterator.Current; } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestEscapedQueryAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1445,6 +1487,7 @@ public async Task TestEscapedQueryAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestArraySupportAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1545,6 +1588,7 @@ record = iterator.Current; } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestPathAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1597,6 +1641,7 @@ public async Task TestPathAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestNullGraphEntitiesAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1651,6 +1696,7 @@ record = resultSet.Skip(1).First(); } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task Test64bitnumberAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1669,6 +1715,7 @@ public async Task Test64bitnumberAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestCachedExecutionAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1700,6 +1747,7 @@ public async Task TestCachedExecutionAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestMapDataTypeAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1730,6 +1778,7 @@ public async Task TestMapDataTypeAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestGeoPointLatLonAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1744,6 +1793,7 @@ public async Task TestGeoPointLatLonAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestGeoPointLonLatAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1772,6 +1822,7 @@ private async Task AssertTestGeoPointAsync(GraphCommands graph) } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task timeoutArgumentAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1786,6 +1837,7 @@ public async Task timeoutArgumentAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestCachedExecutionReadOnlyAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1819,6 +1871,7 @@ public async Task TestCachedExecutionReadOnlyAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestSimpleReadOnlyAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1834,6 +1887,7 @@ public async Task TestSimpleReadOnlyAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestProfileAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1852,6 +1906,7 @@ public async Task TestProfileAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestExplainAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1870,6 +1925,7 @@ public async Task TestExplainAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestSlowlogAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1885,6 +1941,7 @@ public async Task TestSlowlogAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestListAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1898,6 +1955,7 @@ public async Task TestListAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestConfigAsync() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1918,6 +1976,7 @@ public async Task TestConfigAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestModulePrefixsAsync() { IDatabase db1 = redisFixture.Redis.GetDatabase(); @@ -1930,6 +1989,7 @@ public async Task TestModulePrefixsAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestCallProcedureDbLabelsAsync() { var db = redisFixture.Redis.GetDatabase(); @@ -1951,6 +2011,7 @@ public async Task TestCallProcedureDbLabelsAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public async Task TestCallProcedureReadOnlyAsync() { var db = redisFixture.Redis.GetDatabase(); @@ -1973,6 +2034,7 @@ public async Task TestCallProcedureReadOnlyAsync() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestParseInfinity() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -1987,6 +2049,7 @@ public void TestParseInfinity() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestEqualsAndToString() { IDatabase db = redisFixture.Redis.GetDatabase(); @@ -2064,6 +2127,7 @@ public void TestEqualsAndToString() } [Fact] + [Trait("Category", "7.2.0-RC3")] public void TestPrepareQuery() { const string return1Query = "RETURN 1";