Github user ashwini-ms commented on a diff in the pull request:
https://github.com/apache/tinkerpop/pull/868#discussion_r188723890
--- Diff:
gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Driver/GremlinClientTests.cs ---
@@ -167,6 +168,25 @@ public class GremlinClientTests
}
}
+ [Fact]
+ public async Task ShouldReturnResponseAttributes()
+ {
+ var gremlinServer = new GremlinServer(TestHost, TestPort);
+ using (var gremlinClient = new GremlinClient(gremlinServer))
+ {
+ var expectedResult = new List<int> { 1, 2, 3, 4, 5 };
+ var requestMsg = $"{nameof(expectedResult)}";
+ var bindings = new Dictionary<string, object> { {
nameof(expectedResult), expectedResult } };
+
+ var response = await
gremlinClient.SubmitAsync<int>(requestMsg, bindings);
+
+ var resultSet = response.AsResultSet();
+
+ Assert.NotNull(resultSet.StatusAttributes);
--- End diff --
I did check for host because I was not setting that and was not sure if
this is returned in all type of test environments. But if this is added in all
test environment, I will add that
---