Testing-Notes.md 2.7 KB

Popufare-Admin-Web-UI Testing

A reference Admin Web UI to interface with the Popufare system

NOTE: THIS IS UNDER DEVELOPMENT AND IS NOT READY FOR USAGE

Current Testing

Starting test Database

To get a test environment set up, go to the popufare repository and navigate to the server/docker directory.

Run:

./run_daemon.sh

This should run a Popufare Docker image with the appropriate ports mapped.

To ssh in for user bus, password bus (setup in the Dockerfile):

ssh -p 6055 bus@localhost

Once in, you can access the database with user busapi, password bus (in setup-testdb):

mysql -u busapi -p busdb

You can also connect to the SQL database directly through port 5506 and making sure to specify the host name of 127.0.0.1:

mysql -u busapi -p busdb -h 127.0.0.1 -P 5506

Staring test Web server

You might need to fiddle with the port. Right now it's set to 8182.

Go into the Popufare-Admin-Web-UI repository.

cd Popufare-Admin-Web-UI
cd main
./main.py

You should have a test web server running on 8182 that you can connect to now.

TODO

  • Manage Cards
    • ~Fill in Active Pass, Comment, Other ID when looking up by (cardid/magstripe/rfid)~
    • ~Fill in User information when looking up card~
    • ~Add Multi Ride Pass~
    • ~Add Multi Day Pass~
    • ~Add Other Pass~
    • ~Update pass list after pass addition~
    • ~Fix date display issue in pass list~
    • ~Correctly redirect to Manage User and grey out if no user available~
    • Correctly redirect to Re-Issue Card
    • ~Add checkboxes to passes and add functionality to delete entries~
    • Correctly fill in 'group' (maybe don't make it a drop down?)
  • Manage Users
    • ~Lookup by User Id~
    • ~Lookup by User Name~
    • Reset Password
    • Add Card to user
    • ~Associate by mag stripe~
    • ~Associate by rfid~
    • ~Associate by cardid~
    • Group (?)
    • Grey out by preference (cardid -> mag -> rfid)
    • ~List user owned cards~
    • ~Redirect to manage card for listed user cards~
  • ~Create User~
  • Re-Issue Card
  • Recycle Card
    • Add drop down for card group
  • Add Card Block
    • Magstripe
    • RFID
    • None pass type
    • Multi-Ride pass type
    • Multi-Day pass type
    • Other pass type
  • Process Pending Card
    • ???
  • Search
    • Search cards
    • Search Users
    • Search Admins
    • Give option for number of results per page
    • Paginate options
Item Completed Description