Skip to content

Push on main

Push on main #150

GitHub Actions / Test Report - Contexture Backend failed Mar 19, 2024 in 1s

66 passed, 1 failed and 0 skipped

Tests failed

❌ backend/Contexture.Api.Tests/TestResults/TestResults.trx

67 tests were completed in 32s with 66 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Contexture.Api.Tests.ApiTests+BoundedContexts 2✅ 557ms
Contexture.Api.Tests.ApiTests+Namespaces 1✅ 832ms
Contexture.Api.Tests.EventStore+InMemoryEventStore 8✅ 5s
Contexture.Api.Tests.EventStore+MsSqlBackedEventStore 8✅ 5s
Contexture.Api.Tests.PositionStorage.InMemoryPositionStorage 4✅ 16ms
Contexture.Api.Tests.PositionStorage.SqlServerPositionStorage 4✅ 84ms
Contexture.Api.Tests.Security+using ApiKeyAuthentication scheme+accessing frontend routes 3✅ 546ms
Contexture.Api.Tests.Security+using ApiKeyAuthentication scheme+getting data 3✅ 197ms
Contexture.Api.Tests.Security+using ApiKeyAuthentication scheme+modifying data 3✅ 208ms
Contexture.Api.Tests.Security+using Bearer scheme+accessing frontend routes 3✅ 351ms
Contexture.Api.Tests.Security+using Bearer scheme+getting data 3✅ 197ms
Contexture.Api.Tests.Security+using Bearer scheme+modifying data 3✅ 312ms
Contexture.Api.Tests.Specs.BoundedContext.Searching 1✅ 671ms
Contexture.Api.Tests.Specs.BoundedContext.Searching+When searching for bounded contexts 10✅ 1s
Contexture.Api.Tests.Specs.BoundedContext.Searching+When searching for bounded contexts+with a single string based parameter 4✅ 989ms
Contexture.Api.Tests.Specs.BoundedContext.Searching+When searching for two different label names 3✅ 817ms
Contexture.Api.Tests.Specs.Deleting 2✅ 1❌ 1s
Tests 1✅ 548ms

✅ 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
	Assert.Contains() Failure
	Not found: (filter expression)
	In value:  FSharpList<EventEnvelope<AllEvents>> [{ Metadata = { Source = 00000000-6c78-4f2e-0000-000000000004
	                          RecordedAt = 03/19/2024 17:53:33 +00:00
	                          Position = Position 18L
	                          Version = Version 4L }
	             Event =
	              Domains
	                (DomainRemoved
	                   { DomainId = 00000000-6c78-4f2e-0000-000000000004
	                     OldParentDomain = Some 00000000-6c78-4f2e-0000-000000000001 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000007
	                          RecordedAt = 03/19/2024 17:53:33 +00:00
	                          Position = Position 19L
	                          Version = Version 4L }
	             Event =
	              Domains
	                (DomainRemoved
	                   { DomainId = 00000000-6c78-4f2e-0000-000000000007
	                     OldParentDomain = Some 00000000-6c78-4f2e-0000-000000000004 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000005
	                          RecordedAt = 03/19/2024 17:53:33 +00:00
	                          Position = Position 20L
	                          Version = Version 3L }
	             Event =
	              BoundedContexts
	                (BoundedContextRemoved
	                   { BoundedContextId = 00000000-6c78-4f2e-0000-000000000005
	                     DomainId = 00000000-6c78-4f2e-0000-000000000004 }) }]
✅ When deleting the bounded context the collaborations and namespaces are deleted with it

✅ Tests

✅ Unversioned JSON deserialization

Annotations

Check failure on line 51 in backend/Contexture.Api.Tests/Specs/Deleting.Specs.fs

See this annotation in the file changed.

@github-actions github-actions / Test Report - Contexture Backend

Contexture.Api.Tests.Specs.Deleting ► When deleting a domain with subdomains then the subdomain, bounded contexts 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-000000000004
                            RecordedAt = 03/19/2024 17:53:33 +00:00
                            Position = Position 18L
                            Version = Version 4L }
               Event =
                Domains
                  (DomainRemoved
                     { DomainId = 00000000-6c78-4f2e-0000-000000000004
                       OldParentDomain = Some 00000000-6c78-4f2e-0000-000000000001 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000007
                            RecordedAt = 03/19/2024 17:53:33 +00:00
                            Position = Position 19L
                            Version = Version 4L }
               Event =
                Domains
                  (DomainRemoved
                     { DomainId = 00000000-6c78-4f2e-0000-000000000007
                       OldParentDomain = Some 00000000-6c78-4f2e-0000-000000000004 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000005
                            RecordedAt = 03/19/2024 17:53:33 +00:00
                            Position = Position 20L
                            Version = Version 3L }
               Event =
                BoundedContexts
                  (BoundedContextRemoved
                     { BoundedContextId = 00000000-6c78-4f2e-0000-000000000005
                       DomainId = 00000000-6c78-4f2e-0000-000000000004 }) }]
Raw output
Assert.Contains() Failure
Not found: (filter expression)
In value:  FSharpList<EventEnvelope<AllEvents>> [{ Metadata = { Source = 00000000-6c78-4f2e-0000-000000000004
                          RecordedAt = 03/19/2024 17:53:33 +00:00
                          Position = Position 18L
                          Version = Version 4L }
             Event =
              Domains
                (DomainRemoved
                   { DomainId = 00000000-6c78-4f2e-0000-000000000004
                     OldParentDomain = Some 00000000-6c78-4f2e-0000-000000000001 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000007
                          RecordedAt = 03/19/2024 17:53:33 +00:00
                          Position = Position 19L
                          Version = Version 4L }
             Event =
              Domains
                (DomainRemoved
                   { DomainId = 00000000-6c78-4f2e-0000-000000000007
                     OldParentDomain = Some 00000000-6c78-4f2e-0000-000000000004 }) }, { Metadata = { Source = 00000000-6c78-4f2e-0000-000000000005
                          RecordedAt = 03/19/2024 17:53:33 +00:00
                          Position = Position 20L
                          Version = Version 3L }
             Event =
              BoundedContexts
                (BoundedContextRemoved
                   { BoundedContextId = 00000000-6c78-4f2e-0000-000000000005
                     DomainId = 00000000-6c78-4f2e-0000-000000000004 }) }]
   at Contexture.Api.Tests.Specs.Deleting.Then.containsBoundedContextRemoved[a](Guid boundedContextId, WhenResult`1 _arg1) in /home/runner/work/Contexture/Contexture/backend/Contexture.Api.Tests/Specs/Deleting.Specs.fs:line 51
   at Contexture.Api.Tests.Specs.Deleting.When deleting a domain with subdomains then the subdomain\, bounded contexts and namespaces are deleted with it@220.MoveNext() in /home/runner/work/Contexture/Contexture/backend/Contexture.Api.Tests/Specs/Deleting.Specs.fs:line 241
--- End of stack trace from previous location ---