google / testrun

A tool to automate verification of network-based device behavior
Apache License 2.0
28 stars 9 forks source link

Add communication network type test #950

Closed jhughesbiot closed 3 weeks ago

jhughesbiot commented 3 weeks ago

Adds communication.network_type test as informational:

Result:

image

Packet counts are added as details json report, but not a part of current test module report:

    {
      "name": "communication.network.type",
      "test_description": "How does the devie communicate (flow type) - Unicast, multicast broadcast?",
      "expected_behavior": "Informational - One or more of these flow types are used",
      "start": "2024-11-01T23:04:21.532194",
      "result": "Informational",
      "description": "Packet types detected: Multicast, Broadcast",
      "details": {
        "mac_address": "aa:bb:cc:dd:ee:ff",
        "multicast": {
          "from": 54,
          "to": 0
        },
        "broadcast": {
          "from": 18,
          "to": 0
        },
        "unicast": {
          "from": 0,
          "to": 0
        }
      },
      "end": "2024-11-01T23:04:29.586332",
      "duration": "0:00:08.054138"
    }