Skip to content
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

Test & improve SchemaValidator #109

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

ong

87393e2
Select commit
Loading
Failed to load commit list.
Draft

Test & improve SchemaValidator #109

ong
87393e2
Select commit
Loading
Failed to load commit list.
Azure Pipelines / PR - Confix failed May 22, 2023 in 2m 48s

Build #1885 had test failures

Details

Tests

  • Failed: 2 (3.03%)
  • Passed: 62 (93.94%)
  • Other: 2 (3.03%)
  • Total: 66

Annotations

Check failure on line 80 in Build log

See this annotation in the file changed.

@azure-pipelines 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

See this annotation in the file changed.

@azure-pipelines 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'
]

Check failure on line 1 in Confix.Authoring.Core.Tests.SchemaValidatorTests.ValidateValues_UnionsInRoot_Valid

See this annotation in the file changed.

@azure-pipelines 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)

Check failure on line 1 in Confix.Authoring.Core.Tests.SchemaValidatorTests.ValidateValues_UnionsInArray_Valid

See this annotation in the file changed.

@azure-pipelines 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)