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