-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds tests for ArangoDB 3.12 #499
base: master
Are you sure you want to change the base?
Conversation
36d9c5b
to
7afa864
Compare
Some tests are failing because a new error code is returned. For example in I'll update the tests. |
I think we are also testing deserialization at least, so that has value in my view. Also it is a good way to find out when breaking changes occur since this doesn't get a mention in the release notes as far as I can tell https://docs.arangodb.com/3.12/release-notes/version-3.12/incompatible-changes-in-3-12/ |
As discussed separately with @rossmills99, plan is to:
|
7afa864
to
b9e0280
Compare
Update:
Ready to review. |
@@ -81,7 +83,7 @@ public async Task DeleteGraphAsync_ShouldThrow_WhenNotFound() | |||
}); | |||
|
|||
Assert.Equal(HttpStatusCode.NotFound, exception.ApiError.Code); | |||
Assert.Equal(1924, exception.ApiError.ErrorNum); // GRAPH_NOT_FOUND | |||
Assert.Equal((int)ERROR_GRAPH_NOT_FOUND, exception.ApiError.ErrorNum); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌱 Perhaps int constants would be better instead of enum values.
public static ArangoDBErrors
{
public const int ERROR_GRAPH_NOT_FOUND = 1924;
}
It would be a breaking change in theory, but I can't imagine consumers doing anything else than int comparison against ApiErrorResponse.ErrorNum
.
There are still test failures for |
fix #498