Push on main #182
GitHub Actions / Test Report - Contexture Backend
failed
Jul 30, 2024 in 0s
67 passed, 1 failed and 0 skipped
❌ backend/Contexture.Api.Tests/TestResults/TestResults.trx
68 tests were completed in 33s with 67 passed, 1 failed and 0 skipped.
✅ Contexture.Api.ReadModels.Tests
✅ fetching state when requested position is ahead of processed should throw after timeout
✅ Contexture.Api.Tests.ApiTests+BoundedContexts
✅ Can list all bounded contexts
✅ When trying to delete a namespace with a malformed namespace-id then the bounded context is not deleted instead
✅ Contexture.Api.Tests.ApiTests+Namespaces
✅ Can create a new namespace
✅ Contexture.Api.Tests.EventStore+InMemoryEventStore
✅ canReadFromAnEmptyStore
✅ canReadFromAnStoreWithMultipleStreamsAndMultipleEvents
✅ canReadFromAnStoreWithOneStreamAndOneEvent
✅ Stream_WriteIntoEmptyEventStore_RereadWrittenEvent
✅ Subscribe_AppendToAnExistingStream_ReceiveOnlyLatestEventViaSubscription
✅ Subscribe_FromSpecificPositionOfExistingStream_ReturnsOnlyEventsAfterTheStartPosition
✅ Subscribe_FromStartOfExistingStream_ReturnsAllEvents
✅ Subscribe_WriteIntoEmptyEventStore_ReceiveEventViaSubscription
✅ Contexture.Api.Tests.EventStore+MsSqlBackedEventStore
✅ canReadFromAnEmptyStore
✅ canReadFromAnStoreWithMultipleStreamsAndMultipleEvents
✅ canReadFromAnStoreWithOneStreamAndOneEvent
✅ Stream_WriteIntoEmptyEventStore_RereadWrittenEvent
✅ Subscribe_AppendToAnExistingStream_ReceiveOnlyLatestEventViaSubscription
✅ Subscribe_FromSpecificPositionOfExistingStream_ReturnsOnlyEventsAfterTheStartPosition
✅ Subscribe_FromStartOfExistingStream_ReturnsAllEvents
✅ Subscribe_WriteIntoEmptyEventStore_ReceiveEventViaSubscription
✅ Contexture.Api.Tests.PositionStorage.InMemoryPositionStorage
✅ CanReadExistingFromStorage
✅ CanReadNoneFromEmptyStorage
✅ CanUpdateExistingEntry
✅ CanWriteIntoEmptyStorage
✅ Contexture.Api.Tests.PositionStorage.SqlServerPositionStorage
✅ CanReadExistingFromStorage
✅ CanReadNoneFromEmptyStorage
✅ CanUpdateExistingEntry
✅ CanWriteIntoEmptyStorage
✅ Contexture.Api.Tests.Security+using ApiKeyAuthentication scheme+accessing frontend routes
✅ with invalid api key return ok
✅ with valid api key return ok
✅ without api key should return ok
✅ Contexture.Api.Tests.Security+using ApiKeyAuthentication scheme+getting data
✅ with invalid api key should return unauthorized
✅ with valid api key should return ok
✅ without api key should return unauthorized
✅ Contexture.Api.Tests.Security+using ApiKeyAuthentication scheme+modifying data
✅ with invalid api key return unauthorized
✅ with valid api key should return ok
✅ without api key should return unauthorized
✅ Contexture.Api.Tests.Security+using Bearer scheme+accessing frontend routes
✅ with access token and invalid claims should return ok
✅ with access token and valid claims should return ok
✅ without access token should return ok
✅ Contexture.Api.Tests.Security+using Bearer scheme+getting data
✅ with access token and invalid claims should return ok
✅ with access token and valid claims should return ok
✅ without access token should return ok
✅ Contexture.Api.Tests.Security+using Bearer scheme+modifying data
✅ with access token and invalid claims should return forbidden
✅ with access token and valid claims should return ok
✅ without access token should return unauthorized
✅ Contexture.Api.Tests.Specs.BoundedContext.Searching
✅ Can search for bounded contexts by label and value for a specific template
✅ Contexture.Api.Tests.Specs.BoundedContext.Searching+When searching for bounded contexts
✅ When searching with a random query string a bad request is returned
✅ with a single, exact parameter then only the bounded context is found(parameterName: "BoundedContext.name", parameterValue: "bounded-context")
✅ with a single, exact parameter then only the bounded context is found(parameterName: "BoundedContext.shortName", parameterValue: "BC-1")
✅ with a single, exact parameter then only the bounded context is found(parameterName: "Domain.name", parameterValue: "domain")
✅ with a single, exact parameter then only the bounded context is found(parameterName: "Domain.shortName", parameterValue: "DO-1")
✅ with a single, exact parameter then only the bounded context is found(parameterName: "Label.name", parameterValue: "Architect")
✅ with a single, exact parameter then only the bounded context is found(parameterName: "Label.value", parameterValue: "John Doe")
✅ with a single, exact parameter then only the bounded context is found(parameterName: "Namespace.name", parameterValue: "Team")
✅ with a single, exact parameter then only the bounded context is found(parameterName: "Namespace.template", parameterValue: "A9F5D70E-B947-40B6-B7BE-4AC45CFE7F34")
✅ with one single and exact parameter and one non-matching wildcard search, then no bounded context should be found
✅ Contexture.Api.Tests.Specs.BoundedContext.Searching+When searching for bounded contexts+with a single string based parameter
✅ it is possible to find label names by using '*rchitec*' as Contains
✅ it is possible to find label names by using '*tect' as EndsWith
✅ it is possible to find label names by using 'arch*' as StartsWith
✅ it is possible to find namespace names by using '*ea*' as Contains
✅ Contexture.Api.Tests.Specs.BoundedContext.Searching+When searching for two different label names
✅ Given one bounded context with two different labels in the same namespace, then the bounded context is found
✅ Given one bounded context with two different labels in two different namespaces, then the bounded context is found
✅ Given two bounded contexts with different label names, then no bounded context should be found
❌ Contexture.Api.Tests.Specs.Deleting
✅ When deleting a domain the bounded contexts, collaborations and namespaces are deleted with it
✅ When deleting a domain with subdomains then the subdomain, bounded contexts and namespaces are deleted with it
❌ When deleting the bounded context the collaborations and namespaces are deleted with it
Assert.Contains() Failure
Not found: (filter expression)
In value: FSharpList<EventEnvelope<AllEvents>> [{ Metadata = { Source = 00000000-6c78-4f2e-0000-000000000008
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 22L
Version = Version 3L }
Event =
BoundedContexts
(BoundedContextRemoved
{ BoundedContextId = 00000000-6c78-4f2e-0000-000000000008
DomainId = 00000000-6c78-4f2e-0000-000000000007 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000010
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 23L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000010 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000011
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 24L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000011 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000012
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 25L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000012 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000013
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 26L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000013 }) }]
✅ Tests
✅ Unversioned JSON deserialization
Annotations
Check failure on line 70 in backend/Contexture.Api.Tests/Specs/Deleting.Specs.fs
github-actions / Test Report - Contexture Backend
Contexture.Api.Tests.Specs.Deleting ► When deleting the bounded context the collaborations and namespaces are deleted with it
Failed test found in:
backend/Contexture.Api.Tests/TestResults/TestResults.trx
Error:
Assert.Contains() Failure
Not found: (filter expression)
In value: FSharpList<EventEnvelope<AllEvents>> [{ Metadata = { Source = 00000000-6c78-4f2e-0000-000000000008
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 22L
Version = Version 3L }
Event =
BoundedContexts
(BoundedContextRemoved
{ BoundedContextId = 00000000-6c78-4f2e-0000-000000000008
DomainId = 00000000-6c78-4f2e-0000-000000000007 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000010
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 23L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000010 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000011
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 24L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000011 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000012
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 25L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000012 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000013
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 26L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000013 }) }]
Raw output
Assert.Contains() Failure
Not found: (filter expression)
In value: FSharpList<EventEnvelope<AllEvents>> [{ Metadata = { Source = 00000000-6c78-4f2e-0000-000000000008
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 22L
Version = Version 3L }
Event =
BoundedContexts
(BoundedContextRemoved
{ BoundedContextId = 00000000-6c78-4f2e-0000-000000000008
DomainId = 00000000-6c78-4f2e-0000-000000000007 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000010
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 23L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000010 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000011
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 24L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000011 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000012
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 25L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000012 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000013
RecordedAt = 07/30/2024 08:26:31 +00:00
Position = Position 26L
Version = Version 2L }
Event =
Collaboration
(ConnectionRemoved
{ CollaborationId = 00000000-6c78-4f2e-0000-000000000013 }) }]
at Contexture.Api.Tests.Specs.Deleting.Then.containsNamespaceRemoved[a](Guid namespaceId, WhenResult`1 _arg1) in /home/runner/work/Contexture/Contexture/backend/Contexture.Api.Tests/Specs/Deleting.Specs.fs:line 70
at Contexture.Api.Tests.Specs.Deleting.When deleting the bounded context the collaborations and namespaces are deleted with it@80.MoveNext() in /home/runner/work/Contexture/Contexture/backend/Contexture.Api.Tests/Specs/Deleting.Specs.fs:line 122
--- End of stack trace from previous location ---
Loading