E2E TS: Grafana


Prerequisities

  • Dwarfguard 1.0.0+ installed for the Traffic Dashboard test
  • Dwarfguard 2.0.0+ installed for the whole test
  • Some devices installed (at least 2 Advantech routers, may use emulator)
  • More than one midnight passed since the first device registered or daily traffic DB table manually filled in
  • Dwarfguard deployment is installed with --nondeb option or a dwarfg_grafint and dwarfg_inst_pyext commands have been performed.


Steps

  1. Go to Tools -> Traffic Counter
  2. Verify that the redirection text is present to the user with Grafana username and password shown
  3. Verify that the redirection happens shortly (in under 30 seconds)
  4. Log in to the Grafana
  5. Check that the Traffic Dashboard is present
    1. Check that is shows data when a correct time span is selected
  6. Dwarfguard 2.0.0+ only
    1. Click on Dashboards
    2. Select History data
    3. Check you can see these metrics for the selected device:
      1. Temperature
      2. Signal strength
      3. RAM and FS space
    4. Check you can see "All device Temperature" graph on top left
    5. Check you can select a different device