Test & improve SchemaValidator #109
Draft
Azure Pipelines / PR - Confix
failed
May 22, 2023 in 2m 48s
Build #1885 had test failures
Details
- Failed: 2 (3.03%)
- Passed: 62 (93.94%)
- Other: 2 (3.03%)
- Total: 66
Annotations
Check failure on line 80 in Build log
azure-pipelines / PR - Confix
Build log #L80
Error: The process '/opt/hostedtoolcache/dotnet/dotnet' failed with exit code 1
Check failure on line 270 in Build log
azure-pipelines / PR - Confix
Build log #L270
Dotnet command failed with non-zero exit code on the following projects : [
'/home/vsts/work/1/s/src/Backend/test/Authoring.Core.Tests/Authoring.Core.Tests.csproj'
]
azure-pipelines / PR - Confix
Confix.Authoring.Core.Tests.SchemaValidatorTests.ValidateValues_UnionsInRoot_Valid
System.InvalidCastException : Unable to cast object of type 'HotChocolate.Types.UnionType' to type 'HotChocolate.Types.ObjectType'.
Raw output
at Confix.Authoring.Internal.ValueHelper.DeserializeDictionary(JsonElement element, IType type) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/ValueHelper.cs:line 193
at Confix.Authoring.Internal.ValueHelper.Deserialize(JsonElement element, IType type) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/ValueHelper.cs:line 212
at Confix.Authoring.Internal.ValueHelper.DeserializeDictionary(JsonElement element, IType type) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/ValueHelper.cs:line 200
at Confix.Authoring.Internal.SchemaValidator.GetSchemaViolations(JsonElement values, String schemaSdl) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/SchemaValidator.cs:line 52
at Confix.Authoring.Internal.SchemaValidator.ValidateValues(JsonElement values, String schemaSdl) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/SchemaValidator.cs:line 41
at Confix.Authoring.Core.Tests.SchemaValidatorTests.AssertValidValues(String jsonValue, String schema) in /home/vsts/work/1/s/src/Backend/test/Authoring.Core.Tests/SchemaValidatorTests.cs:line 350
at Confix.Authoring.Core.Tests.SchemaValidatorTests.ValidateValues_UnionsInRoot_Valid() in /home/vsts/work/1/s/src/Backend/test/Authoring.Core.Tests/SchemaValidatorTests.cs:line 220
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
azure-pipelines / PR - Confix
Confix.Authoring.Core.Tests.SchemaValidatorTests.ValidateValues_UnionsInArray_Valid
System.InvalidCastException : Unable to cast object of type 'HotChocolate.Types.UnionType' to type 'HotChocolate.Types.ObjectType'.
Raw output
at Confix.Authoring.Internal.ValueHelper.DeserializeDictionary(JsonElement element, IType type) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/ValueHelper.cs:line 193
at Confix.Authoring.Internal.ValueHelper.Deserialize(JsonElement element, IType type) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/ValueHelper.cs:line 212
at Confix.Authoring.Internal.ValueHelper.DeserializeList(JsonElement array, IType type) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/ValueHelper.cs:line 246
at Confix.Authoring.Internal.ValueHelper.Deserialize(JsonElement element, IType type) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/ValueHelper.cs:line 215
at Confix.Authoring.Internal.ValueHelper.DeserializeDictionary(JsonElement element, IType type) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/ValueHelper.cs:line 200
at Confix.Authoring.Internal.SchemaValidator.GetSchemaViolations(JsonElement values, String schemaSdl) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/SchemaValidator.cs:line 52
at Confix.Authoring.Internal.SchemaValidator.ValidateValues(JsonElement values, String schemaSdl) in /home/vsts/work/1/s/src/Backend/src/Authoring.Core/Schema/Services/SchemaValidator.cs:line 41
at Confix.Authoring.Core.Tests.SchemaValidatorTests.AssertValidValues(String jsonValue, String schema) in /home/vsts/work/1/s/src/Backend/test/Authoring.Core.Tests/SchemaValidatorTests.cs:line 350
at Confix.Authoring.Core.Tests.SchemaValidatorTests.ValidateValues_UnionsInArray_Valid() in /home/vsts/work/1/s/src/Backend/test/Authoring.Core.Tests/SchemaValidatorTests.cs:line 251
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
Loading