Skip to content

make test 6 succeed, 1 fails #100

@christoph-maurer

Description

@christoph-maurer
christoph@de14278:~/Documents/building-envelope-data/bed_lokal/database_lokal/development$ make shell SERVICE=backend

me@4e3a45d0ed0b:~/app$ make test
dotnet run \
	--project ./test/*.Tests.csproj \
	--coverage \
	
/home/me/app/test/Database.Tests.csproj : warning NU1904: Package 'HotChocolate.Language' 15.1.12 has a known critical severity vulnerability, https://github.com/advisories/GHSA-qr3m-xw4c-jqw3
/home/me/app/test/Database.Tests.csproj : warning NU1902: Package 'MailKit' 4.15.1 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-9j88-vvj5-vhgr
/home/me/app/test/Database.Tests.csproj : warning NU1902: Package 'OpenTelemetry.Api' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-g94r-2vxg-569j
/home/me/app/test/Database.Tests.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-4625-4j76-fww9
/home/me/app/test/Database.Tests.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-mr8r-92fq-pj8p
/home/me/app/test/Database.Tests.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-q834-8qmm-v933
/home/me/app/src/Database.csproj : warning NU1904: Package 'HotChocolate.Language' 15.1.12 has a known critical severity vulnerability, https://github.com/advisories/GHSA-qr3m-xw4c-jqw3
/home/me/app/src/Database.csproj : warning NU1902: Package 'MailKit' 4.15.1 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-9j88-vvj5-vhgr
/home/me/app/src/Database.csproj : warning NU1902: Package 'OpenTelemetry.Api' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-g94r-2vxg-569j
/home/me/app/src/Database.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-4625-4j76-fww9
/home/me/app/src/Database.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-mr8r-92fq-pj8p
/home/me/app/src/Database.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-q834-8qmm-v933
/home/me/app/test/Database.Tests.csproj : warning NU1904: Package 'HotChocolate.Language' 15.1.12 has a known critical severity vulnerability, https://github.com/advisories/GHSA-qr3m-xw4c-jqw3
/home/me/app/test/Database.Tests.csproj : warning NU1902: Package 'MailKit' 4.15.1 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-9j88-vvj5-vhgr
/home/me/app/test/Database.Tests.csproj : warning NU1902: Package 'OpenTelemetry.Api' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-g94r-2vxg-569j
/home/me/app/test/Database.Tests.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-4625-4j76-fww9
/home/me/app/test/Database.Tests.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-mr8r-92fq-pj8p
/home/me/app/test/Database.Tests.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-q834-8qmm-v933
/home/me/app/src/Database.csproj : warning NU1904: Package 'HotChocolate.Language' 15.1.12 has a known critical severity vulnerability, https://github.com/advisories/GHSA-qr3m-xw4c-jqw3
/home/me/app/src/Database.csproj : warning NU1902: Package 'MailKit' 4.15.1 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-9j88-vvj5-vhgr
/home/me/app/src/Database.csproj : warning NU1902: Package 'OpenTelemetry.Api' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-g94r-2vxg-569j
/home/me/app/src/Database.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-4625-4j76-fww9
/home/me/app/src/Database.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-mr8r-92fq-pj8p
/home/me/app/src/Database.csproj : warning NU1902: Package 'OpenTelemetry.Exporter.OpenTelemetryProtocol' 1.15.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-q834-8qmm-v933
[09:25:58.644] SynchronizedRunTestsAsync: ENTRY
[09:25:58.647] SynchronizedRunTestsAsync: Creating executor
NUnit Adapter 1.0.0.0: Test execution started
Running all tests in /home/me/app/test/bin/Debug/net10.0/Database.Tests.dll
   NUnit3TestExecutor discovered 7 of 7 NUnit test cases using Current Discovery mode, Non-Explicit run
2026-05-12 09:26:28 [Error] GnuPG Execute Command: ""
  
[09:26:02 INF] Starting web host

failed IsUnchanged (41s 200ms)
    Assert.That(actualSnapshot, Is.EqualTo(expectedSnapshot))
    Expected string length 89431 but was 89917. Strings differ at index 5981.
    Expected: "...estamp: DateTime!\\n}\\n\\ntype DataAccessRights {\\n  allowed..."
    But was:  "...estamp: DateTime!\\n}\\n\\ntype CurrentInstitution {\\n  datab..."
    ----------------------------------------------^
  
    at Snapshooter.NUnit.NUnitAssert.Assert(String expectedSnapshot, String actualSnapshot)
    at Snapshooter.Core.JsonSnapshotComparer.CompareSnapshots(String expectedSnapshot, String actualSnapshot, MatchOptions matchOptions)
    at Snapshooter.SnapshotAssert.ExecuteSnapshotComparison(Boolean originalSnapshotExists, String actualSnapshotSerialized, String originalSnapshotSerialized, SnapshotFullName snapshotFullName, MatchOptions matchOptions)
    at Snapshooter.SnapshotAssert.AssertSnapshot(Object currentResult, SnapshotFullName snapshotFullName, MatchOptions matchOptions)
    at Snapshooter.Snapshooter.AssertSnapshot(Object currentResult, SnapshotFullName snapshotFullName, Func`2 matchOptionsSettings)
    at Snapshooter.NUnit.Snapshot.Match(Object currentResult, SnapshotFullName snapshotFullName, Func`2 matchOptions)
    at Snapshooter.NUnit.Snapshot.Match(Object currentResult, Func`2 matchOptions)
    at Snapshooter.NUnit.Snapshot.Match[T](T currentResult, Func`2 matchOptions)
    at Database.Tests.Integration.GraphQl.GraphQlSchemaTests.IsUnchanged() in Integration/GraphQl/GraphQlSchemaTests.cs:29
    at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
    at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
    at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](TestExecutionContext context, Func`1 invoke)
    at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(TestExecutionContext context, Func`1 invoke)
    at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
    at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
    at NUnit.Framework.Internal.Commands.AfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
    at NUnit.Framework.Internal.Commands.DelegatingTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)
    
    1)    at Snapshooter.NUnit.NUnitAssert.Assert(String expectedSnapshot, String actualSnapshot)
    at Snapshooter.Core.JsonSnapshotComparer.CompareSnapshots(String expectedSnapshot, String actualSnapshot, MatchOptions matchOptions)
    at Snapshooter.SnapshotAssert.ExecuteSnapshotComparison(Boolean originalSnapshotExists, String actualSnapshotSerialized, String originalSnapshotSerialized, SnapshotFullName snapshotFullName, MatchOptions matchOptions)
    at Snapshooter.SnapshotAssert.AssertSnapshot(Object currentResult, SnapshotFullName snapshotFullName, MatchOptions matchOptions)
    at Snapshooter.Snapshooter.AssertSnapshot(Object currentResult, SnapshotFullName snapshotFullName, Func`2 matchOptionsSettings)
    at Snapshooter.NUnit.Snapshot.Match(Object currentResult, SnapshotFullName snapshotFullName, Func`2 matchOptions)
    at Snapshooter.NUnit.Snapshot.Match(Object currentResult, Func`2 matchOptions)
    at Snapshooter.NUnit.Snapshot.Match[T](T currentResult, Func`2 matchOptions)
    at Database.Tests.Integration.GraphQl.GraphQlSchemaTests.IsUnchanged() in Integration/GraphQl/GraphQlSchemaTests.cs:29
    
    
  Standard output
    [09:26:02 INF] Starting web host
    
  Error output
2026-05-12 09:27:01 [Error] GnuPG Execute Command: ""
  
[09:26:42 INF] Starting web host
     Warning:
     The component "Fluent Assertions" is governed by the rules defined in the Xceed License Agreement and
     the Xceed Fluent Assertions Community License. You may use Fluent Assertions free of charge for
     non-commercial use only. An active subscription is required to use Fluent Assertions for commercial use.

     Please contact Xceed Sales mailto:sales@xceed.com to acquire a subscription at a very low cost.

     A paid commercial license supports the development and continued increasing support of
     Fluent Assertions users under both commercial and community licenses. Help us
     keep Fluent Assertions at the forefront of unit testing.

     For more information, visit https://xceed.com/products/unit-testing/fluent-assertions/

Do play!


  In process file artifacts produced:
    - bin/Debug/net10.0/TestResults/6965cf48-2b30-44ab-a888-c24dfd85f79d.coverage

Test run summary: Failed! - bin/Debug/net10.0/Database.Tests.dll (net10.0|x64)
  total: 7
  failed: 1
  succeeded: 6
  skipped: 0
  duration: 1m 15s 157ms

make: *** [Makefile:37: test] Error 2

@simonwacker Do you understand why?

Metadata

Metadata

Labels

2601ISEFraunhofer Institute for Solar Energy Systems ISE

Type

No type
No fields configured for issues without a type.

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions