[Theory]
[InlineData("expCon/Umbrella/Partners/$count")]
[InlineData("conCon/Umbrella/Partners/$count")]
public async Task NotCountable(string url)
{
...
}
Can pass in develop environment. But it seems it failed in CI. Below is the output. Please make it work.
WebStack.QA.Test.OData.Singleton.SingletonTest.NotCountable(url: "conCon/Umbrella/Partners/$count") [Katana-Self-Host Trace:] : The response code is incorrect, expanded: 400, but actually: InternalServerError, request url: http://ODTESTVM01:9248/conCon/Umbrella/Partners/$count, response: { "error":{ "code":"","message":"An error has occurred.","innererror":{ "message":"Value cannot be null.\r\nParameter name: graph","type":"System.ArgumentNullException","stacktrace":" at System.Web.OData.Formatter.Serialization.ODataRawValueSerializer.WriteObject(Object graph, Type type, ODataMessageWriter messageWriter, ODataSerializerContext writeContext) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\Serialization\ODataRawValueSerializer.cs:line 27\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStream(Type type, Object value, Stream writeStream, HttpContent content, HttpContentHeaders contentHeaders) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 533\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStreamAsync(Type type, Object value, Stream writeStream, HttpContent content, TransportContext transportContext, CancellationToken cancellationToken) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 454\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Owin.HttpMessageHandlerAdapter.d__13.MoveNext()" } } }.
at WebStack.QA.Test.OData.Singleton.SingletonTest.d7.MoveNext() in d:\ci\Alpha\test\src\WebStack.QA.Test.OData\Singleton\SingletonTest.cs:line 930.035s✘ WebStack.QA.Test.OData.Singleton.SingletonTest.NotCountable(url: "conCon/Umbrella/Partners/$count") [Katana-Self-Host Trace:] : The response code is incorrect, expanded: 400, but actually: InternalServerError, request url: http://ODTESTVM01:9249/conCon/Umbrella/Partners/$count, response: { "error":{ "code":"","message":"An error has occurred.","innererror":{ "message":"Value cannot be null.\r\nParameter name: graph","type":"System.ArgumentNullException","stacktrace":" at System.Web.OData.Formatter.Serialization.ODataRawValueSerializer.WriteObject(Object graph, Type type, ODataMessageWriter messageWriter, ODataSerializerContext writeContext) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\Serialization\ODataRawValueSerializer.cs:line 27\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStream(Type type, Object value, Stream writeStream, HttpContent content, HttpContentHeaders contentHeaders) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 533\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStreamAsync(Type type, Object value, Stream writeStream, HttpContent content, TransportContext transportContext, CancellationToken cancellationToken) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 454\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Owin.HttpMessageHandlerAdapter.d13.MoveNext()" } } }.
at WebStack.QA.Test.OData.Singleton.SingletonTest.d7.MoveNext() in d:\ci\Alpha\test\src\WebStack.QA.Test.OData\Singleton\SingletonTest.cs:line 930.003s✘ WebStack.QA.Test.OData.Singleton.SingletonTest.NotCountable(url: "expCon/Umbrella/Partners/$count") [Katana-Self-Host Trace:] : The response code is incorrect, expanded: 400, but actually: InternalServerError, request url: http://ODTESTVM01:9248/expCon/Umbrella/Partners/$count, response: { "error":{ "code":"","message":"An error has occurred.","innererror":{ "message":"Value cannot be null.\r\nParameter name: graph","type":"System.ArgumentNullException","stacktrace":" at System.Web.OData.Formatter.Serialization.ODataRawValueSerializer.WriteObject(Object graph, Type type, ODataMessageWriter messageWriter, ODataSerializerContext writeContext) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\Serialization\ODataRawValueSerializer.cs:line 27\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStream(Type type, Object value, Stream writeStream, HttpContent content, HttpContentHeaders contentHeaders) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 533\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStreamAsync(Type type, Object value, Stream writeStream, HttpContent content, TransportContext transportContext, CancellationToken cancellationToken) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 454\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Owin.HttpMessageHandlerAdapter.d13.MoveNext()" } } }.
at WebStack.QA.Test.OData.Singleton.SingletonTest.d7.MoveNext() in d:\ci\Alpha\test\src\WebStack.QA.Test.OData\Singleton\SingletonTest.cs:line 930.003s✘ WebStack.QA.Test.OData.Singleton.SingletonTest.NotCountable(url: "expCon/Umbrella/Partners/$count") [Katana-Self-Host Trace:] : The response code is incorrect, expanded: 400, but actually: InternalServerError, request url: http://ODTESTVM01:9249/expCon/Umbrella/Partners/$count, response: { "error":{ "code":"","message":"An error has occurred.","innererror":{ "message":"Value cannot be null.\r\nParameter name: graph","type":"System.ArgumentNullException","stacktrace":" at System.Web.OData.Formatter.Serialization.ODataRawValueSerializer.WriteObject(Object graph, Type type, ODataMessageWriter messageWriter, ODataSerializerContext writeContext) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\Serialization\ODataRawValueSerializer.cs:line 27\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStream(Type type, Object value, Stream writeStream, HttpContent content, HttpContentHeaders contentHeaders) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 533\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStreamAsync(Type type, Object value, Stream writeStream, HttpContent content, TransportContext transportContext, CancellationToken cancellationToken) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 454\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Owin.HttpMessageHandlerAdapter.d13.MoveNext()" } } }.
[Theory] [InlineData("expCon/Umbrella/Partners/$count")] [InlineData("conCon/Umbrella/Partners/$count")] public async Task NotCountable(string url) { ... } Can pass in develop environment. But it seems it failed in CI. Below is the output. Please make it work.
WebStack.QA.Test.OData.Singleton.SingletonTest.NotCountable(url: "conCon/Umbrella/Partners/$count") [Katana-Self-Host Trace:] : The response code is incorrect, expanded: 400, but actually: InternalServerError, request url: http://ODTESTVM01:9248/conCon/Umbrella/Partners/$count, response: { "error":{ "code":"","message":"An error has occurred.","innererror":{ "message":"Value cannot be null.\r\nParameter name: graph","type":"System.ArgumentNullException","stacktrace":" at System.Web.OData.Formatter.Serialization.ODataRawValueSerializer.WriteObject(Object graph, Type type, ODataMessageWriter messageWriter, ODataSerializerContext writeContext) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\Serialization\ODataRawValueSerializer.cs:line 27\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStream(Type type, Object value, Stream writeStream, HttpContent content, HttpContentHeaders contentHeaders) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 533\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStreamAsync(Type type, Object value, Stream writeStream, HttpContent content, TransportContext transportContext, CancellationToken cancellationToken) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 454\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Owin.HttpMessageHandlerAdapter.d__13.MoveNext()" } } }.
at WebStack.QA.Test.OData.Singleton.SingletonTest.d7.MoveNext() in d:\ci\Alpha\test\src\WebStack.QA.Test.OData\Singleton\SingletonTest.cs:line 930.035s✘ WebStack.QA.Test.OData.Singleton.SingletonTest.NotCountable(url: "conCon/Umbrella/Partners/$count") [Katana-Self-Host Trace:] : The response code is incorrect, expanded: 400, but actually: InternalServerError, request url: http://ODTESTVM01:9249/conCon/Umbrella/Partners/$count, response: { "error":{ "code":"","message":"An error has occurred.","innererror":{ "message":"Value cannot be null.\r\nParameter name: graph","type":"System.ArgumentNullException","stacktrace":" at System.Web.OData.Formatter.Serialization.ODataRawValueSerializer.WriteObject(Object graph, Type type, ODataMessageWriter messageWriter, ODataSerializerContext writeContext) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\Serialization\ODataRawValueSerializer.cs:line 27\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStream(Type type, Object value, Stream writeStream, HttpContent content, HttpContentHeaders contentHeaders) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 533\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStreamAsync(Type type, Object value, Stream writeStream, HttpContent content, TransportContext transportContext, CancellationToken cancellationToken) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 454\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Owin.HttpMessageHandlerAdapter.d 13.MoveNext()" } } }.
at WebStack.QA.Test.OData.Singleton.SingletonTest.d7.MoveNext() in d:\ci\Alpha\test\src\WebStack.QA.Test.OData\Singleton\SingletonTest.cs:line 930.003s✘ WebStack.QA.Test.OData.Singleton.SingletonTest.NotCountable(url: "expCon/Umbrella/Partners/$count") [Katana-Self-Host Trace:] : The response code is incorrect, expanded: 400, but actually: InternalServerError, request url: http://ODTESTVM01:9248/expCon/Umbrella/Partners/$count, response: { "error":{ "code":"","message":"An error has occurred.","innererror":{ "message":"Value cannot be null.\r\nParameter name: graph","type":"System.ArgumentNullException","stacktrace":" at System.Web.OData.Formatter.Serialization.ODataRawValueSerializer.WriteObject(Object graph, Type type, ODataMessageWriter messageWriter, ODataSerializerContext writeContext) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\Serialization\ODataRawValueSerializer.cs:line 27\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStream(Type type, Object value, Stream writeStream, HttpContent content, HttpContentHeaders contentHeaders) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 533\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStreamAsync(Type type, Object value, Stream writeStream, HttpContent content, TransportContext transportContext, CancellationToken cancellationToken) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 454\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Owin.HttpMessageHandlerAdapter.d 13.MoveNext()" } } }.
at WebStack.QA.Test.OData.Singleton.SingletonTest.d7.MoveNext() in d:\ci\Alpha\test\src\WebStack.QA.Test.OData\Singleton\SingletonTest.cs:line 930.003s✘ WebStack.QA.Test.OData.Singleton.SingletonTest.NotCountable(url: "expCon/Umbrella/Partners/$count") [Katana-Self-Host Trace:] : The response code is incorrect, expanded: 400, but actually: InternalServerError, request url: http://ODTESTVM01:9249/expCon/Umbrella/Partners/$count, response: { "error":{ "code":"","message":"An error has occurred.","innererror":{ "message":"Value cannot be null.\r\nParameter name: graph","type":"System.ArgumentNullException","stacktrace":" at System.Web.OData.Formatter.Serialization.ODataRawValueSerializer.WriteObject(Object graph, Type type, ODataMessageWriter messageWriter, ODataSerializerContext writeContext) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\Serialization\ODataRawValueSerializer.cs:line 27\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStream(Type type, Object value, Stream writeStream, HttpContent content, HttpContentHeaders contentHeaders) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 533\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.WriteToStreamAsync(Type type, Object value, Stream writeStream, HttpContent content, TransportContext transportContext, CancellationToken cancellationToken) in d:\ci\Alpha\product\OData\src\System.Web.OData\OData\Formatter\ODataMediaTypeFormatter.cs:line 454\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Owin.HttpMessageHandlerAdapter.d 13.MoveNext()" } } }.