Skip to content

Added Authentication and fixed dotnet 8 issues. #103

Added Authentication and fixed dotnet 8 issues.

Added Authentication and fixed dotnet 8 issues. #103

GitHub Actions / Integration Test Report succeeded Jan 14, 2024 in 1s

Integration Test Report ✅

Tests passed successfully

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

21 tests were completed in 57s with 21 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Netmon.SNMPPolling.IntegrationTests.DiscoverIntegrationTests 12✅ 57s
Netmon.SNMPPolling.IntegrationTests.PingIntegrationTests 1✅ 4s
Netmon.SNMPPolling.IntegrationTests.PollIntegrationTests 2✅ 14s
Netmon.SNMPPolling.IntegrationTests.SNMPIntegrationTests 6✅ 7s

✅ Netmon.SNMPPolling.IntegrationTests.DiscoverIntegrationTests

✅ Post_EndpointsReturnNotFound(url: "/Discover/Cpus")
✅ Post_EndpointsReturnNotFound(url: "/Discover/Details")
✅ 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\"}")

✅ Netmon.SNMPPolling.IntegrationTests.PollIntegrationTests

✅ Post_EndpointsReturnNotFound(url: "/Poll/Device")
✅ Post_EndpointsReturnSuccessAndCorrectContentType(url: "/Poll/Device", expectedJsonResponse: "{\"ipAddress\":\"127.0.0.1\",\"name\":\"snmpd-test"···)

✅ 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 "···)