E2E TS: Dashboard


Prerequisities

  • Version 0.5+ clean deploy with default free license (for 15 devices and at least 1 webtunnel)
  • Additional production license with 20 device slots
  • One Advantech router or OpenWRT device registered
  • Agent emulator available with access to correct ServerID (or run locally on the server)


Steps

  1. Verify the Dashboard is the default landing page (once FRW has been shown on the first login)
  2. Check that all dashboard lights are green
  3. Open a webtunnel to the Advantech router
  4. Check that Dashboard counters are updated accordingly, all lights should remain green
  5. Remove local ids_file.txt
  6. Register 5 devices with emulator:
    1. ./emulator.py -r -n 5
  7. Check dashboard counters update accordingly and lights are still green
  8. Wait 6 minutes
  9. Check that 5 devices on the dashboard are now counted as Delayed, lights should remain all green.
  10. Push update for those devices with emulator:
    1. ./emulator.py -r -n 5
  11. Check that Online counter on the dashboard is updated to 6
  12. Register additional 4 devices, thus filling license capacity:
    1. ./emulator.py -r -n 4
  13. Check that Free # light on dashboard switches to orange and counter shows 0 free slots.
  14. Try registering additional device using emulator:
    1. ./emulator.py
  15. Verify that registration fails (server returns LLLL as device ID)
  16. Verify that:
    1. Dashboard global light switches to red
    2. it displays Full
    3. a warning about license limit being reached is shown below the top-level lights.
  17. Verify that:
    1. Free # light switches to red
    2. that it shows -1 with caption below the light telling Declined
  18. Try adding one more device (should result in an error)
  19. Verify that declined devices counter increases to -2
  20. Upgrade license to 20-slot production license
  21. Verify that Dashboard global light switches to green
  22. Verify that Free # light switches to green and shows 5 free slots
  23. Try registering a new device (can use emulator for that) to verify that registration of new devices is possible again.
  24. Open up any device and delete it.
  25. Check that device count updates accordingly and now there are 5 free slots shown.