Skip to content

Commit

Permalink
Merge pull request #486 from rossmills99/479-add-3.11-tests
Browse files Browse the repository at this point in the history
Fix #479 Add tests for ArangoDB 3.11.
  • Loading branch information
DiscoPYF authored Dec 11, 2023
2 parents a0c4b58 + ccdd8d1 commit aebfb4e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
23 changes: 22 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ workflows:
- "test-arangodb-3_10":
requires:
- build
- "test-arangodb-3_11":
requires:
- build

jobs:
build:
Expand Down Expand Up @@ -166,10 +169,28 @@ jobs:
- image: mcr.microsoft.com/dotnet/sdk:8.0
environment:
ARANGO_HOST: adb3_10_0
- image: arangodb/arangodb:3.10.0
- image: arangodb:3.10
name: adb3_10_0
environment:
ARANGO_ROOT_PASSWORD: root
steps:
- attach_workspace:
# Must be absolute path or relative path from working_directory
at: ~/
- run:
name: Test
command: dotnet test -c Release --filter RunningMode!=Cluster

"test-arangodb-3_11":
working_directory: ~/arangodb-net-standard
docker:
- image: mcr.microsoft.com/dotnet/sdk:8.0
environment:
ARANGO_HOST: adb3_11_0
- image: arangodb:3.11
name: adb3_11_0
environment:
ARANGO_ROOT_PASSWORD: root
steps:
- attach_workspace:
# Must be absolute path or relative path from working_directory
Expand Down
15 changes: 5 additions & 10 deletions arangodb-net-standard.Test/ViewApi/ViewApiClientTest.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using ArangoDBNetStandard;
using ArangoDBNetStandard;
using ArangoDBNetStandard.ViewApi;
using ArangoDBNetStandard.ViewApi.Models;
using ArangoDBNetStandard.Transport;
using Moq;
using System.Net;
using System.Threading.Tasks;
using Xunit;

namespace ArangoDBNetStandardTest.ViewApi
Expand Down Expand Up @@ -37,7 +33,7 @@ public async Task GetAllViewsAsync_ShouldSucceed()
{
var testName = "GetAllViewsAsyncShouldSucceedView";
var createResponse = await _viewApi.PostCreateViewAsync(
new ViewDetails()
new ViewDetails()
{
Name = testName,
Type = "arangosearch"
Expand Down Expand Up @@ -129,10 +125,9 @@ public async Task PutRenameViewAsync_ShouldSucceed()
testName,
new PutRenameViewBody()
{
Name = newName
Name = newName
});

Assert.Equal(HttpStatusCode.OK, res.Code);
Assert.False(res.Error);
Assert.NotNull(res.GloballyUniqueId);
Assert.Equal(newName, res.Name);
Expand Down

0 comments on commit aebfb4e

Please sign in to comment.