Skip to content

Fixed GitHub Workflow #110

Fixed GitHub Workflow

Fixed GitHub Workflow #110

GitHub Actions / SNMP Polling Service Integration Test Report failed Jan 14, 2024 in 0s

SNMP Polling Service Integration Test Report ❌

Tests failed

❌ Tests/Netmon.SNMPPolling.IntegrationTests/TestResults/test-results.trx

21 tests were completed in 54s with 18 passed, 3 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Netmon.SNMPPolling.IntegrationTests.DiscoverIntegrationTests 11✅ 1❌ 53s
Netmon.SNMPPolling.IntegrationTests.PingIntegrationTests 1❌ 3s
Netmon.SNMPPolling.IntegrationTests.PollIntegrationTests 1✅ 1❌ 13s
Netmon.SNMPPolling.IntegrationTests.SNMPIntegrationTests 6✅ 6s

❌ Netmon.SNMPPolling.IntegrationTests.DiscoverIntegrationTests

✅ Post_EndpointsReturnNotFound(url: "/Discover/Cpus")
❌ Post_EndpointsReturnNotFound(url: "/Discover/Details")
	MySqlConnector.MySqlException : Table 'Devices' already exists
✅ Post_EndpointsReturnNotFound(url: "/Discover/Device")
✅ Post_EndpointsReturnNotFound(url: "/Discover/Disks")
✅ Post_EndpointsReturnNotFound(url: "/Discover/Interfaces")
✅ Post_EndpointsReturnNotFound(url: "/Discover/Memory")
✅ Post_EndpointsReturnSuccessAndCorrectContentType(url: "/Discover/Cpus", expectedJsonResponse: "[]")
✅ Post_EndpointsReturnSuccessAndCorrectContentType(url: "/Discover/Details", expectedJsonResponse: "{\"ipAddress\":\"127.0.0.1\",\"port\":161,\"commun"···)
✅ Post_EndpointsReturnSuccessAndCorrectContentType(url: "/Discover/Device", expectedJsonResponse: "{\"ipAddress\":\"127.0.0.1\",\"name\":\"snmpd-test"···)
✅ Post_EndpointsReturnSuccessAndCorrectContentType(url: "/Discover/Disks", expectedJsonResponse: "[]")
✅ Post_EndpointsReturnSuccessAndCorrectContentType(url: "/Discover/Interfaces", expectedJsonResponse: "[]")
✅ Post_EndpointsReturnSuccessAndCorrectContentType(url: "/Discover/Memory", expectedJsonResponse: "[]")

❌ Netmon.SNMPPolling.IntegrationTests.PingIntegrationTests

❌ Get_EndpointsReturnSuccessAndCorrectContentType(url: "/Ping", expectedJsonResponse: "{\"message\":\"Pong\"}")
	MySqlConnector.MySqlException : Table 'Devices' already exists

❌ Netmon.SNMPPolling.IntegrationTests.PollIntegrationTests

✅ Post_EndpointsReturnNotFound(url: "/Poll/Device")
❌ Post_EndpointsReturnSuccessAndCorrectContentType(url: "/Poll/Device", expectedJsonResponse: "{\"ipAddress\":\"127.0.0.1\",\"name\":\"snmpd-test"···)
	MySqlConnector.MySqlException : Table 'Devices' already exists

✅ Netmon.SNMPPolling.IntegrationTests.SNMPIntegrationTests

✅ Post_EndpointsReturnNotFound(url: "/SNMP/GetBulkWalk", oid: "1.3.6.1.2.1.1.4")
✅ Post_EndpointsReturnNotFound(url: "/SNMP/GetBulkWalk", oid: "1.3.6.1.2.1.1.5")
✅ Post_EndpointsReturnNotFound(url: "/SNMP/GetBulkWalk", oid: "1.3.6.1.2.1.1.6")
✅ Post_EndpointsReturnSuccessAndCorrectContentType(url: "/SNMP/GetBulkWalk", oid: "1.3.6.1.2.1.1.4", expectedJsonResponse: "[{\"oid\":\"1.3.6.1.2.1.1.4.0\",\"value\":\"Root <"···)
✅ Post_EndpointsReturnSuccessAndCorrectContentType(url: "/SNMP/GetBulkWalk", oid: "1.3.6.1.2.1.1.5", expectedJsonResponse: "[{\"oid\":\"1.3.6.1.2.1.1.5.0\",\"value\":\"snmpd-"···)
✅ Post_EndpointsReturnSuccessAndCorrectContentType(url: "/SNMP/GetBulkWalk", oid: "1.3.6.1.2.1.1.6", expectedJsonResponse: "[{\"oid\":\"1.3.6.1.2.1.1.6.0\",\"value\":\"SNMPD "···)

Annotations

Check failure on line 183 in Services/Netmon.SNMPPolling/Program.cs

See this annotation in the file changed.

@github-actions github-actions / SNMP Polling Service Integration Test Report

Netmon.SNMPPolling.IntegrationTests.DiscoverIntegrationTests ► Post_EndpointsReturnNotFound(url: "/Discover/Details")

Failed test found in:
  Tests/Netmon.SNMPPolling.IntegrationTests/TestResults/test-results.trx
Error:
  MySqlConnector.MySqlException : Table 'Devices' already exists
Raw output
MySqlConnector.MySqlException : Table 'Devices' already exists
   at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in /_/src/MySqlConnector/Core/ResultSet.cs:line 43
   at MySqlConnector.MySqlDataReader.ActivateResultSet(CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 130
   at MySqlConnector.MySqlDataReader.CreateAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, IDictionary`2 cachedProcedures, IMySqlCommand command, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 468
   at MySqlConnector.Core.CommandExecutor.ExecuteReaderAsync(IReadOnlyList`1 commands, ICommandPayloadCreator payloadCreator, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/CommandExecutor.cs:line 56
   at MySqlConnector.MySqlCommand.ExecuteNonQueryAsync(IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlCommand.cs:line 296
   at MySqlConnector.MySqlCommand.ExecuteNonQuery() in /_/src/MySqlConnector/MySqlCommand.cs:line 107
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Migrations.MigrationCommand.ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues)
   at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQuery(IEnumerable`1 migrationCommands, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.CreateTables()
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.EnsureCreated()
   at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.EnsureCreated()
   at Program.<Main>$(String[] args) in /home/runner/work/Netmon/Netmon/Services/Netmon.SNMPPolling/Program.cs:line 183
   at InvokeStub_Program.<Main>$(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient(WebApplicationFactoryClientOptions options)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient()
   at Netmon.SNMPPolling.IntegrationTests.DiscoverIntegrationTests.Post_EndpointsReturnNotFound(String url) in /home/runner/work/Netmon/Netmon/Tests/Netmon.SNMPPolling.IntegrationTests/DiscoverIntegrationTests.cs:line 52
--- End of stack trace from previous location ---

Check failure on line 183 in Services/Netmon.SNMPPolling/Program.cs

See this annotation in the file changed.

@github-actions github-actions / SNMP Polling Service Integration Test Report

Netmon.SNMPPolling.IntegrationTests.PingIntegrationTests ► Get_EndpointsReturnSuccessAndCorrectContentType(url: "/Ping", expectedJsonResponse: "{\"message\":\"Pong\"}")

Failed test found in:
  Tests/Netmon.SNMPPolling.IntegrationTests/TestResults/test-results.trx
Error:
  MySqlConnector.MySqlException : Table 'Devices' already exists
Raw output
MySqlConnector.MySqlException : Table 'Devices' already exists
   at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in /_/src/MySqlConnector/Core/ResultSet.cs:line 43
   at MySqlConnector.MySqlDataReader.ActivateResultSet(CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 130
   at MySqlConnector.MySqlDataReader.CreateAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, IDictionary`2 cachedProcedures, IMySqlCommand command, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 468
   at MySqlConnector.Core.CommandExecutor.ExecuteReaderAsync(IReadOnlyList`1 commands, ICommandPayloadCreator payloadCreator, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/CommandExecutor.cs:line 56
   at MySqlConnector.MySqlCommand.ExecuteNonQueryAsync(IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlCommand.cs:line 296
   at MySqlConnector.MySqlCommand.ExecuteNonQuery() in /_/src/MySqlConnector/MySqlCommand.cs:line 107
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Migrations.MigrationCommand.ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues)
   at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQuery(IEnumerable`1 migrationCommands, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.CreateTables()
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.EnsureCreated()
   at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.EnsureCreated()
   at Program.<Main>$(String[] args) in /home/runner/work/Netmon/Netmon/Services/Netmon.SNMPPolling/Program.cs:line 183
   at InvokeStub_Program.<Main>$(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient(WebApplicationFactoryClientOptions options)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient()
   at Netmon.SNMPPolling.IntegrationTests.PingIntegrationTests.Get_EndpointsReturnSuccessAndCorrectContentType(String url, String expectedJsonResponse) in /home/runner/work/Netmon/Netmon/Tests/Netmon.SNMPPolling.IntegrationTests/PingIntegrationTests.cs:line 16
--- End of stack trace from previous location ---

Check failure on line 183 in Services/Netmon.SNMPPolling/Program.cs

See this annotation in the file changed.

@github-actions github-actions / SNMP Polling Service Integration Test Report

Netmon.SNMPPolling.IntegrationTests.PollIntegrationTests ► Post_EndpointsReturnSuccessAndCorrectContentType(url: "/Poll/Device", expectedJsonResponse: "{\"ipAddress\":\"127.0.0.1\",\"name\":\"snmpd-test"···)

Failed test found in:
  Tests/Netmon.SNMPPolling.IntegrationTests/TestResults/test-results.trx
Error:
  MySqlConnector.MySqlException : Table 'Devices' already exists
Raw output
MySqlConnector.MySqlException : Table 'Devices' already exists
   at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in /_/src/MySqlConnector/Core/ResultSet.cs:line 43
   at MySqlConnector.MySqlDataReader.ActivateResultSet(CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 130
   at MySqlConnector.MySqlDataReader.CreateAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, IDictionary`2 cachedProcedures, IMySqlCommand command, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 468
   at MySqlConnector.Core.CommandExecutor.ExecuteReaderAsync(IReadOnlyList`1 commands, ICommandPayloadCreator payloadCreator, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/CommandExecutor.cs:line 56
   at MySqlConnector.MySqlCommand.ExecuteNonQueryAsync(IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlCommand.cs:line 296
   at MySqlConnector.MySqlCommand.ExecuteNonQuery() in /_/src/MySqlConnector/MySqlCommand.cs:line 107
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Migrations.MigrationCommand.ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues)
   at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQuery(IEnumerable`1 migrationCommands, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.CreateTables()
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.EnsureCreated()
   at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.EnsureCreated()
   at Program.<Main>$(String[] args) in /home/runner/work/Netmon/Netmon/Services/Netmon.SNMPPolling/Program.cs:line 183
   at InvokeStub_Program.<Main>$(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Testing.DeferredHostBuilder.DeferredHost.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Start(IHost host)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateHost(IHostBuilder builder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.ConfigureHostBuilder(IHostBuilder hostBuilder)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient(WebApplicationFactoryClientOptions options)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient()
   at Netmon.SNMPPolling.IntegrationTests.PollIntegrationTests.Post_EndpointsReturnSuccessAndCorrectContentType(String url, String expectedJsonResponse) in /home/runner/work/Netmon/Netmon/Tests/Netmon.SNMPPolling.IntegrationTests/PollIntegrationTests.cs:line 17
--- End of stack trace from previous location ---