Skip to content

Access control: add access token admin methods, update role checks #430

Access control: add access token admin methods, update role checks

Access control: add access token admin methods, update role checks #430

Triggered via push January 22, 2025 09:11
Status Failure
Total duration 11m 21s
Artifacts
build-and-test-windows
11m 6s
build-and-test-windows
Fit to window
Zoom out
Zoom in

Annotations

10 errors
TestAddGetAssignedRoles: certify/src/Certify.Tests/Certify.Core.Tests.Unit/Tests/AccessControlTests.cs#L221
Assert.AreEqual failed. Expected:<1>. Actual:<0>. Expected list returned by AccessControl.GetAssignedRoles() to have 1 AssignedRole object at Certify.Core.Tests.Unit.AccessControlTests.<TestAddGetAssignedRoles>d__7.MoveNext() in D:\a\certify\certify\certify\src\Certify.Tests\Certify.Core.Tests.Unit\Tests\AccessControlTests.cs:line 247 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
TestUpdateSecurityPrinciple: certify/src/Certify.Tests/Certify.Core.Tests.Unit/Tests/AccessControlTests.cs#L286
Assert.IsTrue failed. Expected security principle update for admin_01 to succeed at Certify.Core.Tests.Unit.AccessControlTests.<TestUpdateSecurityPrinciple>d__10.MoveNext() in D:\a\certify\certify\certify\src\Certify.Tests\Certify.Core.Tests.Unit\Tests\AccessControlTests.cs:line 322 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
TestUpdateSecurityPrinciplePassword: certify/src/Certify.Tests/Certify.Core.Tests.Unit/Tests/AccessControlTests.cs#L387
Assert.IsTrue failed. Expected security principle password update for admin_01 to succeed at Certify.Core.Tests.Unit.AccessControlTests.<TestUpdateSecurityPrinciplePassword>d__13.MoveNext() in D:\a\certify\certify\certify\src\Certify.Tests\Certify.Core.Tests.Unit\Tests\AccessControlTests.cs:line 417 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
TestDeleteSecurityPrinciple: certify/src/Certify.Tests/Certify.Core.Tests.Unit/Tests/AccessControlTests.cs#L484
Assert.IsTrue failed. Expected security principle deletion for admin_01 to succeed at Certify.Core.Tests.Unit.AccessControlTests.<TestDeleteSecurityPrinciple>d__16.MoveNext() in D:\a\certify\certify\certify\src\Certify.Tests\Certify.Core.Tests.Unit\Tests\AccessControlTests.cs:line 512 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
TestIsPrincipleInRole: certify/src/Certify.Tests/Certify.Core.Tests.Unit/Tests/AccessControlTests.cs#L616
Assert.IsTrue failed. User 'admin_01' should be in role at Certify.Core.Tests.Unit.AccessControlTests.<TestIsPrincipleInRole>d__20.MoveNext() in D:\a\certify\certify\certify\src\Certify.Tests\Certify.Core.Tests.Unit\Tests\AccessControlTests.cs:line 642 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
TestDomainAuth: certify/src/Certify.Tests/Certify.Core.Tests.Unit/Tests/AccessControlTests.cs#L652
Assert.IsTrue failed. User should be a cert consumer for this domain at Certify.Core.Tests.Unit.AccessControlTests.<TestDomainAuth>d__21.MoveNext() in D:\a\certify\certify\certify\src\Certify.Tests\Certify.Core.Tests.Unit\Tests\AccessControlTests.cs:line 672 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
TestWildcardDomainAuth: certify/src/Certify.Tests/Certify.Core.Tests.Unit/Tests/AccessControlTests.cs#L681
Assert.IsTrue failed. User should be a cert consumer for this subdomain via wildcard at Certify.Core.Tests.Unit.AccessControlTests.<TestWildcardDomainAuth>d__22.MoveNext() in D:\a\certify\certify\certify\src\Certify.Tests\Certify.Core.Tests.Unit\Tests\AccessControlTests.cs:line 701 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
TestUserAPIToken: certify/src/Certify.Tests/Certify.Core.Tests.Unit/Tests/AccessControlTests.cs#L759
Test method Certify.Core.Tests.Unit.AccessControlTests.TestUserAPIToken threw exception: System.InvalidOperationException: Sequence contains no matching element at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate) at Certify.Core.Tests.Unit.AccessControlTests.<TestUserAPIToken>d__26.MoveNext() in D:\a\certify\certify\certify\src\Certify.Tests\Certify.Core.Tests.Unit\Tests\AccessControlTests.cs:line 790 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
TestCertifyManagerAddAccountMissingAccountUri: certify/src/Certify.Tests/Certify.Core.Tests.Unit/Tests/CertifyManagerAccountTests.cs#L613
Assert.IsFalse failed. Expected account creation to be unsuccessful for [email protected] at Certify.Core.Tests.Unit.CertifyManagerAccountTests.<TestCertifyManagerAddAccountMissingAccountUri>d__38.MoveNext() in D:\a\certify\certify\certify\src\Certify.Tests\Certify.Core.Tests.Unit\Tests\CertifyManagerAccountTests.cs:line 628 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
TestCertifyServiceAppVersionRoute: certify/src/Certify.Tests/Certify.Core.Tests.Unit/Tests/CertifyServiceTests.cs#L92
Test method Certify.Core.Tests.Unit.CertifyServiceTests.TestCertifyServiceAppVersionRoute threw exception: Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: {. Path '', line 1, position 1. at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType) at Newtonsoft.Json.JsonTextReader.ReadAsString() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at Certify.Core.Tests.Unit.CertifyServiceTests.<TestCertifyServiceAppVersionRoute>d__7.MoveNext() in D:\a\certify\certify\certify\src\Certify.Tests\Certify.Core.Tests.Unit\Tests\CertifyServiceTests.cs:line 99 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Certify.Core.Tests.Unit.CertifyServiceTests.<TestCertifyServiceAppVersionRoute>d__7.MoveNext() in D:\a\certify\certify\certify\src\Certify.Tests\Certify.Core.Tests.Unit\Tests\CertifyServiceTests.cs:line 107 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)